CohereLabs · text

c4ai-command-r-08-2024

CohereLabs/c4ai-command-r-08-2024

c4ai-command-r-08-2024 at Q4_K_M is exactly 19,800,833,184 bytes (18.44 GiB / 19.80 GB) — an effective 4.905 bits per weight, not the nominal 4. Its KV cache at 32K is 5.00 GiB.

From the file· summed from 1 file(s)From the file· KV from mirror (mirror:unsloth/c4ai-command-r-08-2024)
Parameters
32.3B
Architecture
command-r
40 layers
Context
131,072
native (config.json)
License
cc-by-nc-4.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ2_XS9.61 GiB10,314,497,4722.555bartowski
IQ2_S10.05 GiB10,794,220,9922.674bartowski
IQ2_M10.81 GiB11,612,110,2722.876bartowski
Q2_K11.93 GiB12,810,763,7123.173bartowski
Q2_K11.93 GiB12,810,767,5843.173tensorblock
Q2_K_L12.40 GiB13,318,667,7123.299bartowski
IQ3_XS13.08 GiB14,045,461,9523.479bartowski
Q3_K_S13.70 GiB14,708,686,2723.643bartowski
IQ3_M14.20 GiB15,243,460,0323.776bartowski
Q3_K_M15.12 GiB16,231,742,9124.021bartowski
Q3_K_M15.12 GiB16,231,746,7844.021tensorblock
Q3_K_L16.36 GiB17,563,434,1444.351lmstudio-community
Q3_K_L16.36 GiB17,563,434,4324.351bartowski
IQ4_XS16.60 GiB17,828,199,8724.416bartowski
Q4_017.49 GiB18,782,404,0324.652bartowski
Q4_K_S17.55 GiB18,849,512,8964.669bartowski
Q4_K_M18.44 GiB19,800,833,1844.905lmstudio-community
Q4_K_M18.44 GiB19,800,833,4724.905bartowski
Q4_K_L18.91 GiB20,308,737,4725.031bartowski
Q5_K_S20.95 GiB22,494,363,0725.572bartowski
Q5_K_M21.47 GiB23,051,419,0725.710bartowski
Q5_K_L21.94 GiB23,559,323,0725.836bartowski
Q6_K24.68 GiB26,505,165,9846.566lmstudio-community
Q6_K24.68 GiB26,505,166,2726.566bartowski
Q6_K_L25.16 GiB27,013,070,2726.691bartowski
Q8_031.97 GiB34,326,887,5848.503lmstudio-community
Q8_031.97 GiB34,326,887,8728.503bartowski
F162 shards60.17 GiB64,604,519,77616.003bartowski

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.63 GiB0.63 GiB40 / 0 / 0
8,1921.25 GiB1.25 GiB40 / 0 / 0
16,3842.50 GiB2.50 GiB40 / 0 / 0
32,7685.00 GiB5.00 GiB40 / 0 / 0
65,53610.00 GiB10.00 GiB40 / 0 / 0
131,07220.00 GiB20.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 16.92 GiB. The real file is 18.44 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from mirror:unsloth/c4ai-command-r-08-2024
Layers
40
Attention heads
64
KV heads
8
Head dim
128
Hidden size
8192
Vocab
256,000
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does c4ai-command-r-08-2024 need?
Q4_K_M is exactly 19,800,833,184 bytes (18.44 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is c4ai-command-r-08-2024's KV cache?
5.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 c4ai-command-r-08-2024 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.