TinyLlama · text

TinyLlama-1.1B-Chat-v0.3

TinyLlama/TinyLlama-1.1B-Chat-v0.3

TinyLlama-1.1B-Chat-v0.3 at Q4_K_M is exactly 667,822,976 bytes (0.62 GiB / 0.67 GB) — an effective 4.857 bits per weight, not the nominal 4. Its KV cache at 32K is 0.69 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
1.1B
Architecture
llama
22 layers
Context
2,048
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q2_K0.45 GiB482,149,8563.506TheBloke
Q3_K_S0.47 GiB499,349,6003.631TheBloke
Q3_K_M0.51 GiB549,853,2803.999201TheBloke
Q3_K_L0.55 GiB591,534,1764.302TheBloke
Q4_00.59 GiB636,734,3364.630201TheBloke
Q4_K_S0.60 GiB642,763,6484.674TheBloke
Q4_K_M0.62 GiB667,822,9764.857201TheBloke
Q5_00.71 GiB766,037,6325.571TheBloke
Q5_K_S0.71 GiB766,037,6325.571TheBloke
Q5_K_M0.73 GiB782,052,9925.687201TheBloke
Q6_K0.84 GiB903,422,4006.570201TheBloke
Q8_01.09 GiB1,169,820,9928.507201TheBloke

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.09 GiB0.09 GiB22 / 0 / 0
8,1920.17 GiB0.17 GiB22 / 0 / 0
16,3840.34 GiB0.34 GiB22 / 0 / 0
32,7680.69 GiB0.69 GiB22 / 0 / 0
65,5361.38 GiB1.38 GiB22 / 0 / 0
131,0722.75 GiB2.75 GiB22 / 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.58 GiB. The real file is 0.62 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

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

Questions people ask

How much VRAM does TinyLlama-1.1B-Chat-v0.3 need?
Q4_K_M is exactly 667,822,976 bytes (0.62 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is TinyLlama-1.1B-Chat-v0.3's KV cache?
0.69 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 TinyLlama-1.1B-Chat-v0.3 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.