Gryphe · text

Codex-24B-Small-3.2

Gryphe/Codex-24B-Small-3.2

Codex-24B-Small-3.2 at Q4_K_M is exactly 14,333,908,256 bytes (13.35 GiB / 14.33 GB) — an effective 4.865 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 per layer
Parameters
23.6B
Architecture
llama
40 layers
Context
131,072
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
I1-IQ1_S4.91 GiB5,273,720,5441.790mradermacher
I1-IQ1_M5.36 GiB5,750,494,9441.952mradermacher
IQ2_XXS6.10 GiB6,545,118,4962.221bartowski
I1-IQ2_XXS6.10 GiB6,545,118,9442.221mradermacher
IQ2_XS6.71 GiB7,207,032,0962.446bartowski
I1-IQ2_XS6.71 GiB7,207,032,5442.446mradermacher
IQ2_S6.96 GiB7,478,351,1362.538bartowski
I1-IQ2_S6.96 GiB7,478,351,5842.538mradermacher
IQ2_M7.56 GiB8,114,050,3362.754bartowski
I1-IQ2_M7.56 GiB8,114,050,7842.754mradermacher
I1-Q2_K_S7.75 GiB8,320,161,5042.824mradermacher
Q2_K8.28 GiB8,890,324,2563.017bartowski
I1-Q2_K8.28 GiB8,890,324,7043.017mradermacher
IQ3_XXS8.64 GiB9,280,591,1363.150bartowski
I1-IQ3_XXS8.64 GiB9,280,591,5843.150mradermacher
Q2_K_L8.89 GiB9,545,684,2563.240bartowski
IQ3_XS9.23 GiB9,907,115,2963.362bartowski
I1-IQ3_XS9.23 GiB9,907,115,7443.362mradermacher
Q3_K_S9.69 GiB10,400,273,6963.530bartowski
I1-Q3_K_S9.69 GiB10,400,274,1443.530mradermacher
I1-IQ3_S9.71 GiB10,428,126,9443.539mradermacher
IQ3_M9.92 GiB10,650,948,8963.615bartowski
I1-IQ3_M9.92 GiB10,650,949,3443.615mradermacher
Q3_K_M10.69 GiB11,474,081,0563.894bartowski
I1-Q3_K_M10.69 GiB11,474,081,5043.894mradermacher
Q3_K_L11.55 GiB12,400,760,0964.209bartowski
I1-Q3_K_L11.55 GiB12,400,760,5444.209mradermacher
IQ4_XS11.88 GiB12,758,914,3364.330bartowski
I1-IQ4_XS11.88 GiB12,758,914,7844.330mradermacher
IQ4_NL12.54 GiB13,468,013,8564.571bartowski
Q4_012.57 GiB13,494,228,2564.580bartowski
I1-Q4_012.57 GiB13,494,228,7044.580mradermacher
Q4_K_S12.62 GiB13,549,278,4964.598bartowski
I1-Q4_K_S12.62 GiB13,549,278,9444.598mradermacher
Q4_K_M13.35 GiB14,333,908,2564.865bartowski
I1-Q4_K_M13.35 GiB14,333,908,7044.865mradermacher
Q4_K_L13.81 GiB14,831,981,8565.034bartowski
Q4_113.85 GiB14,873,105,6965.048bartowski
I1-Q4_113.85 GiB14,873,106,1445.048mradermacher
Q5_K_S15.18 GiB16,304,411,9365.533bartowski

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 12.35 GiB. The real file is 13.35 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

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

Questions people ask

How much VRAM does Codex-24B-Small-3.2 need?
Q4_K_M is exactly 14,333,908,256 bytes (13.35 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is Codex-24B-Small-3.2'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 Codex-24B-Small-3.2 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.