SicariusSicariiStuff · text

Impish_LLAMA_4B

SicariusSicariiStuff/Impish_LLAMA_4B

Impish_LLAMA_4B at Q4_K_M is exactly 2,778,282,656 bytes (2.59 GiB / 2.78 GB) — an effective 4.925 bits per weight, not the nominal 4. Its KV cache at 32K is 4.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
4.5B
Architecture
llama
32 layers
Context
131,072
native (config.json)
License
llama3.1

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ2_M1.60 GiB1,722,633,5363.054bartowski
Q2_K1.71 GiB1,839,738,1763.261bartowski
IQ3_XXS1.75 GiB1,880,116,5443.333bartowski
IQ3_XS1.89 GiB2,027,603,2643.594bartowski
Q3_K_S1.96 GiB2,101,527,2003.725SicariusSicariiStuff
Q3_K_S1.96 GiB2,101,527,8723.725bartowski
IQ3_M2.03 GiB2,183,415,1043.871bartowski
Q2_K_L2.07 GiB2,224,506,1763.943bartowski
Q3_K_M2.14 GiB2,296,562,3364.071SicariusSicariiStuff
Q3_K_M2.14 GiB2,296,563,0084.071bartowski
Q3_K_L2.30 GiB2,464,858,7844.370SicariusSicariiStuff
Q3_K_L2.30 GiB2,464,859,4564.370bartowski
IQ4_XS2.36 GiB2,535,546,1764.495bartowski
Q4_02.47 GiB2,655,599,9364.708bartowski
IQ4_NL2.48 GiB2,661,104,9604.718bartowski
Q4_K_S2.48 GiB2,664,250,0164.723SicariusSicariiStuff
Q4_K_S2.48 GiB2,664,250,6884.723bartowski
Q4_K_M2.59 GiB2,778,282,6564.925SicariusSicariiStuff
Q4_K_M2.59 GiB2,778,283,3284.925bartowski
Q4_12.71 GiB2,905,931,0725.152bartowski
Q4_K_L2.86 GiB3,070,707,0085.444bartowski
Q5_K_S2.95 GiB3,163,339,4245.608SicariusSicariiStuff
Q5_K_S2.95 GiB3,163,340,0965.608bartowski
Q5_K_M3.01 GiB3,230,186,1445.726SicariusSicariiStuff
Q5_K_M3.01 GiB3,230,186,8165.726bartowski
Q5_K_L3.23 GiB3,473,360,1926.157bartowski
Q6_K3.46 GiB3,710,333,6006.577SicariusSicariiStuff
Q6_K3.46 GiB3,710,334,2726.577bartowski
Q6_K_L3.63 GiB3,901,179,2006.916bartowski
Q8_04.47 GiB4,803,216,0328.515SicariusSicariiStuff
Q8_04.47 GiB4,803,216,7048.515bartowski
BF168.41 GiB9,033,729,05616.015bartowski

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.50 GiB0.50 GiB32 / 0 / 0
8,1921.00 GiB1.00 GiB32 / 0 / 0
16,3842.00 GiB2.00 GiB32 / 0 / 0
32,7684.00 GiB4.00 GiB32 / 0 / 0
65,5368.00 GiB8.00 GiB32 / 0 / 0
131,07216.00 GiB16.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 2.36 GiB. The real file is 2.59 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
32
Attention heads
32
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 Impish_LLAMA_4B need?
Q4_K_M is exactly 2,778,282,656 bytes (2.59 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is Impish_LLAMA_4B's KV cache?
4.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 Impish_LLAMA_4B 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.