Skip to main content

Model guide

SmolLM2 1.7B Instruct

SmolLM2 1.7B is a small, primarily English instruction model for brief summaries, rewrites and extraction. It is useful to try when a multi-gigabyte model would be inconvenient. Keep the input focused and judge whether it follows your constraints rather than expecting the breadth of a much larger assistant.

1.7BText chat8,192 token contextView the model card →

At a glance

Parameters
1.7B
Accepts
Text
Returns
Text
Published context limit
8,192 tokens
Model format
Safetensors · GGUF
Software and download hosts
Ollama. Follow the exact setup below; this list does not establish support for every format, input type or software version.
Suggested compression
Q4_K_M
Model-weight download
Q4_K_M weights · 1.06 GBbartowski (community conversion)SmolLM2-1.7B-Instruct-Q4_K_M.gguf
Languages
English
License
Apache-2.0

Will it fit?

SmolLM2 1.7B Instruct · Q4_K_M download. Fit depends on your computer, the app you run it in and the conversation length you need.

Check on your computer

Best for

  • Summarize a short English note under an 18-word limit.

Choose something else when

  • Try a larger checkpoint if it repeatedly drops the key condition to meet the word limit.

First setup

Check a representative task

Use a short English summary with a strict limit.

Summarize this in no more than 18 words: "The north entrance is closed on Tuesday for repairs. The south entrance remains open. Deliveries should use the south entrance."

Check the result: Include Tuesday, the north-entrance closure and use of the south entrance. Count the words and reject added reopening dates.

This creates a 4,096-token copy of smollm2:1.7b-instruct-q4_K_M named smollm2-1-7b-instruct-short-context. Save the following as a file named Modelfile in your working folder:

FROM smollm2:1.7b-instruct-q4_K_M
PARAMETER num_ctx 4096

Then run these commands from that folder:

ollama pull smollm2:1.7b-instruct-q4_K_M
ollama create smollm2-1-7b-instruct-short-context -f ./Modelfile
ollama run smollm2-1-7b-instruct-short-context

Run the task check. While the model is loaded, run ollama ps in another terminal and check CONTEXT and PROCESSOR.

The recorded Ollama package is Q4_K_M: 1.06 GB of model weights. Use Ollama 0.40.18 or a supporting newer release. A Hugging Face GGUF or MLX checkpoint is a separate representation; choose the matching source and runner in the memory calculator.

See Ollama context settings and the Modelfile instructions.

Other models for this task