LLMs ·

SmolLM2 1.7B Instruct

Parameters
1.7B
Architecture
Dense
Max context
8K tokens
License
apache-2.0
Released
2024-10

How to run it

Quickest · Ollama

One command downloads a ready-to-run version and starts a chat.

ollama run smollm2:1.7b

Get Ollama at ollama.com/download (opens in a new tab) · model page (opens in a new tab)

Quantized files · GGUF

Works in LM Studio, llama.cpp, Jan and Ollama. No sign-in needed.

huggingface.co/HuggingFaceTB/SmolLM2-1.7B-Instruct-GGUF (opens in a new tab)

ollama run hf.co/HuggingFaceTB/SmolLM2-1.7B-Instruct-GGUF

Original weights · Hugging Face

Full-precision files from Hugging Face, for fine-tuning, vLLM, Transformers.

huggingface.co/HuggingFaceTB/SmolLM2-1.7B-Instruct (opens in a new tab)

No sign-in needed.

Official repo · GitHub

Reference code, inference scripts and docs from Hugging Face. The weights themselves download from Hugging Face.

github.com/huggingface/smollm (opens in a new tab)

git clone https://github.com/huggingface/smollm

Memory needed

Weights plus KV cache and runtime overhead. Leave a little extra free for the operating system and other apps.

Quantization Quality Weights Total at 8K context Download
Q2_K Low 0.7 GB 2.9 GB
Q3_K_M Low 0.8 GB 3.0 GB
Q4_K_M Good 1.0 GB 3.3 GB GGUF (opens in a new tab)
Q5_K_M High 1.2 GB 3.4 GB
Q6_K High 1.4 GB 3.6 GB
Q8_0 Very high 1.8 GB 4.0 GB
F16 Full 3.4 GB 5.6 GB Original weights (opens in a new tab)

Best hardware for SmolLM2 1.7B Instruct

The least expensive GPU in our catalog that runs it without offloading is the Intel Arc A380 (launch price $139) at Q8_0.

Grade · points Hardware Quant Memory Speed Fit
64 ptsGood (B) · 64 of 100 points: Model quality 9.0/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 NVIDIA GeForce RTX 4060 F16 6.0 GB / 8.0 GB 45.8 tok/s Runs well
60 ptsGood (B) · 60 of 100 points: Model quality 9.0/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 12.0/15 Intel Arc B580 F16 6.2 GB / 12.0 GB 58.7 tok/s Runs well
60 ptsGood (B) · 60 of 100 points: Model quality 9.0/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 12.0/15 NVIDIA GeForce RTX 3060 12GB F16 6.2 GB / 12.0 GB 60.6 tok/s Runs well
60 ptsGood (B) · 60 of 100 points: Model quality 9.0/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 12.0/15 NVIDIA GeForce RTX 4070 SUPER F16 6.2 GB / 12.0 GB 84.9 tok/s Runs well
58 ptsGood (B) · 58 of 100 points: Model quality 8.9/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 9.6/15 Apple M4 (16 GB) Q6_K 4.5 GB / 10.7 GB 51.5 tok/s Runs well
58 ptsGood (B) · 58 of 100 points: Model quality 9.0/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 9.3/15 AMD Radeon RX 9070 XT F16 6.4 GB / 16.0 GB 92.8 tok/s Runs well
58 ptsGood (B) · 58 of 100 points: Model quality 9.0/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 9.3/15 NVIDIA GeForce RTX 4060 Ti 16GB F16 6.4 GB / 16.0 GB 48.5 tok/s Runs well
58 ptsGood (B) · 58 of 100 points: Model quality 9.0/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 9.3/15 NVIDIA GeForce RTX 4070 Ti SUPER F16 6.4 GB / 16.0 GB 113 tok/s Runs well
58 ptsGood (B) · 58 of 100 points: Model quality 9.0/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 9.3/15 NVIDIA GeForce RTX 4080 SUPER F16 6.4 GB / 16.0 GB 124 tok/s Runs well
58 ptsGood (B) · 58 of 100 points: Model quality 9.0/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 9.3/15 NVIDIA GeForce RTX 5060 Ti 16GB F16 6.4 GB / 16.0 GB 75.5 tok/s Runs well

Check it on your own hardware

Estimates come from published hardware specs and our open formulas, not from running the model on your machine. Real speed varies with runtime, drivers and settings. Numbers marked “Measured” come from a linked benchmark.