WizardLMTeam · text

WizardCoder-Python-13B-V1.0

WizardLMTeam/WizardCoder-Python-13B-V1.0

WizardCoder-Python-13B-V1.0 at Q4_K_M is exactly 7,865,963,424 bytes (7.33 GiB / 7.87 GB) — an effective 4.835 bits per weight, not the nominal 4. Its KV cache at 32K is 25.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
13.0B
Architecture
llama
40 layers
Context
16,384
native (config.json)
License
llama2

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
I1-IQ1_S2.70 GiB2,898,692,3201.782mradermacher
I1-IQ1_M2.92 GiB3,138,615,5201.929mradermacher
I1-IQ2_XXS3.30 GiB3,538,487,5202.175mradermacher
I1-IQ2_XS3.62 GiB3,891,153,1202.392mradermacher
I1-IQ2_S3.91 GiB4,197,688,0322.580mradermacher
I1-IQ2_M4.21 GiB4,517,585,6322.777mradermacher
Q2_K4.52 GiB4,854,276,7682.984mradermacher
I1-Q2_K4.52 GiB4,854,277,0242.984mradermacher
I1-IQ3_XXS4.62 GiB4,960,568,0323.049mradermacher
IQ3_XS4.99 GiB5,361,618,0803.295mradermacher
I1-IQ3_XS4.99 GiB5,361,618,3363.295mradermacher
Q2_K5.06 GiB5,429,354,2403.337TheBloke
Q3_K_S5.27 GiB5,658,986,7523.478TheBloke
Q3_K_S5.27 GiB5,658,987,6803.478mradermacher
IQ3_S5.27 GiB5,658,987,6803.478mradermacher
I1-IQ3_S5.27 GiB5,658,987,9363.478mradermacher
I1-Q3_K_S5.27 GiB5,658,987,9363.478mradermacher
IQ3_M5.57 GiB5,984,517,2803.678mradermacher
I1-IQ3_M5.57 GiB5,984,517,5363.678mradermacher
Q3_K_M5.90 GiB6,337,775,8723.895TheBloke
Q3_K_M5.90 GiB6,337,776,8003.895mradermacher
I1-Q3_K_M5.90 GiB6,337,777,0563.895mradermacher
Q3_K_L6.45 GiB6,929,565,9524.259TheBloke
Q3_K_L6.45 GiB6,929,566,8804.259mradermacher
I1-Q3_K_L6.45 GiB6,929,567,1364.259mradermacher
I1-IQ4_XS6.49 GiB6,964,230,0484.280mradermacher
IQ4_XS6.54 GiB7,019,525,7924.314mradermacher
Q4_06.86 GiB7,365,841,8244.527TheBloke
I1-Q4_06.88 GiB7,387,961,4084.541mradermacher
Q4_K_S6.91 GiB7,414,338,4644.557TheBloke
Q4_K_S6.91 GiB7,423,186,7524.563mradermacher
I1-Q4_K_S6.91 GiB7,423,187,0084.563mradermacher
Q4_K_M7.33 GiB7,865,963,4244.835TheBloke
Q4_K_M7.33 GiB7,865,964,3524.835mradermacher
I1-Q4_K_M7.33 GiB7,865,964,6084.835mradermacher
Q5_08.36 GiB8,972,293,6645.515TheBloke
Q5_K_S8.36 GiB8,972,293,6645.515TheBloke
Q5_K_S8.36 GiB8,972,294,5925.515mradermacher
I1-Q5_K_S8.36 GiB8,972,294,8485.515mradermacher
Q5_K_M8.60 GiB9,229,932,0645.673TheBloke

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0963.13 GiB3.13 GiB40 / 0 / 0
8,1926.25 GiB6.25 GiB40 / 0 / 0
16,38412.50 GiB12.50 GiB40 / 0 / 0
32,76825.00 GiB25.00 GiB40 / 0 / 0
65,53650.00 GiB50.00 GiB40 / 0 / 0
131,072100.00 GiB100.00 GiB40 / 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 6.82 GiB. The real file is 7.33 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
40
Attention heads
40
KV heads
40
Head dim
128
Hidden size
5120
Vocab
32,001
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does WizardCoder-Python-13B-V1.0 need?
Q4_K_M is exactly 7,865,963,424 bytes (7.33 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is WizardCoder-Python-13B-V1.0's KV cache?
25.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 WizardCoder-Python-13B-V1.0 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.