Guides / Basics

The short answer

What is a small language model?

An SLM is a language model built to do useful work with less memory and compute than a much larger model. “Small” is relative to the task and hardware; there is no universal parameter cutoff.

In one sentence

A small language model predicts and produces language like a larger one, but is compact enough to run with fewer computing resources—sometimes on a personal computer.

What can an SLM do?

A chat-oriented SLM can rewrite a paragraph, draft an email, summarize a short document, explain a concept, or extract details from text. Other small models are built for focused jobs such as embeddings or speech. The label “SLM” describes scale, not a promise that every model supports every task.

WebSLM’s browser app currently runs text chat models. The wider model directory includes links to other model types, but listing a model there does not mean the browser app can run it.

Why does size matter?

A smaller model generally needs less space to download and less memory while it runs. That can make local use practical on an ordinary laptop. The trade-off is that a small model may have less knowledge, miss nuance, and make more mistakes than a strong cloud model. Its output still needs checking.

Parameter count is only one clue. The model file format and compression, available memory, processor or graphics hardware, and the length of your prompt all affect whether it loads and how quickly it responds. A 1 GB download can require more than 1 GB of working memory.

Does “small” mean local, private, or open?

No. Those are separate choices. Local means inference—the work of producing an answer—happens on your device. Private depends on the whole app, including what it sends for sign-in, analytics, or downloads. Open can describe available model files, code, or licensing, and each model’s actual licence still matters.

In WebSLM, the model file is downloaded from Hugging Face to your browser, and chat inference runs on your device. Sign-in uses your email before the first download; the prompts and answers are not sent to a WebSLM chat server. Read the privacy policy for the full data flow.

When should you use one?

Try an SLM when your task is bounded: polishing a message, getting a first draft, or asking questions about a document you can inspect yourself. Choose the smallest model that does the job well enough on your hardware. For high-stakes decisions or facts that must be current, verify with authoritative sources and qualified people.

Ready to see one work? Follow the browser walkthrough, then use the model selection guide to pick a starting point.