HuggingFaceTB · text

SmolLM2-360M-Instruct

HuggingFaceTB/SmolLM2-360M-Instruct

SmolLM2-360M-Instruct at Q4_K_M is exactly 270,590,560 bytes (0.25 GiB / 0.27 GB) — an effective 5.983 bits per weight, not the nominal 4. Its KV cache at 32K is 1.25 GiB.

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

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q2_K0.20 GiB218,673,7604.835unsloth
Q2_K_L0.20 GiB218,674,0804.835bartowski
Q3_K_S0.20 GiB218,674,0804.835bartowski
Q2_K0.20 GiB218,674,0804.835bartowski
IQ3_XS0.20 GiB218,674,0804.835bartowski
IQ3_M0.21 GiB224,894,8804.973bartowski
IQ4_XS0.21 GiB226,661,2805.012bartowski
Q4_00.21 GiB229,733,2805.080bartowski
Q3_K_M0.22 GiB234,686,5605.189unsloth
Q3_K_M0.22 GiB234,686,8805.189bartowski
Q3_K_L0.23 GiB246,322,0805.446bartowski
Q4_K_S0.24 GiB259,915,6805.747bartowski
Q4_K_M0.25 GiB270,590,5605.983unsloth
Q4_K_M0.25 GiB270,590,8805.983bartowski
Q4_K_L0.25 GiB270,590,8805.983bartowski
Q5_K_S0.26 GiB283,186,0806.261bartowski
Q5_K_M0.27 GiB289,944,1606.411unsloth
Q5_K_M0.27 GiB289,944,4806.411bartowski
Q5_K_L0.27 GiB289,944,4806.411bartowski
Q6_K0.34 GiB367,358,5608.122unsloth
Q6_K0.34 GiB367,358,8808.122bartowski
Q6_K_L0.34 GiB367,358,8808.122bartowski
Q8_00.36 GiB386,404,9608.544unsloth
Q8_00.36 GiB386,404,9928.544HuggingFaceTB
Q8_00.36 GiB386,405,2808.544bartowski
F160.68 GiB725,553,76016.042unsloth
F160.68 GiB725,553,79216.042bartowski

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.16 GiB0.16 GiB32 / 0 / 0
8,1920.31 GiB0.31 GiB32 / 0 / 0
16,3840.63 GiB0.63 GiB32 / 0 / 0
32,7681.25 GiB1.25 GiB32 / 0 / 0
65,5362.50 GiB2.50 GiB32 / 0 / 0
131,0725.00 GiB5.00 GiB32 / 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.19 GiB. The real file is 0.25 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
32
Attention heads
15
KV heads
5
Head dim
64
Hidden size
960
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-360M-Instruct need?
Q4_K_M is exactly 270,590,560 bytes (0.25 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-360M-Instruct's KV cache?
1.25 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-360M-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.