A small language model (SLM) or compact language model (CLM) is an artificial intelligence language model designed for human natural language processing including language and text generation.
Overview A small language model typically has less than forty billion parameters. This make them feasible to train or host entirely on consumer electronics such as personal computers, laptops, or smart devices. In contrast, a large language model (LLM) typically contains hundreds of billions of training parameters, with some models exceeding a trillion parameters. This enables the model to encode vast amounts of information, improving the generalizability and accuracy of its outputs. However, training and hosting such models demands enormous computational resources, rendering it infeasible for an individual to do so using a single computer and graphics processing unit. Most contemporary small language models use the same architecture as a large language model, but with a smaller parameter count and sometimes lower arithmetic precision. Similar to LLMs, SLMs are optimized via knowledge distillation, pruning, and quantization. Like all language models, pretraining improves performance and classification accuracy of both tiny and small language models.
Models Notable families with some models under ten billion parameters include:
Gemma by Google DeepMind Granite by IBM Nemotron Nano by Nvidia Muse Glimmer by Meta Superintelligence Labs Ministral by Mistral AI Phi Mini by Microsoft Qwen Mini by Alibaba Cloud SmolLM by Hugging Face family of SLMs, including SmolLM2 models with 135 million, 360 million, and 1.7 billion parameters. Tiny Recursive Model by Samsung AI Labs Montréal "Advanced" (on-device) Apple Foundation Models by Apple
See also Edge computing
References