SmolLM2 1.7B

1.7B instruction model with an 8K context window.

Hugging Face·1.71B params·24 layers / 32 KV heads·Max 8K ctx·Apache 2.0
Local Run Command
Q4_K_M minimum memory: 3.3 GB at 8K context.
Artificial Analysis Benchmarkartificialanalysis.ai ↗
Intelligence Index
—

Independent benchmark scores sourced from Artificial Analysis.

OpenRouter API & Cloud GPU
No live OpenRouter route synced.

VRAM by Quantization (8K context)

Q4_K_M (4-bit)1.0 GB
real file size
1.5 GB3.3 GB2.5 GBBest speed-to-quality balance for local inference (~98% quality)
ollama run smollm2:1.7b-instruct-q4_K_M
Q6_K (6-bit)1.3 GB
real file size
1.5 GB3.6 GB2.9 GBNear-lossless quality with ~35% larger footprint than Q4
ollama run smollm2:1.7b-instruct-q6_K
Q8_0 (8-bit)1.7 GB
real file size
1.5 GB4.0 GB3.3 GBVirtually indistinguishable from FP16 for coding & reasoning
ollama run smollm2:1.7b
FP16 / BF16 (16-bit)3.2 GB
real file size
1.5 GB5.6 GB4.8 GBFull native precision; standard for production GPU serving
ollama run smollm2:1.7b-instruct-fp16

Layer and head counts are read from the published config.json. KV cache is exact for this architecture.

Run SmolLM2 1.7B with Ollama, LM Studio, llama.cpp, MLX or vLLM

Command
Ollama
Q4_K_M
smollm2:1.7b-instruct-q4_K_M
1.0 GB
real file size
LM Studio
Q4_K_M
unsloth/SmolLM2-1.7B-Instruct-GGUF
1.0 GB
real file size
Not in LM Studio's catalog. Search for unsloth/SmolLM2-1.7B-Instruct-GGUF in the app's Discover tab.
llama.cpp
Q4_K_M
unsloth/SmolLM2-1.7B-Instruct-GGUF
1.0 GB
real file size
MLX
4-bit
0.9 GB
estimate
No 4-bit MLX build of this model on mlx-community. Convert one with mlx_lm.convert.
vLLM
INT4
1.0 GB
estimate
No INT4 build of this model found for vLLM.

Each runtime loads its own build of the model, so download sizes differ. Sizes marked as real are file sizes read from the Ollama registry or Hugging Face.

Hardware Compatibility Matrix (Q4_K_M · 8K context)

Details
11.5 GBFits comfortably33–55 tok/s—SmolLM2 1.7B on M1 16GB →
48.0 GBFits comfortably82–137 tok/s—SmolLM2 1.7B on M1 Max 64GB →
98.0 GBFits comfortably99–165 tok/s—SmolLM2 1.7B on M1 Ultra 128GB →
18.0 GBFits comfortably46–76 tok/s—SmolLM2 1.7B on M2 24GB →
48.0 GBFits comfortably97–162 tok/s—SmolLM2 1.7B on M2 Max 64GB →
152 GBFits comfortably113–188 tok/s—SmolLM2 1.7B on M2 Ultra 192GB →
27.0 GBFits comfortably60–99 tok/s—SmolLM2 1.7B on M3 Pro 36GB →
48.0 GBFits comfortably97–162 tok/s—SmolLM2 1.7B on M3 Max 64GB →
98.0 GBFits comfortably97–162 tok/s—SmolLM2 1.7B on M3 Max 128GB →
11.5 GBFits comfortably50–83 tok/s—SmolLM2 1.7B on M4 16GB →
24.0 GBFits comfortably50–83 tok/s—SmolLM2 1.7B on M4 32GB →
36.0 GBFits comfortably83–138 tok/s—SmolLM2 1.7B on M4 Pro 48GB →
48.0 GBFits comfortably83–138 tok/s—SmolLM2 1.7B on M4 Pro 64GB →
48.0 GBFits comfortably108–180 tok/s—SmolLM2 1.7B on M4 Max 64GB →
98.0 GBFits comfortably108–180 tok/s—SmolLM2 1.7B on M4 Max 128GB →
98.0 GBFits comfortably108–180 tok/s—SmolLM2 1.7B on Studio M4 Max 128GB →
204 GBFits comfortably112–187 tok/s—SmolLM2 1.7B on M3 Ultra 256GB →
430 GBFits comfortably112–187 tok/s—SmolLM2 1.7B on M3 Ultra 512GB →
24.0 GBFits comfortably68–114 tok/s—SmolLM2 1.7B on M1 Pro 32GB →
24.0 GBFits comfortably71–118 tok/s—SmolLM2 1.7B on M2 Pro 32GB →
27.0 GBFits comfortably86–144 tok/s—SmolLM2 1.7B on M3 Max 36GB →
11.5 GBFits comfortably50–83 tok/s—SmolLM2 1.7B on Air M4 16GB →
24.0 GBFits comfortably50–83 tok/s—SmolLM2 1.7B on Air M4 32GB →
18.0 GBFits comfortably83–138 tok/s—SmolLM2 1.7B on M4 Pro 24GB →
11.5 GBFits comfortably60–101 tok/s—SmolLM2 1.7B on Air M5 16GB →
24.0 GBFits comfortably60–101 tok/s—SmolLM2 1.7B on Air M5 32GB →
48.0 GBFits comfortably87–145 tok/s—SmolLM2 1.7B on M5 Pro 64GB →
98.0 GBFits comfortably112–187 tok/s—SmolLM2 1.7B on M5 Max 128GB →
24.0 GBFits comfortably64–107 tok/s—SmolLM2 1.7B on mini M6 32GB →
48.0 GBFits comfortably87–145 tok/s—SmolLM2 1.7B on mini M5 Pro 64GB →
98.0 GBFits comfortably112–187 tok/s—SmolLM2 1.7B on Studio M5 Max 128GB →
430 GBFits comfortably131–217 tok/s—SmolLM2 1.7B on Studio M5 Ultra 512GB →
11.2 GBFits comfortably159–265 tok/s1×SmolLM2 1.7B on RTX 3060 12GB →
9.2 GBFits comfortably244–406 tok/s1×SmolLM2 1.7B on RTX 3080 10GB →
22.8 GBFits comfortably260–433 tok/s1×SmolLM2 1.7B on RTX 3090 24GB →
15.0 GBFits comfortably139–232 tok/s1×SmolLM2 1.7B on RTX 4060 Ti 16GB →
15.0 GBFits comfortably232–386 tok/s1×SmolLM2 1.7B on RTX 4070 Ti S 16GB →
15.0 GBFits comfortably241–401 tok/s1×SmolLM2 1.7B on RTX 4080 S 16GB →
22.8 GBFits comfortably270–450 tok/s1×SmolLM2 1.7B on RTX 4090 24GB →
15.0 GBFits comfortably259–432 tok/s1×SmolLM2 1.7B on RTX 5070 Ti 16GB →
15.0 GBFits comfortably266–442 tok/s1×SmolLM2 1.7B on RTX 5080 16GB →
30.5 GBFits comfortably315–526 tok/s1×SmolLM2 1.7B on RTX 5090 32GB →
22.8 GBFits comfortably231–385 tok/s1×SmolLM2 1.7B on RX 7900 XTX 24GB →
15.0 GBFits comfortably194–323 tok/s1×SmolLM2 1.7B on RX 9070 XT 16GB →
10.2 GBFits comfortably205–342 tok/s1×SmolLM2 1.7B on RTX 2080 Ti 11GB →
7.3 GBFits comfortably176–293 tok/s1×SmolLM2 1.7B on RTX 3060 Ti 8GB →
7.3 GBFits comfortably169–282 tok/s1×SmolLM2 1.7B on RTX 3070 8GB →
11.2 GBFits comfortably231–385 tok/s1×SmolLM2 1.7B on RTX 3080 Ti 12GB →
22.8 GBFits comfortably270–450 tok/s1×SmolLM2 1.7B on RTX 3090 Ti 24GB →
7.3 GBFits comfortably143–238 tok/s1×SmolLM2 1.7B on RTX 4060 8GB →
7.3 GBFits comfortably139–232 tok/s1×SmolLM2 1.7B on RTX 4060 Ti 8GB →
11.2 GBFits comfortably183–305 tok/s1×SmolLM2 1.7B on RTX 4070 12GB →
11.2 GBFits comfortably203–338 tok/s1×SmolLM2 1.7B on RTX 4070 S 12GB →
11.2 GBFits comfortably203–338 tok/s1×SmolLM2 1.7B on RTX 4070 Ti 12GB →
15.0 GBFits comfortably238–397 tok/s1×SmolLM2 1.7B on RTX 4080 16GB →
15.0 GBFits comfortably170–283 tok/s1×SmolLM2 1.7B on RTX 5060 Ti 16GB →
11.2 GBFits comfortably232–386 tok/s1×SmolLM2 1.7B on RTX 5070 12GB →
15.0 GBFits comfortably188–313 tok/s1×SmolLM2 1.7B on RX 7800 XT 16GB →
18.9 GBFits comfortably191–318 tok/s1×SmolLM2 1.7B on RX 7900 XT 20GB →
15.0 GBFits comfortably194–323 tok/s1×SmolLM2 1.7B on RX 9070 16GB →
15.0 GBFits comfortably131–218 tok/s1×SmolLM2 1.7B on RX 9060 XT 16GB →
46.2 GBFits comfortably245–408 tok/s1×SmolLM2 1.7B on RTX A6000 48GB →
46.2 GBFits comfortably266–442 tok/s1×SmolLM2 1.7B on RTX 6000 Ada 48GB →
93.0 GBFits comfortably315–526 tok/s1×SmolLM2 1.7B on PRO 6000 96GB →
15.0 GBFits comfortably170–283 tok/s1×SmolLM2 1.7B on RTX A4000 16GB →
22.8 GBFits comfortably238–396 tok/s1×SmolLM2 1.7B on RTX A5000 24GB →
18.9 GBFits comfortably161–269 tok/s1×SmolLM2 1.7B on RTX 4000 Ada 20GB →
30.5 GBFits comfortably216–361 tok/s1×SmolLM2 1.7B on RTX 5000 Ada 32GB →
46.2 GBFits comfortably294–490 tok/s1×SmolLM2 1.7B on PRO 5000 48GB →
46.2 GBFits comfortably189–315 tok/s1×SmolLM2 1.7B on PRO W7900 48GB →
30.5 GBFits comfortably194–323 tok/s1×SmolLM2 1.7B on AI PRO R9700 32GB →
22.8 GBFits comfortably152–253 tok/s1×SmolLM2 1.7B on L4 24GB →
46.2 GBFits comfortably256–426 tok/s1×SmolLM2 1.7B on L40S 48GB →
38.5 GBFits comfortably305–509 tok/s1×SmolLM2 1.7B on A100 40GB →
77.5 GBFits comfortably279–465 tok/s1×SmolLM2 1.7B on A100 80GB →
77.5 GBFits comfortably308–514 tok/s1×SmolLM2 1.7B on H100 80GB →
137 GBFits comfortably365–608 tok/s1×SmolLM2 1.7B on H200 141GB →
175 GBFits comfortably379–632 tok/s1×SmolLM2 1.7B on B200 180GB →
15.0 GBFits comfortably111–184 tok/s1×SmolLM2 1.7B on T4 16GB →
46.2 GBFits comfortably218–364 tok/s1×SmolLM2 1.7B on A40 48GB →
46.2 GBFits comfortably256–426 tok/s1×SmolLM2 1.7B on L40 48GB →
115 GBFits comfortably127–212 tok/s—SmolLM2 1.7B on DGX Spark 128GB →
96.0 GBFits comfortably109–181 tok/s—SmolLM2 1.7B on Ryzen AI Max+ 395 128GB →
48.0 GBFits comfortably109–181 tok/s—SmolLM2 1.7B on Ryzen AI Max+ 395 64GB →

Frequently asked questions

How much VRAM does SmolLM2 1.7B require?

At Q4_K_M quantization with a 8K context window, SmolLM2 1.7B needs 3.3 GB total VRAM (1.0 GB weights + 1.5 GB KV cache + runtime overhead). In full FP16 precision, it requires 5.6 GB.

Can an RTX 4090 (24 GB) run SmolLM2 1.7B?

Yes. At Q4_K_M with 8K context SmolLM2 1.7B needs 3.3 GB, which fits a single 24 GB RTX 4090 at an estimated 270–450 tok/s.

How do I run SmolLM2 1.7B locally with Ollama?

Install Ollama and run `ollama run smollm2:1.7b` in your terminal. Make sure your GPU or Apple Silicon unified memory meets the 3.3 GB Q4_K_M requirement.