Zyphra · text · mixture of experts

ZAYA1-8B

Zyphra/ZAYA1-8B

ZAYA1-8B at Q4_K_M is exactly 5,567,581,549 bytes (5.19 GiB / 5.57 GB) — an effective 5.038 bits per weight, not the nominal 4. Its KV cache at 32K is 0.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
8.8B
total, not active
Architecture
zaya
40 layers
Context
131,072
native (config.json)
License

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q3_K_M4.20 GiB4,507,865,9204.079Abiray
Q4_K_S4.90 GiB5,263,494,4644.763Abiray
Q4_K_M5.19 GiB5,567,581,5495.038Abiray
Q5_K_M5.99 GiB6,433,333,8245.822Abiray
Q6_K6.85 GiB7,353,195,5846.654Abiray
Q8_08.83 GiB9,485,674,2838.584Abiray

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.00 GiB0.16 GiB4096.00×0 / 0 / 40
8,1920.00 GiB0.31 GiB8192.00×0 / 0 / 40
16,3840.00 GiB0.63 GiB16384.00×0 / 0 / 40
32,7680.00 GiB1.25 GiB32768.00×0 / 0 / 40
65,5360.00 GiB2.50 GiB65536.00×0 / 0 / 40
131,0720.00 GiB5.00 GiB131072.00×0 / 0 / 40

40 of 40 layers use linear attention, which keeps a fixed-size recurrent state instead of a per-token cache. Those layers do not grow with context at all — treating them as ordinary attention, as a flat formula does, overstates this model's cache by roughly 40.0× at long context.

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.63 GiB. The real file is 5.19 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
40
Attention heads
8
KV heads
2
Head dim
128
Hidden size
2048
Vocab
262,272
Sliding window
none
SWA period
MLA
no
Experts
16
Experts per token
1
use_sliding_window

Questions people ask

How much VRAM does ZAYA1-8B need?
Q4_K_M is exactly 5,567,581,549 bytes (5.19 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is ZAYA1-8B's KV cache?
0.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.
Is ZAYA1-8B a mixture-of-experts model?
Yes — 16 experts, 1 routed per token. Every expert must be resident, but only the routed ones are read per token, which is why its memory requirement and its speed behave very differently.
Which quantization of ZAYA1-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.