Book a demo →

Small Language Model (SLM)

Definition

Small language models run on laptops and phones. Sources that give a number set the limit at 5 to 40 billion parameters. How they are built and run.

In short

A small language model (SLM) is a language model small enough to run on a laptop, a phone or other hardware with limited resources. How small is disputed: the sources that name a number put the limit between 5 and 40 billion parameters, and some define it by the device instead.

What a small language model is

A small language model (SLM) is a language model with far fewer parameters than a large language model, built to run with less memory and computing power. IBM Think (retrieved 5 December 2026) starts from what the model does: “Small language models (SLMs) are artificial intelligence (AI) models capable of processing, understanding and generating natural language content.” Microsoft Azure stresses the narrower job: “SLMs are trained to perform specific tasks using fewer resources than larger models.”

Red Hat defines the term by comparison: “A small language model (SLM) is a smaller version of a large language model (LLM) that has more specialized knowledge, is faster to customize, and more efficient to run.” Size is counted in parameters, the learned weights of the network. What makes a language model large in the first place is covered in the entry on large language models.

Where the line between small and large is drawn

The sources do not agree on a size. Those that name a number put the upper limit between 5 and 40 billion parameters, a factor of eight. Others define a small model by the device it runs on and give no number at all.

Source and dateUpper limit
Lu et al., arXiv, 24 Sep 20245 billion, from 100 million
Gupta et al., arXiv, 3 Jan 2025 (revised 14 May 2026)Below 8 billion
John Johnson, Hugging Face community article, 22 Feb 202510 billion, from 1 million
Belcak et al. (NVIDIA), arXiv, 2 Jun 2025“Most models below 10bn”, as of 2025; defined by the device
Wikipedia, retrieved 5 Dec 2026Below 40 billion
IBM Think, retrieved 5 Dec 2026“A few million to a few billion”
Wang et al., arXiv, 4 Nov 2024No number; set by limited resources

Limits as the sources state them. Dates of the first arXiv versions or of the article.

Lu et al. tie their limit to where models were deployed: they chose 5 billion because “7B LLMs are still mostly deployed in the cloud”, as of September 2024. Gupta et al. write: “As such our definition of SLMs includes general purpose language models with less than 8B parameters.” The same survey states the problem plainly: “A universally agreed upon line distinguishing SLMs vs LLMs cannot be drawn.”

The NVIDIA position paper defines the term without a number: “A SLM is a LM that can fit onto a common consumer electronic device and perform inference with latency sufficiently low to be practical when serving the agentic requests of one user.” Its authors note that the choice of definition has “little bearing on the essence of our position”, and give a figure: “We note that as of 2025, we would be comfortable with considering most models below 10bn parameters in size to be SLMs.” Wang et al. set both ends by capability and resources: “we define SLMs as falling within a range where the lower bound is the minimum size at which the model exhibits emergent abilities for a specialized task, and the upper bound is the largest size manageable within limited resource conditions.”

Any number also ages. Nguyen et al. (25 October 2024): “the definitions of ‘small’ and ‘large’ are a function of both context and time. GPT-2, a ‘large language model’ in 2019 at 1.5B parameters, is smaller than many ‘small’ language models covered in this survey.” The appendix of the NVIDIA paper argues against a parameter count for the same reason: “what qualifies as ‘small’ today may be ‘large’ tomorrow”. John Johnson's community article notes a further objection: “Some practitioners don't like the term ‘Small Language Model’, because a billion parameter is not small by any means”.

Model families cut across these lines. Google describes Gemma 3 as a family of “lightweight open models, ranging in scale from 1 to 27 billion parameters”. Its largest model is above the limits of 5, 8 and 10 billion, and below Wikipedia's 40 billion.

Upper limits named in five sources and model sizes stated by their publishers, in billions of parameters on a logarithmic scale. NVIDIA gives 10 billion only as orientation for 2025. Sources: Lu et al., Gupta et al., Belcak et al. (arXiv); John Johnson, Hugging Face community; Wikipedia; publisher papers and announcements of Apple, Google, Meta, Microsoft and Hugging Face; retrieved 5 December 2026.

Examples of small language models

The table lists models whose publishers describe them as small, lightweight or built for devices, with the size each publisher states.

ModelSize, publisher and date
Apple on-device modelAbout 3 billion; Apple, arXiv 29 Jul 2024
Gemma2 and 7 billion; Google, arXiv 13 Mar 2024
Gemma 31 to 27 billion; Google, arXiv 25 Mar 2025
Llama 3.2 (text models)1 and 3 billion; Meta, 25 Sep 2024
phi-3-mini3.8 billion; Microsoft, arXiv 22 Apr 2024
SmolLM2135 million, 360 million and 1.7 billion; Hugging Face, arXiv 4 Feb 2025

Sizes as stated by the publishers, retrieved 5 December 2026. The list is a set of documented examples in alphabetical order, not a ranking and not a current overview.

The publishers' own descriptions show what “small” means to them. Meta introduced “lightweight, text-only models (1B and 3B) that fit onto edge and mobile devices”. Apple presented “a ~3 billion parameter model designed to run efficiently on devices”. Microsoft introduced “phi-3-mini, a 3.8 billion parameter language model”, and Google released “two sizes of models (2 billion and 7 billion parameters)” with the first Gemma.

How a language model is made small

Wang et al. name three techniques for deriving a small model from a large one: “pruning, knowledge distillation, and quantization”. Published models show a fourth route: training a small model from the start on selected data.

MethodWhat it does
Knowledge distillationA large teacher model trains a smaller student model
PruningRemoves weights, neurons or layers that contribute little
QuantizationStores the weights with fewer bits
Data selection and longer trainingTrains a small model on filtered or synthetic data, for longer

Sources for each row in the text below.

Knowledge distillation. The method predates small language models. Hinton, Vinyals and Dean (9 March 2015) built on earlier work: “Caruana and his collaborators have shown that it is possible to compress the knowledge in an ensemble into a single model which is much easier to deploy”. Their experiments used image and speech models. Meta describes how it applies the idea to language models: “Knowledge distillation uses a larger network to impart knowledge on a smaller network, with the idea that a smaller model can achieve better performance using a teacher than it could from scratch.” Google's Gemma 3 report states: “All Gemma 3 models are trained with knowledge distillation”. How a student learns from a teacher, the two methods that both carry the name, and where the technique stops working are covered in the entry on knowledge distillation.

Pruning. IBM: “Pruning removes less crucial, redundant or unnecessary parameters from a neural network.” Meta applied “pruning and distillation” to the 1B and 3B models of Llama 3.2.

Quantization. IBM: “Quantization converts high-precision data to lower-precision data.” IBM's example stores model weights as 8-bit integers instead of 32-bit floating point numbers. GPTQ (31 October 2022) is one published method, “a new one-shot weight quantization method based on approximate second-order information”.

Data selection and longer training. Microsoft trained phi-1, a model for code with 1.3 billion parameters, on “textbook quality” data from the web and on synthetic textbooks (20 June 2023). For Phi-3 it used “heavily filtered publicly available web data and synthetic data”. Sources define synthetic data in different ways; the entry on synthetic data lists six definitions with the date of each page. Hugging Face took a different route with its 1.7 billion model: “we overtrain SmolLM2 on ~11 trillion tokens of data using a multi-stage training process”. The two smaller SmolLM2 models were trained on 4 trillion (360 million parameters) and 2 trillion tokens (135 million).

Fine-tuning is a separate step: it adapts an existing model to a task or domain. A mixture-of-experts model uses only part of its parameters for each token, but all of them must be held in memory, so it is not a route to a small model.

Where small models run

The Phi-3 report gives a measured example. Its authors describe phi-3-mini as “small enough to be deployed on a phone”. Quantized to 4 bits, the model takes about 1.8 GB of memory. On an iPhone 14 with an A16 Bionic chip it ran “natively on-device and fully offline”, at more than 12 tokens per second, according to the report.

Wikipedia describes the general case: small models are feasible “to train or host entirely on consumer electronics such as personal computers, laptops, or smart devices”. Meta built the 1B and 3B Llama 3.2 models for “edge and mobile devices”, and Apple's model runs on the device, with a larger server model alongside it.

Running on the device changes where the data goes. Wang et al. list what cloud-hosted large models bring with them, “often requiring cloud API use which raises privacy concerns, limits real-time applications on edge devices, and increases fine-tuning costs”. The Phi-3 report says the test ran fully offline, which means the model needed no cloud connection. The entry on AI inference collects how sources describe inference on a device.

Small and large language models

Lu et al. contrast the “widespread adoption in modern smart devices” of small models with large ones, which are “predominantly deployed in data centers and cloud environments”.

The NVIDIA paper (2 June 2025, revised 22 September 2026) argues for small models in AI agents: “Here we lay out the position that small language models (SLMs) are sufficiently powerful, inherently more suitable, and necessarily more economical for many invocations in agentic systems”. Where broad conversation is needed, the authors favour mixed setups: “heterogeneous agentic systems (i.e., agents invoking multiple different models) are the natural choice”.

Small and large models can also work in sequence. Gupta et al. describe small draft models that “generate preliminary sequences of tokens that can be subsequently verified by larger models”. The entry on speculative decoding explains how a draft and a check fit together. On quality, the abstract of Gupta et al. states that the surveyed models “demonstrate smaller models can perform as well, or even outperform large models”. The same survey adds a caveat on such comparisons: “benchmark contamination is a well-documented concern”.

Training data matters as well as size: the SmolLM2 paper is titled “Data-Centric Training of a Small Language Model”. How training on human ratings changes a model's answers is covered in the entry on RLHF.

Limits and trade-offs

The Phi-3 report names a weakness of its own small model: “The model simply does not have the capacity to store too much ‘factual knowledge’, which can be seen for example with low performance on TriviaQA.” The authors suggest a remedy: “we believe such weakness can be resolved by augmentation with a search engine”. Connecting a model to a search index in this way is the idea behind retrieval-augmented generation.

IBM lists two further limits. On breadth: “Small language models lack the wide knowledge base of their expansive equivalents, so they might be better suited for targeted language tasks.” On reliability: “Validating the results of SLMs is vital to make sure what they produce is factually correct.”

Source

  • IBM Think, “What are Small Language Models (SLM)?”. Source for the definition, size range, pruning, quantization, fine-tuning and limits (retrieved 2026-12-05): https://www.ibm.com/think/topics/small-language-models
  • Microsoft Azure, “What Are Small Language Models (SLMs)?”. Source for the definition (retrieved 2026-12-05): https://azure.microsoft.com/en-us/resources/cloud-computing-dictionary/what-are-small-language-models
  • Red Hat, “SLMs vs LLMs: What are small language models?”. Source for the definition by comparison (retrieved 2026-12-05): https://www.redhat.com/en/topics/ai/llm-vs-slm
  • Wikipedia, “Small language model”. Source for the 40 billion limit and consumer hardware (retrieved 2026-12-05): https://en.wikipedia.org/wiki/Small_language_model
  • John Johnson, “Small Language Models (SLM): A Comprehensive Overview”, Hugging Face community article (22 February 2025). Source for the 1 million to 10 billion range and the objection to the term (retrieved 2026-12-05): https://huggingface.co/blog/jjokah/small-language-model
  • Lu et al., “Small Language Models: Survey, Measurements, and Insights” (arXiv 2409.15790, 24 September 2024). Source for the 5 billion limit and deployment of large models (retrieved 2026-12-05): https://arxiv.org/abs/2409.15790
  • Nguyen et al., “A Survey of Small Language Models” (arXiv 2410.20011, 25 October 2024). Source for context and time, GPT-2 (retrieved 2026-12-05): https://arxiv.org/abs/2410.20011
  • Wang et al., “A Comprehensive Survey of Small Language Models in the Era of Large Language Models” (arXiv 2411.03350, 4 November 2024). Source for the definition by resources, the three techniques and privacy (retrieved 2026-12-05): https://arxiv.org/abs/2411.03350
  • Gupta et al., “Small Language Models (SLMs) Can Still Pack a Punch: A survey (updated 2026)” (arXiv 2501.05465, 3 January 2025, revised 14 May 2026). Source for the 8 billion limit, draft models and benchmark caveats (retrieved 2026-12-05): https://arxiv.org/abs/2501.05465
  • Belcak et al. (NVIDIA), “Small Language Models are the Future of Agentic AI” (arXiv 2506.02153, 2 June 2025, revised 22 September 2026). Source for the definition by device and the position on agents (retrieved 2026-12-05): https://arxiv.org/abs/2506.02153
  • Abdin et al. (Microsoft), “Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phone” (arXiv 2404.14219, 22 April 2024). Source for phi-3-mini, the iPhone measurement and the limit on factual knowledge (retrieved 2026-12-05): https://arxiv.org/abs/2404.14219
  • Gunasekar et al. (Microsoft), “Textbooks Are All You Need” (arXiv 2306.11644, 20 June 2023). Source for phi-1 and its training data (retrieved 2026-12-05): https://arxiv.org/abs/2306.11644
  • Gemma Team (Google), “Gemma: Open Models Based on Gemini Research and Technology” (arXiv 2403.08295, 13 March 2024). Source for the first Gemma sizes (retrieved 2026-12-05): https://arxiv.org/abs/2403.08295
  • Gemma Team (Google), “Gemma 3 Technical Report” (arXiv 2503.19786, 25 March 2025). Source for Gemma 3 sizes and distillation (retrieved 2026-12-05): https://arxiv.org/abs/2503.19786
  • Meta, “Llama 3.2: Revolutionizing edge AI and vision with open, customizable models” (25 September 2024). Source for the 1B and 3B models, pruning and distillation (retrieved 2026-12-05): https://ai.meta.com/blog/llama-3-2-connect-2024-vision-edge-mobile-devices/
  • Gunter et al. (Apple), “Apple Intelligence Foundation Language Models” (arXiv 2407.21075, 29 July 2024). Source for the on-device model (retrieved 2026-12-05): https://arxiv.org/abs/2407.21075
  • Ben Allal et al. (Hugging Face), “SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Model” (arXiv 2502.02737, 4 February 2025). Source for SmolLM2 sizes and training (retrieved 2026-12-05): https://arxiv.org/abs/2502.02737
  • Hinton, Vinyals and Dean, “Distilling the Knowledge in a Neural Network” (arXiv 1503.02531, 9 March 2015). Source for knowledge distillation (retrieved 2026-12-05): https://arxiv.org/abs/1503.02531
  • Frantar et al., “GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers” (arXiv 2210.17323, 31 October 2022). Source for GPTQ (retrieved 2026-12-05): https://arxiv.org/abs/2210.17323

Frequently asked questions

How do I build my own small language model?

Three routes appear in the sources. Train one from scratch: Hugging Face trained the 1.7 billion SmolLM2 on about 11 trillion tokens. Shrink a larger model: Meta used pruning and distillation for the 1B and 3B Llama 3.2 models. Or adapt an existing small model: IBM writes that enterprises can fine-tune SLMs on domain-specific datasets to customize them for their specific needs.

Is a small language model better than a large one?

An NVIDIA position paper (2 June 2025) argues that small models suit many tasks in AI agents. IBM writes that they lack the wide knowledge base of larger models and might be better suited for targeted language tasks. Gupta et al. report that small models can match large ones on benchmarks and warn that benchmark data may have leaked into training.

Can a small language model run on a laptop or a phone?

Yes. Microsoft's Phi-3 report (22 April 2024) describes phi-3-mini, quantized to 4 bits, using about 1.8 GB of memory and generating more than 12 tokens per second on an iPhone 14, offline. Wikipedia names personal computers, laptops and smart devices as hardware that can host small models.

What does SLM stand for?

In AI, SLM stands for small language model. The abbreviation has other meanings: Google's AI Overview for the search “slm” (United States, 5 December 2026) also names SLM Corporation, known as Sallie Mae.

What are examples of small language models?

Documented examples include phi-3-mini (3.8 billion parameters, Microsoft, April 2024), Llama 3.2 1B and 3B (Meta, September 2024), Gemma 3 (1 to 27 billion, Google, March 2025), Apple's on-device model (about 3 billion, July 2024) and SmolLM2 (up to 1.7 billion, Hugging Face, February 2025). The table above lists sizes and dates.