Small language models, often abbreviated SLMs, are language models with comparatively modest parameter counts and computational requirements. There is no universally accepted parameter threshold that separates a small model from a large one. The practical question is whether a model meets the application's quality requirements within its memory, latency, throughput, and cost constraints. A smaller pre-trained model may be sufficient for extracting fields from support tickets, classifying customer requests, producing short summaries, or answering questions within a tightly defined domain.
Model selection should begin with representative evaluation data rather than parameter count alone. For an invoice-processing application, compare candidate models on field accuracy, valid structured output, handling of missing values, and resistance to instructions embedded in invoice text. Also measure time to first token, complete-response latency, throughput under concurrency, and cost per successfully completed task. A compact model that repeatedly produces invalid output can cost more overall than a larger model that succeeds on the first attempt.
In the cloud, engineers can invoke a smaller model through a managed inference API or deploy its weights to a managed endpoint or container-based inference service. API-based access reduces infrastructure management but leaves hardware selection and some serving optimizations with the provider. Hosting the model provides greater control over instance types, batching, scaling, and inference software, while adding responsibility for capacity planning, patching, and availability. Some compact models can run effectively on CPUs, but suitability depends on model architecture, precision, context length, concurrency, and latency targets.
A common deployment strategy is API-based model cascading. For example, a support application first sends routine requests to a compact instruction-tuned model. The application accepts responses that pass task-specific checks and escalates unsupported or ambiguous requests to a more capable model through a second API call. Checks might include schema validation, required evidence from retrieved documents, business-rule validation, or an independently evaluated quality classifier. A model's statement that it is confident is not a reliable acceptance criterion by itself.
Cascading creates a measurable trade-off. Requests handled successfully by the first model can reduce average inference expense, but escalated requests incur both stages' costs and additional latency. Engineers should track escalation rate, false acceptance rate, quality by request category, and tail latency. If most requests need escalation, routing clearly difficult requests directly to the larger model may be more efficient. High-risk actions should still require deterministic authorization and validation, regardless of which model produces the response.
Smaller models can be adapted through prompting, retrieval-augmented generation, or fine-tuning. Retrieval supplies relevant external information but does not guarantee that a model can reason over it correctly. Fine-tuning can improve a bounded task, but it requires suitable data and regression testing. Knowledge distillation can train a smaller model using outputs or signals from a larger model. Quantization reduces numerical precision and can lower memory requirements, but a quantized large model is not automatically a small language model.
Resource savings are not determined by weight size alone. Model weights, runtime overhead, and the attention key-value cache all consume memory; long contexts and concurrent requests can substantially increase requirements. Smaller models may have weaker broad reasoning, multilingual performance, or instruction-following capability, although results depend on training and task fit. They can still hallucinate, disclose sensitive information, and follow malicious instructions. Choose the smallest model that demonstrably satisfies the workload's quality and safety requirements, rather than assuming that smaller always means faster, cheaper, or safer.