Small language models: when smaller is the right call
By Abdul Asim ·
The short answer
Small language models are models small enough that you can fine-tune them and host them yourself, in practice anything from a few hundred million up to roughly ten billion parameters. You pick one over a large model when the job is narrow, the data cannot leave your infrastructure, or the cost of every request matters more than breadth. For open-ended work across many domains, a large hosted model is still the better default.
The size question is rarely about capability in the abstract. It comes down to three things you can write on one line: the single job, the latency budget, and where the data is allowed to live. Once those are written down, the choice usually makes itself.
What counts as a small language model?
There is no official parameter count that makes a model small, and the line has moved every year. A model that needed a cluster in 2022 now runs on one rented card. So I use a working definition instead of a number: a small language model is one you can fine-tune and serve on hardware you control, without a dedicated platform team to keep it alive.
Google's Gemma release is a useful reference point for the shape of this category. The Gemma technical report describes two sizes, 2 billion and 7 billion parameters, with pretrained and fine-tuned checkpoints, and reports that Gemma outperforms similarly sized open models on 11 of 18 text-based tasks. Those are the sizes most of my production work sits in.
Training methods moved the line as much as the models did. QLoRA keeps the base model frozen at 4-bit precision and trains small adapters on top of it, and its authors report fine-tuning a 65 billion parameter model on a single 48GB GPU while preserving the task performance of full 16-bit fine-tuning. When that is possible, small stops meaning weak and starts meaning owned.
Where a small model wins
The clearest case I have built is a security classifier. The job is narrow: look at an incoming prompt and decide whether it is an attempt at prompt injection or SQL injection. I fine-tuned Gemma 7B with QLoRA for that one decision, and it reports 96 percent accuracy, 96 percent precision and 98 percent recall with a minimal hardware footprint.
Size was the whole point there. That classifier sits in the request path, so every single call to the protected endpoint pays for it. A large hosted model in that position would have added latency and a per-token bill to traffic that has not even been answered yet. A narrow decision, made millions of times, is exactly the shape that favours a small model.
Three conditions push me toward a small model, and they tend to arrive together:
- The task is narrow and definable. You can state the output as a label, a format, a score or a short structured answer. If you cannot write down what correct looks like, you cannot build the dataset either.
- The data cannot leave. Regulated records, customer documents and internal engineering material often cannot be sent to a shared endpoint at all, which rules out the easy option before cost is even discussed.
- Per-request cost is real. High volume, or a model in the request path, or both. At that point a fixed hosting bill beats a variable token bill.
Where a small model loses
A small model is not a cheaper large model. It is a narrower one, and teams that treat the two as interchangeable are usually disappointed in the same four ways.
- Open-ended questions across many domains. Breadth is what the large models are for. A model fine-tuned on your support tickets will not reason well about your contracts.
- Long multi-step work. Planning across many tool calls needs headroom the small models do not have. If that is your problem, the shape of the system matters more than the model, and my AI agent architecture guide is the better starting point.
- No labelled examples. Fine-tuning needs a few hundred to a few thousand good examples at minimum. With none, you have a data project, not a model project.
- Knowledge that changes every month. Training facts into weights means retraining every time the facts move.
That last one is the most common mistake I see. If the real complaint is that the model does not know your products, your prices or your policies, then model size is not the variable you should be adjusting. Retrieval is. My guide on RAG versus fine-tuning covers that decision properly, and the short version is that facts belong in an index you can update, not in weights you have to retrain.
SLM vs LLM: what I actually compare
When a client asks which to use, I do not compare benchmark scores. I compare the six things that decide whether the system survives its second year.
| Criterion | Fine-tuned small model | Large hosted model |
|---|---|---|
| Cost per request | Fixed hosting bill, very cheap per call at volume | Per token, rises with every new user |
| Latency | Lower and predictable on hardware you control | Depends on a shared endpoint and its queue |
| Privacy and hosting | Runs inside your infrastructure, data never leaves | Data leaves unless you pay for a private deployment |
| Task breadth | One job, done the same way every time | Many jobs with no training at all |
| Time to first version | Dataset, training run and an evaluation set | A prompt and an API key |
| Maintenance | You own drift, retraining and the evaluation set | The vendor upgrades the model, sometimes under you |
Read the last two rows together, because that is where the surprise lives. A large model gets you to a working prototype in an afternoon, and a small model does not. In exchange, a small model does not change behaviour the week a vendor ships a new version. I have had to re-tune prompts after a hosted model was upgraded, and I have never had to do that for a model sitting on my own hardware.
The honest summary: large models win on breadth and speed to first version, small models win on cost, latency and control, and nobody wins on maintenance. You just choose which kind of maintenance you would rather own.
How to fine tune a small language model for your task
The work is mostly data, not training. Five steps, in this order:
- Write down the single decision or output the model must produce, and the format it must produce it in.
- Build the dataset from your own documents, logs and past decisions. Expect this to take most of the project.
- Fine-tune with an adapter method rather than retraining the whole model.
- Evaluate against the large model you are replacing, on a fixed set you do not change between runs.
- Deploy behind a stable API so that callers never need to know what is behind it.
Step 3 is where adapters earn their place. LoRA freezes the pretrained weights and trains small low-rank matrices instead, and against GPT-3 175B tuned with Adam its authors report 10,000 times fewer trainable parameters and a threefold reduction in GPU memory. Because the low-rank update merges back into the original weights at deployment, inference adds no latency. Distillation is the other established route: train the small model on the soft, temperature-scaled outputs of a larger one rather than on hard labels alone. For the method itself, and for when training is the wrong tool entirely, see my guide on fine-tuning an LLM.
Step 4 is the one teams skip, and skipping it is how a small model quietly ships worse answers than the thing it replaced. You need a fixed question set with known-correct outputs before training starts, not after, so the comparison means something. My LLM evaluation guide covers how to build one that does not flatter the model.
I built SLM-PORTAL because those five steps stop most teams who have no machine learning group. It takes raw documents, generates clean training datasets from them, fine-tunes a lightweight model, and deploys it behind an OpenAI-compatible API, with complete tenant isolation so one organisation's data stays its own. The point of the OpenAI-compatible interface is unglamorous and important: your application code does not change when the model behind it does. The security classifier is the same pipeline run for a single narrow decision.
What it costs to keep one running
A hosted large model has no floor. No traffic means no bill. A small model you own has a floor, and the floor is the GPU, whether anyone uses it that day or not. That single difference decides more architectures than any benchmark. Below some volume the hosted model is simply cheaper, and the crossover point is worth calculating before you commit; my guide on AI development cost breaks down what else lands in that number.
Three recurring costs belong in the budget from the start, and all three are usually missing from it:
- The hosting floor. Reserved or always-warm capacity, plus whatever you pay for redundancy if the model is in a request path.
- Retraining. Behaviour drifts as your inputs change. Someone has to notice, rebuild the dataset and retrain, and that someone needs to be named.
- The evaluation set. It needs new cases as reality produces them, or it slowly stops testing anything real.
None of this is a reason to avoid small models. It is a reason to treat one as a system you run rather than a file you downloaded. The same discipline applies to serving it: see how to deploy an LLM in production for the parts that sit around the model.
Key takeaways
- Small is not a parameter count. It means a model you can fine-tune and serve on hardware you control.
- Pick a small model when the task is narrow, the data cannot leave, or per-request cost is real. Those three usually arrive together.
- Pick a large model for breadth, for long multi-step work, and for getting a first version running this week.
- If the problem is that the model does not know your facts, change the retrieval layer, not the model size.
- Adapter methods made this practical, and they let you fine-tune useful models without a cluster.
- Build the evaluation set before training, and compare against the model you intend to replace.
- Budget the hosting floor, the retraining and the evaluation set. A model you own is a system you run.
