Book a free call

Small Language Models in Enterprise AI, Explained

Small language models run inside the company, on modest hardware, for narrow jobs like classification and extraction. Here is where they fit and where they do not.

Hertiv engineering teamReviewed by a senior engineer
6 min read
Small Language Models in Enterprise AI, Explained
On this page

Short answer

A small language model is a language model with roughly 1 to 13 billion parameters, small enough to run on a laptop, an on-premise server or an edge device. In enterprise AI it fits high-volume, narrow, repetitive work such as classification, extraction and summarisation, where it can run inside the company perimeter at lower cost and latency than a frontier model API.

What are small language models in enterprise AI?

A small language model (SLM) is a language model with roughly 1 to 13 billion parameters, small enough to run on commodity hardware such as a laptop, an on-premise GPU server or an edge device, while still handling targeted business tasks. In enterprise AI, an SLM is the model you use for routine, measurable work, while a larger model handles the open-ended questions.

The mainstream enterprise SLMs include Microsoft Phi-4 at 3.8 billion parameters, Google Gemma 2 in 2 and 9 billion variants, Mistral 7B, Meta Llama 3.2 in 1 and 3 billion variants, and Qwen 2.5.

Microsoft's Phi-3 family, introduced in April 2024 with Mini at 3.8 billion, Small at 7 billion and Medium at 14 billion parameters, showed that useful enterprise workloads do not always need a frontier-scale model. For the definition in full, see what a small language model is.

Model family Size Enterprise use
Microsoft Phi-4 3.8 billion Reasoning, extraction, on-premise use
Google Gemma 2 2 and 9 billion General tasks on modest hardware
Mistral 7B 7 billion Fine-tuning, structured output
Meta Llama 3.2 1 and 3 billion Mobile and edge deployment
Qwen 2.5 0.5 to 72 billion Multilingual work, coding

The defining feature is not the parameter count alone. It is the deployment economics: an SLM can run inside your data centre, on your own cloud account or on-device, without the per-token fees, latency and vendor lock-in of calling a frontier model API. For how the two compare, see SLM vs LLM compared.

Where do SLMs fit in an enterprise?

SLMs fit work that is high-volume, narrowly scoped, repetitive, latency-sensitive or subject to strict data-residency rules. The pattern is the same across industries: the routine work goes to the small model, and the difficult cases go to a larger model or a person.

  • Document classification and routing. Tagging invoices, contracts, support tickets or claims into a fixed taxonomy, where the categories do not change.
  • Structured data extraction. Pulling fields out of PDFs, emails or scanned forms with a fixed layout, where the output format is known in advance.
  • Summarisation. Short summaries of calls, meetings or long documents, where a human checks the result before it is used.
  • Retrieval-augmented generation. Answering from company documents, where the model reads retrieved passages instead of relying on its own memory.
  • On-device and edge work. Factory inspection, retail scanning and field service, where data cannot leave the device or latency must stay low.
  • Routing and triage. Deciding which requests need a large model, a workflow or a human, and sending the rest to the small model.

The common thread is bounded work with a measurable answer. If you can score the output against a fixed standard, an SLM is a candidate. If the task is open-ended and the quality standard is vague, it probably is not.

How do enterprises deploy them?

Enterprises deploy SLMs in three main patterns: local serving, quantized CPU serving and production GPU serving. The pattern follows the volume and the latency target, not the model alone.

Local serving with a tool such as Ollama is the simplest path to on-premises deployment: pull the model, serve it over a local API, and keep prompts and completions inside the network.

Quantized serving with llama.cpp runs smaller models on CPU with no GPU required, which suits edge devices and low-volume use. Production GPU serving with vLLM handles high-throughput use, where many requests arrive at once and need fast replies. For the model list to choose from, see the top small language models compared.

Whichever pattern you pick, the model still needs the same controls as any enterprise system: access control, encrypted storage, logging, patching, supply-chain review and evaluation. Running a model locally does not automatically make it secure or compliant; it only changes where the data sits.

How to fine-tune an SLM for enterprise work

Fine-tuning is where an SLM earns its keep. A small model tuned on a few hundred internal examples can match or beat a general model on one narrow task, because it has been optimised for exactly that task and nothing else.

  1. Pick one narrow task. Choose a task with a fixed output, such as classifying tickets into 15 categories or extracting five fields from an invoice.
  2. Gather labelled examples. Collect a few hundred real examples with correct answers, cleaned and checked by the team that owns the task.
  3. Choose the base model. Compare open-weight models on licence, size, language coverage and how they run on your hardware.
  4. Fine-tune and measure. Train on the examples, then score the model on held-out examples against the current process, not against a benchmark.
  5. Deploy behind a router. Send routine requests to the SLM and escalate the difficult ones to a larger model or a human reviewer.
  6. Monitor and retrain. Track accuracy, latency and cost each week, and retrain when the data or the task changes.

Measure against your own process, not a public benchmark. A benchmark score says little about how the model handles your documents, your categories and your edge cases.

Example (hypothetical): a support-ticket router

Example (hypothetical): a company receives 12,000 support tickets a month and routes them by hand. A team fine-tunes a 3 billion parameter SLM on 400 labelled tickets to classify them into 12 categories, and deploys it on a single on-premise GPU server.

The router sends 70% of tickets to the SLM, 25% to a mid-tier hosted model and 5% to a frontier model, based on difficulty. That is 12,000 x 70% = 8,400 tickets a month handled by the SLM, with no data leaving the company network for those tickets. The remaining 3,600 go to the larger models or a human.

The lesson is the router pattern: the SLM does not replace the large model, it keeps the large model for the work that needs it. The saving comes from the 8,400 routine tickets that never reach a per-token API, and the control comes from keeping customer data inside the perimeter for those tickets.

What are the common mistakes?

The most common mistakes with SLMs in enterprise AI are expecting a small model to do everything, skipping evaluation, and treating local deployment as a security guarantee.

  • One model for every task. An SLM is good at narrow work and poor at open-ended reasoning. Route difficult requests to a larger model or a person.
  • No evaluation on your own data. A public benchmark does not prove the model works on your documents. Score it on held-out examples from your own work.
  • Local means safe. A local model still needs access control, logging, patching and review. Local deployment changes where data sits, not whether it is protected.
  • Skipping the human check. Where an error carries material risk, a human must review the output before it is used, whatever the model size.
  • Choosing on size alone. A smaller model is not always cheaper once you count hardware, maintenance and retraining. Compare total cost per task, not parameter count.
  • Forgetting the licence. Open-weight models have different licences, and some limit commercial use. Check the licence before you deploy.

Key takeaways

  • An SLM runs inside the company for narrow, high-volume work
  • Routine requests go to the SLM; difficult ones go to a larger model or a person
  • Fine-tuning on your own examples is where an SLM earns its keep
  • Local deployment changes where data sits, not whether it is protected
  • Score the model on your own data, not on a public benchmark

Frequently asked questions

What is a small language model?

A small language model is a language model with roughly 1 to 13 billion parameters, small enough to run on a laptop, an on-premise server or an edge device. It handles targeted business tasks such as classification, extraction and summarisation at lower cost and latency than a frontier model.

When should an enterprise use an SLM instead of an LLM?

Use an SLM for high-volume, narrow, repetitive work with a measurable answer, such as classifying tickets or extracting fields from invoices. Use a larger model for open-ended, novel or high-risk work, and route between the two by difficulty.

Can an SLM run on-premises?

Yes. An SLM can run inside the company data centre, on its own cloud account or on-device, which keeps prompts and completions inside the corporate boundary. This suits strict data-residency rules, air-gapped sites and places with poor connectivity.

How much data does fine-tuning need?

A few hundred labelled examples are often enough for a narrow task, such as classifying tickets into a fixed set of categories. The examples must be real, cleaned and checked by the team that owns the task, since quality matters more than quantity.

Does an SLM replace a frontier model?

No. The usual pattern is a router: the SLM handles routine requests, a mid-tier model handles harder ones, and a frontier model or a human handles the rest. The SLM keeps the large model for the work that needs it.

What are the risks of using an SLM?

An SLM can still produce wrong or biased output, and it can be misused like any model. It needs evaluation on your own data, access control, logging and human review where errors carry risk, just as a hosted model does.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: AI and agent systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Planning small models for your enterprise AI? Talk to Hertiv.

A senior engineer replies within one business day. Or see our LLM Development service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call