unsloth · text

llama-3.2-3b-instruct

unsloth/llama-3.2-3b-instruct

llama-3.2-3b-instruct at Q4_K_M is exactly 2,019,377,248 bytes (1.88 GiB / 2.02 GB) — an effective 5.028 bits per weight, not the nominal 4. Its KV cache at 32K is 3.50 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
3.2B
Architecture
28 layers
Context
131,072
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ2_XS1.02 GiB1,100,548,4162.740juiceb0xc0de
IQ3_M1.49 GiB1,599,668,5443.983juiceb0xc0de
IQ3_M1.49 GiB1,599,668,5763.983Zynerji
Q3_K_M1.57 GiB1,687,158,8804.201juiceb0xc0de
IQ4_XS1.70 GiB1,829,110,0804.555juiceb0xc0de
IQ4_XS1.70 GiB1,829,110,1124.555Zynerji
Q4_01.79 GiB1,917,191,0724.774mfielding92
Q4_K_M1.88 GiB2,019,377,2485.028juiceb0xc0de
Q4_K_M1.88 GiB2,019,377,5045.028Zynerji
Q5_K_M2.16 GiB2,322,153,5685.782juiceb0xc0de
Q5_K_M2.16 GiB2,322,153,8245.782Zynerji
Q6_K2.46 GiB2,643,853,4086.583juiceb0xc0de
Q6_K2.46 GiB2,643,853,6646.583Zynerji
Q8_03.19 GiB3,421,898,8488.521juiceb0xc0de
Q8_03.19 GiB3,421,899,1048.521Zynerji
Q8_03.19 GiB3,421,899,6808.521mfielding92
Q2_K2 shards4.08 GiB4,379,869,50410.906Sweaterdog
F165.99 GiB6,433,687,64816.020juiceb0xc0de
Q4_K_M2 shards6.24 GiB6,702,444,86416.690Sweaterdog
Q5_K_M2 shards7.23 GiB7,766,978,88019.340Sweaterdog
Q8_02 shards10.73 GiB11,520,418,11228.687Sweaterdog
F163 shards34.37 GiB36,909,386,080Sweaterdog

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.44 GiB0.44 GiB28 / 0 / 0
8,1920.88 GiB0.88 GiB28 / 0 / 0
16,3841.75 GiB1.75 GiB28 / 0 / 0
32,7683.50 GiB3.50 GiB28 / 0 / 0
65,5367.00 GiB7.00 GiB28 / 0 / 0
131,07214.00 GiB14.00 GiB28 / 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 1.68 GiB. The real file is 1.88 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
28
Attention heads
24
KV heads
8
Head dim
128
Hidden size
3072
Vocab
128,256
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does llama-3.2-3b-instruct need?
Q4_K_M is exactly 2,019,377,248 bytes (1.88 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is llama-3.2-3b-instruct's KV cache?
3.50 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 llama-3.2-3b-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.