cerebras · text · mixture of experts

GLM-4.7-Flash-REAP-23B-A3B

cerebras/GLM-4.7-Flash-REAP-23B-A3B

GLM-4.7-Flash-REAP-23B-A3B at Q4_K_M is exactly 14,113,838,816 bytes (13.14 GiB / 14.11 GB) — an effective 4.910 bits per weight, not the nominal 4. Its KV cache at 32K is 1.65 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
23.0B
total, not active
Architecture
deepseek2
47 layers
Context
202,752
native (config.json)
License
mit

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
UD-TQ1_06.09 GiB6,536,330,9762.274unsloth
UD-IQ1_S6.71 GiB7,205,191,3922.507unsloth
UD-IQ1_M7.07 GiB7,589,308,1282.640unsloth
UD-IQ2_XXS7.67 GiB8,238,016,2242.866unsloth
UD-IQ2_M7.97 GiB8,557,487,8402.977unsloth
Q2_K8.17 GiB8,767,940,3203.050unsloth
Q2_K_L8.24 GiB8,842,282,7203.076unsloth
UD-IQ3_XXS9.35 GiB10,036,709,0883.492unsloth
Q3_K_S9.59 GiB10,298,076,8963.583unsloth
Q3_K_M10.50 GiB11,273,383,6483.922unsloth
IQ4_XS11.71 GiB12,575,389,4084.375unsloth
IQ4_NL12.34 GiB13,252,007,7124.610unsloth
Q4_012.38 GiB13,288,609,5044.623unsloth
Q4_K_S12.41 GiB13,328,455,3924.637unsloth
Q4_K_M13.14 GiB14,113,838,8164.910unsloth
Q4_113.62 GiB14,625,068,7685.088unsloth
Q5_K_S14.94 GiB16,036,566,7525.579unsloth
Q5_K_M15.35 GiB16,480,540,3845.733unsloth
Q6_K17.69 GiB18,989,367,0086.606unsloth
Q8_022.78 GiB24,456,890,0808.508unsloth
BF1642.85 GiB46,011,270,62416.007unsloth

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.21 GiB3.67 GiB17.78×47 / 0 / 0
8,1920.41 GiB7.34 GiB17.78×47 / 0 / 0
16,3840.83 GiB14.69 GiB17.78×47 / 0 / 0
32,7681.65 GiB29.38 GiB17.78×47 / 0 / 0
65,5363.30 GiB58.75 GiB17.78×47 / 0 / 0
131,0726.61 GiB117.50 GiB17.78×47 / 0 / 0

This model uses multi-head latent attention. No V cache is allocated at all, and the K cache stores a 512-wide latent plus 64 rope dimensions — so reading num_key_value_heads from config.json and multiplying, as every calculator does, overstates the cache by well over an order of magnitude.

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.05 GiB. The real file is 13.14 GiB, because a quantization is a mixture and some tensors are always kept at higher precision. The larger discrepancy is the cache: this model allocates no value cache at all, so any formula reading num_key_value_heads overstates it by more than an order of magnitude.

Architecture

from config.json
Layers
47
Attention heads
20
KV heads
20
Head dim
256
Hidden size
2048
Vocab
154,880
Sliding window
none
SWA period
MLA
yes
Experts
48
Experts per token
4
use_sliding_window

Questions people ask

How much VRAM does GLM-4.7-Flash-REAP-23B-A3B need?
Q4_K_M is exactly 14,113,838,816 bytes (13.14 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is GLM-4.7-Flash-REAP-23B-A3B's KV cache?
1.65 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.
Is GLM-4.7-Flash-REAP-23B-A3B a mixture-of-experts model?
Yes — 48 experts, 4 routed per token. Every expert must be resident, but only the routed ones are read per token, which is why its memory requirement and its speed behave very differently.
Which quantization of GLM-4.7-Flash-REAP-23B-A3B 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.