HuggingFaceTB · text

SmolLM2-1.7B-Instruct

HuggingFaceTB/SmolLM2-1.7B-Instruct

SmolLM2-1.7B-Instruct at Q4_K_M is exactly 1,055,609,536 bytes (0.98 GiB / 1.06 GB) — an effective 4.935 bits per weight, not the nominal 4. Its KV cache at 32K is 6.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
1.7B
Architecture
llama
24 layers
Context
8,192
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q2_K0.63 GiB674,583,5203.153bartowski
Q2_K_L0.65 GiB698,962,9123.267bartowski
IQ3_XS0.69 GiB739,070,9443.455bartowski
Q3_K_S0.72 GiB776,819,6803.631bartowski
IQ3_M0.75 GiB810,243,0403.788bartowski
Q3_K_M0.80 GiB860,181,4724.021218bartowski
Q3_K_L0.87 GiB932,532,9284.359lmstudio-community
Q3_K_L0.87 GiB932,533,2164.359bartowski
IQ4_XS0.88 GiB940,397,5364.396218bartowski
Q4_00.93 GiB993,874,9124.646218bartowski
Q4_K_S0.93 GiB999,117,7924.670bartowski
Q4_K_M0.98 GiB1,055,609,5364.935HuggingFaceTB
Q4_K_M0.98 GiB1,055,609,5364.935lmstudio-community
Q4_K_M0.98 GiB1,055,609,8244.935218bartowski
Q4_K_L1.01 GiB1,079,989,2165.048bartowski
Q5_K_S1.11 GiB1,192,055,7765.572bartowski
Q5_K_M1.14 GiB1,225,479,1365.729bartowski
Q5_K_L1.16 GiB1,249,858,5285.843bartowski
Q6_K1.31 GiB1,405,964,9926.572218lmstudio-community
Q6_K1.31 GiB1,405,965,2806.572bartowski
Q6_K_L1.33 GiB1,430,344,6726.686bartowski
Q8_01.70 GiB1,820,414,6568.510218lmstudio-community
Q8_01.70 GiB1,820,414,9448.510bartowski
F163.19 GiB3,424,735,93616.009218bartowski

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.75 GiB0.75 GiB24 / 0 / 0
8,1921.50 GiB1.50 GiB24 / 0 / 0
16,3843.00 GiB3.00 GiB24 / 0 / 0
32,7686.00 GiB6.00 GiB24 / 0 / 0
65,53612.00 GiB12.00 GiB24 / 0 / 0
131,07224.00 GiB24.00 GiB24 / 0 / 0

Compare with

same modality, comparable size

Will it run on your card?

full quant x context sweep

Why other calculators give a different number

A parameters × bits ÷ 8 estimate puts Q4_K_M at roughly 0.90 GiB. The real file is 0.98 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
24
Attention heads
32
KV heads
32
Head dim
64
Hidden size
2048
Vocab
49,152
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does SmolLM2-1.7B-Instruct need?
Q4_K_M is exactly 1,055,609,536 bytes (0.98 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is SmolLM2-1.7B-Instruct's KV cache?
6.00 GiB at 32K context with an f16 cache, computed per layer. Quantizing the cache to q8_0 roughly halves it, which is often the difference between a context length fitting and not.
Which quantization of SmolLM2-1.7B-Instruct should I use?
Q4_K_M is the usual default. Pick the largest quantization that fits your card at the context you actually need — the table above gives exact sizes for every one published.