01-ai · text

Yi-1.5-9B-Chat

01-ai/Yi-1.5-9B-Chat

Yi-1.5-9B-Chat at Q4_K_M is exactly 5,328,957,728 bytes (4.96 GiB / 5.33 GB) — an effective 4.828 bits per weight, not the nominal 4. Its KV cache at 32K is 3.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
8.8B
Architecture
llama
48 layers
Context
4,096
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q2_K3.12 GiB3,354,325,2803.039MaziyarPanahi
Q2_K3.12 GiB3,354,325,3443.039second-state
Q3_K_S3.63 GiB3,899,207,9683.533MaziyarPanahi
Q3_K_S3.63 GiB3,899,208,0323.533second-state
IQ3_M3.78 GiB4,055,462,4003.675lmstudio-community
Q3_K_M4.03 GiB4,324,405,5363.918MaziyarPanahi
Q3_K_M4.03 GiB4,324,405,6003.918second-state
Q3_K_L4.37 GiB4,690,751,7764.250MaziyarPanahi
Q3_K_L4.37 GiB4,690,751,8404.250second-state
Q3_K_L4.37 GiB4,690,752,0004.250lmstudio-community
Q4_04.69 GiB5,036,994,9124.564second-state
IQ4_NL4.70 GiB5,049,577,9844.575lmstudio-community
Q4_K_S4.72 GiB5,071,860,0004.595MaziyarPanahi
Q4_K_S4.72 GiB5,071,860,0644.595second-state
Q4_K_M4.96 GiB5,328,957,7284.828MaziyarPanahi
Q4_K_M4.96 GiB5,328,957,7924.828second-state
Q4_K_M4.96 GiB5,328,957,9524.828lmstudio-community
Q5_K_S5.69 GiB6,107,853,0885.534MaziyarPanahi
Q5_K_S5.69 GiB6,107,853,1525.534second-state
Q5_05.69 GiB6,107,853,1525.534second-state
Q5_K_M5.83 GiB6,258,258,2085.670MaziyarPanahi
Q5_K_M5.83 GiB6,258,258,2725.670second-state
Q5_K_M5.83 GiB6,258,258,4325.670lmstudio-community
Q6_K6.75 GiB7,245,639,9686.565MaziyarPanahi
Q6_K6.75 GiB7,245,640,0326.565second-state
Q6_K6.75 GiB7,245,640,1926.565lmstudio-community
Q8_08.74 GiB9,383,915,8728.502second-state
Q8_08.74 GiB9,383,916,0328.502lmstudio-community
F1616.45 GiB17,661,112,67216.002second-state
F3232.89 GiB35,319,132,41632.001lmstudio-community

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.38 GiB0.38 GiB48 / 0 / 0
8,1920.75 GiB0.75 GiB48 / 0 / 0
16,3841.50 GiB1.50 GiB48 / 0 / 0
32,7683.00 GiB3.00 GiB48 / 0 / 0
65,5366.00 GiB6.00 GiB48 / 0 / 0
131,07212.00 GiB12.00 GiB48 / 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.63 GiB. The real file is 4.96 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

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

Questions people ask

How much VRAM does Yi-1.5-9B-Chat need?
Q4_K_M is exactly 5,328,957,728 bytes (4.96 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is Yi-1.5-9B-Chat's KV cache?
3.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 Yi-1.5-9B-Chat 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.