TinyLlama · text

TinyLlama-1.1B-Chat-v1.0

TinyLlama/TinyLlama-1.1B-Chat-v1.0

TinyLlama-1.1B-Chat-v1.0 at Q4_K_M is exactly 667,814,880 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,143,2003.506second-state
Q2_K0.45 GiB483,116,4163.513TheBloke
Q3_K_S0.47 GiB499,342,3043.631second-state
Q3_K_S0.47 GiB500,315,5203.639TheBloke
Q3_K_M0.51 GiB549,845,9843.999201second-state
Q3_K_M0.51 GiB550,819,2004.006201TheBloke
Q3_K_L0.55 GiB591,526,8804.302second-state
Q3_K_L0.55 GiB592,500,0964.309TheBloke
Q4_00.59 GiB636,726,2404.630201second-state
Q4_00.59 GiB637,699,4564.638201TheBloke
Q4_K_S0.60 GiB642,755,5524.674second-state
Q4_K_S0.60 GiB643,728,7684.681TheBloke
Q4_K_M0.62 GiB667,814,8804.857201second-state
Q4_K_M0.62 GiB667,815,3604.857201premrajreddy
Q4_K_M0.62 GiB668,788,0964.864201TheBloke
Q5_00.71 GiB766,028,7685.571second-state
Q5_K_S0.71 GiB766,028,7685.571second-state
Q5_K_S0.71 GiB767,001,9845.578TheBloke
Q5_00.71 GiB767,001,9845.578TheBloke
Q5_K_M0.73 GiB783,017,3445.694201TheBloke
Q6_K0.84 GiB903,412,7046.570201second-state
Q6_K0.84 GiB904,385,9206.577201TheBloke
Q8_01.09 GiB1,169,808,3528.507201second-state
Q8_01.09 GiB1,170,781,5688.514201TheBloke
Q5_K_M2 shards1.46 GiB1,565,061,47211.382second-state
F162.05 GiB2,201,017,79216.007201premrajreddy

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,000
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-v1.0 need?
Q4_K_M is exactly 667,814,880 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-v1.0'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-v1.0 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.