AI GLOSSARY · AI CONCEPTS

Small language model (SLM)

Markdown version · Wikidata Q123759530

Definition

A small language model (SLM) has fewer learned parameters than a larger comparison model. It may fit modest hardware, but fit and resource use depend on its numeric format, runtime, context length and device.

Also called: SLM, SLMs, small language models, SLM vs LLM, small LLM, compact language model.

In plain language

A small language model is a smaller version of the AI behind chat assistants. It has fewer of the learned numbers, called parameters, that store what a model has learned, which can reduce weight storage. Whether it fits a laptop, phone or company server, and how much power or time it uses, depends on the model, numeric format, runtime, context length and device. Think of a pocket dictionary next to a full encyclopedia: quicker to carry and consult, but it covers less. IBM says small models often do worse on complex tasks that need broad knowledge, and their outputs can still contain made-up facts, so answers need checking. They are often chosen for narrow, repeated jobs where lower running cost and keeping data in-house matter.

Technical definition

An SLM is a language model, typically a transformer, with far fewer parameters than a large language model. IBM discusses pruning, which removes weights, neurons or layers; knowledge distillation, which can train a smaller student to imitate a teacher; and quantization, which reduces numerical precision and storage per weight, not necessarily the number of parameters. IBM puts the typical range at a few million to a few billion parameters. Fewer parameters or lower precision can reduce weight memory, but hardware fit, latency and power depend on the full runtime workload; they are not guaranteed by the size label.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Skill by Skill Almanac · Illustrative, not executed

    local-model-sizing 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    A check of whether an open-weight language model will run on a given GPU, Mac or PC, using a script that computes the memory needed for the weights and related costs.
    Why it exercises the concept
    Small models are mostly chosen because they fit on hardware you already have. This skill turns that fit into a calculation instead of a guess.
  2. Skill by Skill Almanac · Illustrative, not executed

    llm-cost-estimator 56/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    A monthly cost range for an LLM feature, built from your own usage profile and your own price table, with cache, batch and subscription effects.
    Why it exercises the concept
    Lower running cost is a common argument for a small model. Entering the prices of a small and a large model into your own usage profile shows whether the argument holds at your volume.
  3. Coding tool · Illustrative, not executed

    Claude Code

    What to try
    /cost
    What you see
    The /cost command in Claude Code, documented at code.claude.com, reports usage and cost information for the current session.
    Why it exercises the concept
    Session usage is a baseline for a hypothetical alternative-model comparison. Estimate the alternative’s costs using its prices and workload, then evaluate task quality separately; this display alone establishes neither savings nor adequacy.

How it shows up when you use agents

Coding agents such as Claude Code and Codex normally call a hosted large language model. A small model matters when you want the opposite trade: run the model yourself, keep text on your own machine, or pay less per request. Microsoft's Phi-2 write-up presents its small model as a research platform and argues that training data quality matters, which is one reason a small model is not simply a worse large one.

Small does not mean interchangeable. IBM says small models can be "less proficient on complex tasks that require knowledge across a comprehensive spectrum of topics", so swapping one into a multi-step agent can lower the quality of plans and tool calls. That cost is often found late, after outputs are already in use.

The safer habit is to test on your own tasks before switching. Collect a small set of real examples with expected answers, run both models over it and compare. The self-hosted LLM page covers what running one yourself involves, and fine-tuning is a common way to make a small model good at one narrow job.

Before buying hardware, check that the model fits in memory. The sizing skill below does that arithmetic, and the cost skill shows whether the running-cost saving is real at your volume.

Common confusions

  • Small language model versus large language model. The difference is size, meaning the number of parameters. Both generate text. There is no agreed cut-off, and IBM gives a range, not a single number.
  • Small versus quantized. Quantization stores a model's numbers at lower precision. It is one way to make a model cheaper to run, and it can be applied to a large model too.
  • Small versus distilled. Distillation is a training method that can produce a small model, and a small model can also be pruned or trained directly. See Distillation.
  • Myth. A small model is as capable as a large one because it is cheaper. IBM says small models can match larger ones on some benchmarks but often do worse on tasks needing broad knowledge, so test on your own work.

Terms that mention Small language model (SLM)

2 terms mention this one

More in AI concepts

Next steps

  1. local-model-sizing A skill that exercises it.
  2. Distillation Related term.
  3. Large language model (LLM) Related term.
  4. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-25. Wikipedia is never the only source.

Review record

Last verified

Drafted by Claude (original draft); OpenAI Codex (bounded factual repairs); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-25. Last verified .

Change log (5)
  • : Independent automated factual/example review completed. Cached US query estimate aligned to receipt; no traffic promise. Final technical gate recorded separately; publication disabled.
  • : First version.
  • : Verifier pass: applied verifier corrections to wording and sources.
  • : Bounded source repairs: Made hardware/power/latency conditional; separated quantization precision/storage from parameter reduction; scoped session usage as baseline for hypothetical alternative-cost and quality checks. Pending independent re-review.
  • : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.