What is a small language model (SLM)?
A small language model uses fewer resources than a larger alternative for a particular task and deployment environment. There is no universal parameter cutoff. A model that fits on a server may not fit on a phone, and parameter count alone does not tell you its memory use, speed, or accuracy. Quantization, context length, hardware, and the output task all matter. Google's Gemma 3n overview illustrates how an edge-oriented model uses selective activation and caching to manage memory; its effective parameter label is not the same as the total parameters loaded in every configuration. According to the same page, the E2B model has more than 5 billion parameters in total but can run with an effective memory load of about 1.91 billion parameters, thanks to per-layer embedding caching and parameter skipping. The page also says the model was trained in over 140 languages and offers a 32K-token context; that makes it worth trying for Turkish, not proof that it will do your Turkish task well.
For a concrete sense of scale, Microsoft's Phi-3 technical report says the 3.8-billion-parameter phi-3-mini, quantized to 4 bits, occupies about 1.8 GB of memory and produced more than 12 tokens per second running fully offline on an iPhone 14. That is a measurement for one model on one device, not a ceiling or a guarantee; you need to measure again on your own hardware.
Which tasks is a small model good enough for?
It can be good enough when the task is narrow, the output can be checked, and most of the information it needs is in the input. The more general knowledge the model has to memorise, the more a small model struggles. The Phi-3 report says so plainly: the model does not have the capacity to store much factual knowledge, and the authors suggest the weakness can be addressed by augmenting it with a search engine. The same report notes that the model's language was mostly restricted to English, so measure Turkish performance on your own examples rather than reading it off a model card.
| Task | Is a small model a fit? | Watch out for |
|---|---|---|
| Classification, routing, tagging | Often a good candidate | Measure per category; escalate ambiguous cases |
| Structured field extraction (dates, amounts, document numbers) | A good candidate, especially with fine-tuning | Validate the output schema in code |
| Short summaries and rewriting | Can fit | Context limits and dropped details in long documents |
| Question answering over documents (RAG) | Can fit if retrieval is good | The model must use the retrieved passage, not its own memory |
| Questions that need broad general knowledge | Weak candidate | A small model can store only limited knowledge |
| Multi-step planning, agents that choose tools | Depends on the case | Errors carry from step to step; compare with a larger model |
| Offline use, or data that cannot leave the premises | Often the only option | Plan hardware, battery and updates from the start |
How do you estimate a small model's memory needs?
Roughly, the weights take up the number of parameters multiplied by the bytes per parameter, and runtime memory comes on top. Hugging Face's quantization documentation explains that storing weights at lower precision reduces memory requirements while trying to preserve as much accuracy as possible. Weights are commonly stored in 16-bit formats (fp16 or bf16), and some methods reduce them further to integer representations such as int8 or int4.
A hypothetical calculation: the weights alone of a 4-billion-parameter model take about 8 GB at 16 bits (2 bytes per parameter), about 4 GB at 8 bits and about 2 GB at 4 bits. On top of that come the key-value (KV) cache, which grows with context length, the runtime and the application itself. The Phi-3 report's 3.8 billion parameters at roughly 1.8 GB in 4 bits is consistent with this rough arithmetic. Because lower precision can affect accuracy, compare the quantized model with the unquantized version on the same test set. A small model is not automatically faster on unsuitable hardware either; measure response time on the target device.
Should a small model run on the device or on your own server?
Decide by where the data must stay, how reliable the connection is and how often you will update the model. Running on the device removes network latency and makes offline use possible; in exchange, memory, battery and model updates become a problem on every device. An on-premises server keeps data inside the organisation's network and lets you update the model in one place, but you have to operate the hardware, scaling and monitoring yourself. A cloud API is the fastest start, but data leaves the organisation and the rules for transferring personal data need to be settled up front. The same small model can run at different speeds and costs in these three environments, so compare them in the target environment.
What does distillation add to a small model?
Distillation transfers what a large model, or an ensemble of models, has learned into a smaller one. Hinton, Vinyals and Dean's paper “Distilling the Knowledge in a Neural Network” develops the idea that the knowledge in an ensemble can be compressed into a single model that is much easier to deploy. In practice, the small model is trained to imitate the large model's outputs, or on examples the large model prepared and people reviewed.
Distillation works on narrow tasks: if a large model handles a classification or extraction job well, a small model can learn that behaviour for that task. It does not carry over general ability as a whole. Before using a large model's output as training data, check that model's terms of use, and measure the distilled model on the same test set as the teacher.
Hypothetical example: sorting incoming support requests
Imagine an application that routes customer messages into “billing,” “technical,” and “other.” A compact model may be enough to classify common messages and return a strict category. The system should send uncertain cases to a larger model or a human, especially when a request contains several issues or sensitive information. This is a hypothetical design example.
Build a labeled test set from messages you are permitted to use. Include Turkish spelling variations, short messages, long messages, ambiguous cases, and categories that are costly to confuse. Compare the small model with a larger model and a simple rules baseline. Measure precision and recall by category, escalation rate, p95 response time on your actual hardware, memory use, and cost per thousand requests. A model is “small enough” only if it meets the required quality and operating constraints. Keep the test set separate from any examples used for fine-tuning or distillation; otherwise the result measures how well the model remembers what it has seen, not how well it works.
Put the comparison in a table: rules baseline, small model and large model as rows; precision and recall per category, escalation rate, p95 latency and cost as columns. If the small model is good enough for “technical” but not for “billing,” you do not have to give it up entirely; you can escalate only that category, or only low-confidence predictions.
Does running on the device guarantee privacy?
Not on its own. Running on a device or private server can reduce the need to send raw data to a third-party API. It does not automatically make the product private. Telemetry, logs, updates, backups, and retrieved documents may still move data elsewhere. Check the entire data flow, the model licence, update process, and access controls; our AI data privacy guide covers these boundaries. Offline operation also depends on packaging all required components locally, not simply choosing a small model. Shipping a small model inside a phone app adds its own constraints on app size, battery use and model updates; discuss them at the start of product design.
How do you choose between a small and a large model?
Try the simplest system that meets the acceptance threshold. Classification and extraction can be good candidates for smaller models, but complex reasoning is not automatically a large-model task, and a small model is not automatically faster on unsuitable hardware. A routing design can use a cheap first pass and escalate low-confidence or high-risk cases. Anthropic's agent workflow guide gives the example of routing easy, common requests to smaller, cost-efficient models and hard, unusual ones to more capable models. The threshold and claimed savings need to be measured for your workload. Count two errors separately in such a design: cases that stayed with the small model and were answered wrongly when they should have been escalated, and cases that went to the large model unnecessarily. The first hurts quality; the second erodes the cost advantage.
Narrow the decision with three questions. Can the data leave the organisation? If not, your options shrink to models running on your own servers or on the device. How narrow is the task? For a narrow, repetitive task, a fine-tuned small model is a strong candidate. How expensive is an error? If it is expensive, do not leave the small model on its own; use it with a confidence threshold, rule checks and human approval. Fine-tuning a small model for your task and running it on-premises are covered on our large language model training and fine-tuning page.
Common mistakes
- Reading model size from the parameter count alone and ignoring context length and the KV cache.
- Not comparing the quantized model with the unquantized version on the same test set.
- Taking English benchmark scores as evidence of performance on a Turkish task.
- Expecting broad general knowledge from a small model, and relying on its memory instead of a retrieval layer.
- Treating on-device deployment as a privacy guarantee without reviewing telemetry and logs.
- Measuring latency on a developer laptop instead of the target device.
- Not tracking the escalation rate; as it rises, the small model's cost advantage disappears.
- Choosing a model once and not rerunning the tests when data, categories or the model version change.