01-ai · text

Yi-Coder-1.5B

01-ai/Yi-Coder-1.5B

Yi-Coder-1.5B at Q4_K_M is exactly 963,673,472 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
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ1_S0.46 GiB491,167,3602.661legraphista
IQ1_M0.47 GiB508,567,1682.756legraphista
IQ2_XXS0.50 GiB537,566,8482.913legraphista
IQ2_XS0.53 GiB563,912,3203.055legraphista
IQ2_S0.56 GiB601,603,7123.260legraphista
Q2_K_S0.58 GiB618,479,2323.351legraphista
IQ2_M0.58 GiB624,803,4563.385legraphista
Q2_K0.59 GiB634,699,3923.439legraphista
IQ3_XXS0.61 GiB653,901,4403.543legraphista
IQ3_XS0.65 GiB694,951,5523.765legraphista
IQ3_S0.67 GiB723,410,5603.920legraphista
Q3_K_S0.67 GiB723,410,5603.920legraphista
IQ3_M0.70 GiB754,376,3204.087legraphista
IQ3_M0.70 GiB754,376,3204.087bartowski
Q3_K0.73 GiB785,718,9124.257legraphista
Q3_K_L0.77 GiB826,039,9364.476legraphista
Q3_K_L0.77 GiB826,039,9364.476bartowski
IQ4_XS0.78 GiB832,568,9604.511legraphista
IQ4_XS0.78 GiB832,568,9604.511bartowski
IQ4_NL0.81 GiB866,156,1604.693legraphista
Q4_00.81 GiB868,269,6964.705bartowski
Q4_K_S0.84 GiB904,183,4244.899legraphista
Q4_K_S0.84 GiB904,183,4244.899bartowski
Q4_K_M0.90 GiB963,673,4725.221lmstudio-community
Q4_K_M0.90 GiB963,673,7285.221bartowski
Q4_K0.90 GiB963,673,7285.221legraphista
Q5_K_S0.98 GiB1,051,229,5685.696legraphista
Q5_K_S0.98 GiB1,051,229,8245.696bartowski
Q4_K_L0.99 GiB1,060,953,7285.748bartowski
Q5_K1.02 GiB1,100,184,9605.961legraphista
Q5_K_M1.02 GiB1,100,185,2165.961bartowski
Q5_K_L1.10 GiB1,181,081,2166.399bartowski
Q6_K1.19 GiB1,278,516,6086.927legraphista
Q6_K1.19 GiB1,278,516,6086.927lmstudio-community
Q6_K1.19 GiB1,278,516,8646.927bartowski
Q6_K_L1.25 GiB1,342,004,8647.271bartowski
Q8_01.46 GiB1,570,561,4088.510lmstudio-community
Q8_01.46 GiB1,570,561,4088.510legraphista
Q8_01.46 GiB1,570,561,6648.510bartowski
F162.75 GiB2,954,681,72816.009bartowski

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 need?
Q4_K_M is exactly 963,673,472 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'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 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.