IlyaGusev · text

saiga_llama3_8b

IlyaGusev/saiga_llama3_8b

saiga_llama3_8b at Q4_K_M is exactly 4,920,734,624 bytes (4.58 GiB / 4.92 GB) — an effective 4.902 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
8.0B
Architecture
llama
32 layers
Context
8,192
native (config.json)
License
other

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ2_M2.75 GiB2,948,281,8562.937liodon-ai
Q2_K2.96 GiB3,179,644,5763.168QuantFactory
Q3_K_S3.41 GiB3,665,012,3843.651QuantFactory
IQ3_M3.52 GiB3,784,824,3203.771liodon-ai
Q3_K_M3.74 GiB4,019,431,0724.004QuantFactory
Q3_K_L4.03 GiB4,322,469,5364.306QuantFactory
IQ4_XS4.14 GiB4,447,663,6164.431liodon-ai
Q4_04.34 GiB4,661,724,8324.644QuantFactory
Q4_K_S4.37 GiB4,693,182,1124.676QuantFactory
Q4_K_M4.58 GiB4,920,734,6244.902itlwas
Q4_K_M4.58 GiB4,920,735,2324.902liodon-ai
Q4_K_M4.58 GiB4,921,247,3924.903QuantFactory
Q4_14.78 GiB5,130,765,9845.111QuantFactory
Q5_K_S5.22 GiB5,599,807,1365.579QuantFactory
Q5_05.22 GiB5,599,807,1365.579QuantFactory
Q5_K_M5.34 GiB5,732,988,4165.711liodon-ai
Q5_K_M5.34 GiB5,733,500,5765.712QuantFactory
Q5_15.65 GiB6,068,848,2886.046QuantFactory
Q6_K6.14 GiB6,596,007,4246.571liodon-ai
Q6_K6.14 GiB6,596,519,5846.572QuantFactory
Q8_07.95 GiB8,540,771,8408.509liodon-ai
Q8_07.95 GiB8,541,284,0008.509QuantFactory

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 4.21 GiB. The real file is 4.58 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
4096
Vocab
128,256
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does saiga_llama3_8b need?
Q4_K_M is exactly 4,920,734,624 bytes (4.58 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is saiga_llama3_8b'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 saiga_llama3_8b 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.