Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Small language model

Topic: Training and modelsAlso called SLM

Definition

A language model small enough, usually up to a few billion parameters, to run cheaply on a laptop, phone or modest GPU.

In more detail

There is no fixed cut-off, but small models are typically built by distilling larger ones and training on carefully filtered data. Families such as Phi, Gemma, Qwen and Llama include small sizes, and quantized versions run in tools like Ollama and llama.cpp.

They are good at narrow tasks such as classification, extraction, routing and short summaries, especially after fine-tuning, and they keep data on the device. They are weaker at broad knowledge and long, multi-step reasoning. A common design uses a small model for the bulk of simple requests and a large one for the rest.

  • Distillation

    Training a smaller model to imitate the outputs of a larger one, keeping much of the quality at a lower cost and latency per request.

  • Large language model (LLM)

    A neural network trained on very large amounts of text to predict the next token, which lets it generate and transform language.

  • Open-weight model

    A model whose trained weights are published for download, whatever the licence terms on their use. Training data and code may stay private.

  • Quantization

    Storing model weights at lower numerical precision, such as 8 or 4 bits, to reduce memory use and speed up inference at a small quality cost.

  • Model routing

    Choosing which model handles each request, often sending easy requests to a small, cheap model and hard ones to a larger model.

  • Local models

    Running open-weight models on your own hardware for privacy, cost or offline use.

    SkillBeginner

  • Run local models with Ollama

    Install Ollama, run an open-weight model on your own machine, call it from scripts over the local API and choose a model size your hardware can handle, offline.

    TutorialBeginner30 min

  • Distillation

    Training a smaller model to imitate the outputs of a larger one, keeping much of the quality at a lower cost and latency per request.

    Glossary