01-ai · text

Yi-Coder-1.5B-Chat

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

Yi-Coder-1.5B-Chat at Q4_K_M is exactly 963,674,304 bytes (0.90 GiB / 0.96 GB) — an effective 5.221 bits per weight, not the nominal 4. Its KV cache at 32K is 6.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
1.5B
Architecture
llama
24 layers
Context
131,072
native (config.json)
License

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ1_S0.46 GiB491,167,9362.661MaziyarPanahi
IQ1_M0.47 GiB508,567,7442.756MaziyarPanahi
IQ2_XS0.53 GiB563,912,8963.055MaziyarPanahi
IQ2_M0.58 GiB624,804,0323.385bartowski
Q2_K0.59 GiB634,699,9683.439MaziyarPanahi
Q2_K0.59 GiB634,699,9683.439bartowski
IQ3_XS0.65 GiB694,952,1283.765MaziyarPanahi
IQ3_XS0.65 GiB694,952,1283.765bartowski
Q3_K_S0.67 GiB723,411,1363.920bartowski
Q3_K_S0.67 GiB723,411,1363.920MaziyarPanahi
IQ3_M0.70 GiB754,376,8964.087bartowski
Q2_K_L0.71 GiB762,699,9684.133bartowski
Q3_K_M0.73 GiB785,719,4884.257219bartowski
Q3_K_M0.73 GiB785,719,4884.257MaziyarPanahi
Q3_K_L0.77 GiB826,040,5124.476bartowski
Q3_K_L0.77 GiB826,040,5124.476MaziyarPanahi
IQ4_XS0.78 GiB832,569,5364.511219bartowski
IQ4_XS0.78 GiB832,569,5364.511MaziyarPanahi
Q4_00.81 GiB868,270,2724.705219bartowski
Q4_K_S0.84 GiB904,184,0004.899bartowski
Q4_K_S0.84 GiB904,184,0004.899MaziyarPanahi
Q4_K_M0.90 GiB963,674,3045.221MaziyarPanahi
Q4_K_M0.90 GiB963,674,3045.221219bartowski
Q5_K_S0.98 GiB1,051,230,4005.696bartowski
Q5_K_S0.98 GiB1,051,230,4005.696MaziyarPanahi
Q4_K_L0.99 GiB1,060,954,3045.748bartowski
Q5_K_M1.02 GiB1,100,185,7925.961MaziyarPanahi
Q5_K_M1.02 GiB1,100,185,7925.961219bartowski
Q5_K_L1.10 GiB1,181,081,7926.399bartowski
Q6_K1.19 GiB1,278,517,4406.927219bartowski
Q6_K_L1.25 GiB1,342,005,4407.271bartowski
Q8_01.46 GiB1,570,562,2408.510219bartowski
F162.75 GiB2,954,682,30416.009219bartowski

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.75 GiB0.75 GiB24 / 0 / 0
8,1921.50 GiB1.50 GiB24 / 0 / 0
16,3843.00 GiB3.00 GiB24 / 0 / 0
32,7686.00 GiB6.00 GiB24 / 0 / 0
65,53612.00 GiB12.00 GiB24 / 0 / 0
131,07224.00 GiB24.00 GiB24 / 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.77 GiB. The real file is 0.90 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
24
Attention heads
16
KV heads
16
Head dim
128
Hidden size
2048
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-Coder-1.5B-Chat need?
Q4_K_M is exactly 963,674,304 bytes (0.90 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-Coder-1.5B-Chat's KV cache?
6.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-Coder-1.5B-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.