HuggingFaceTB · text

SmolLM2-135M-Instruct

HuggingFaceTB/SmolLM2-135M-Instruct

SmolLM2-135M-Instruct at Q4_K_M is exactly 105,454,144 bytes (0.10 GiB / 0.11 GB) — an effective 6.272 bits per weight, not the nominal 4. Its KV cache at 32K is 0.70 GiB.

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

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q2_K0.08 GiB88,201,7925.246unsloth
Q2_K0.08 GiB88,202,0805.246bartowski
Q3_K_S0.08 GiB88,202,0805.246bartowski
Q2_K_L0.08 GiB88,202,0805.246bartowski
IQ3_XS0.08 GiB88,202,0805.246bartowski
Q2_K0.08 GiB88,202,2085.246mradermacher
Q3_K_S0.08 GiB88,202,2085.246mradermacher
IQ3_M0.08 GiB90,213,4725.365bartowski
IQ4_XS0.08 GiB90,897,7605.406272bartowski
IQ4_XS0.09 GiB91,312,6085.431mradermacher
Q4_00.09 GiB91,893,0885.465272bartowski
Q3_K_M0.09 GiB93,510,2085.561272unsloth
Q3_K_M0.09 GiB93,510,4965.561272bartowski
Q3_K_M0.09 GiB93,510,6245.561mradermacher
Q3_K_L0.09 GiB97,532,9925.801lmstudio-community
Q3_K_L0.09 GiB97,533,2805.801bartowski
Q3_K_L0.09 GiB97,533,4085.801mradermacher
Q4_K_S0.10 GiB102,039,9046.069bartowski
Q4_K_S0.10 GiB102,040,0326.069mradermacher
Q4_K_M0.10 GiB105,454,1446.272272lmstudio-community
Q4_K_M0.10 GiB105,454,1446.272unsloth
Q4_K_L0.10 GiB105,454,4326.272bartowski
Q4_K_M0.10 GiB105,454,4326.272272bartowski
Q4_K_M0.10 GiB105,454,5606.272mradermacher
Q5_K_S0.10 GiB109,974,8806.540bartowski
Q5_K_S0.10 GiB109,975,0086.540mradermacher
Q5_K_M0.10 GiB112,103,4886.667272unsloth
Q5_K_M0.10 GiB112,103,7766.667272bartowski
Q5_K_L0.10 GiB112,103,7766.667bartowski
Q5_K_M0.10 GiB112,103,9046.667mradermacher
Q6_K0.13 GiB138,382,9128.230unsloth
Q6_K0.13 GiB138,382,9128.230272lmstudio-community
Q6_K0.13 GiB138,383,2008.230272bartowski
Q6_K_L0.13 GiB138,383,2008.230bartowski
Q6_K0.13 GiB138,383,3288.230mradermacher
Q8_00.13 GiB144,811,0728.612272unsloth
Q8_00.13 GiB144,811,0728.612272lmstudio-community
Q8_00.13 GiB144,811,3608.612272bartowski
Q8_00.13 GiB144,811,4888.612mradermacher
F160.25 GiB270,885,95216.110272unsloth

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.09 GiB0.09 GiB30 / 0 / 0
8,1920.18 GiB0.18 GiB30 / 0 / 0
16,3840.35 GiB0.35 GiB30 / 0 / 0
32,7680.70 GiB0.70 GiB30 / 0 / 0
65,5361.41 GiB1.41 GiB30 / 0 / 0
131,0722.81 GiB2.81 GiB30 / 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.07 GiB. The real file is 0.10 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
30
Attention heads
9
KV heads
3
Head dim
64
Hidden size
576
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-135M-Instruct need?
Q4_K_M is exactly 105,454,144 bytes (0.10 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-135M-Instruct's KV cache?
0.70 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-135M-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.