Advisor / Models / GLM-4.7-Flash

GLM-4.7-Flash: VRAM requirements & speed

GLM-4.7-Flash (31.22B MoE, 3B active, mit). Native context 198k. Smallest GGUF: 18.31 GB.

18.31 GBsmallest quant file
19hardware pages that fit it fully
8run with offload
0measured data points

Memory needed by quantization and context

GGUF file size plus f16 KV cache (and fixed overhead of ~1 GB per GPU not shown). Source: unsloth/GLM-4.7-Flash-GGUF.

QuantFile+8k ctx+32k ctx+128k ctx
Q4_K_M18.31 GB18.8 GB20.1 GB25.4 GB
Q5_K_M21.41 GB21.9 GB23.2 GB28.5 GB
Q6_K24.69 GB25.1 GB26.5 GB31.8 GB
Q8_031.84 GB32.3 GB33.6 GB38.9 GB

KV cache size by context length

Computed from the model's attention layout.

Contextf16q8_0q4_0
8k0.44 GB0.24 GB0.12 GB
32k1.77 GB0.94 GB0.50 GB
128k7.10 GB3.77 GB2.00 GB

Which hardware runs GLM-4.7-Flash? · 16k context

HardwareQuantFitMemoryTok/sSpeed source
RTX 5090 32GBQ6_Kfits fully25.6 GB268scaled from measured
RTX 4090 24GBQ5_K_Mfits fully22.3 GB257scaled from measured
RTX PRO 6000 96GBQ8_0fits fully32.7 GB248scaled from measured
AMD RX 7900 XTX 24GBQ5_K_Mfits fully22.3 GB223estimated
RTX 3090 24GBQ5_K_Mfits fully22.3 GB192scaled from measured
Mac Studio M5 Ultra 256GBQ8_0fits fully32.7 GB192estimated
Mac Studio M5 Ultra 512GB (ships late Oct 2026)Q8_0fits fully32.7 GB192estimated
2x RTX 3090 (48GB total)Q8_0fits fully32.7 GB165estimated
RTX 5080 16GBQ4_K_MMoE offload to CPU19.2 GB108estimated
RTX 5070 Ti 16GBQ4_K_MMoE offload to CPU19.2 GB106estimated
RTX 5060 Ti 16GBQ4_K_MMoE offload to CPU19.2 GB92estimated
16GB VRAM class (RTX 4060 Ti 16GB, 32GB RAM)Q4_K_MMoE offload to CPU19.2 GB80estimated
Mac Studio (2025) M3 Ultra 96GBQ8_0fits fully32.7 GB79scaled from measured
Mac Studio M5 Max 128GBQ8_0fits fully32.7 GB74scaled from measured
MacBook Pro 14/16 M5 Max 128GBQ8_0fits fully32.7 GB74scaled from measured
MacBook Pro 14/16 (2024) M4 Max 128GBQ8_0fits fully32.7 GB67estimated
RTX 5070 12GBQ4_K_MMoE offload to CPU19.2 GB59estimated
RTX 4070 12GBQ4_K_MMoE offload to CPU19.2 GB58estimated
AMD Ryzen AI Max+ PRO 495 (Ryzen AI Halo) 192GBQ8_0fits fully32.7 GB56estimated
MacBook Pro 14/16 M5 Pro 48GBQ8_0fits fully32.7 GB55estimated
AMD Ryzen AI Max+ 395 (Strix Halo) 128GBQ8_0fits fully32.7 GB54scaled from measured
NVIDIA DGX Spark 128GBQ8_0fits fully32.7 GB50scaled from measured
Mac mini M6 32GBQ4_K_Mfits fully19.2 GB47estimated
MacBook Air M5 32GBQ4_K_Mfits fully19.2 GB44estimated
8GB VRAM class (RTX 4060 8GB, 32GB RAM)Q4_K_MMoE offload to CPU19.2 GB41estimated
Mac mini (2024) M4 Pro 64GBQ8_0fits fully32.7 GB41estimated
RTX 3060 12GB (32GB RAM)Q4_K_MMoE offload to CPU19.2 GB34estimated
Mac mini / iMac M4 16GB-does not fit--

Discrete GPUs are modelled with 32 GB of system RAM available for offload. Does not fit even with offload: Mac mini / iMac M4 16GB.

MLX conversions for Apple Silicon

RepoBitsSizeRuns with
mlx-community/GLM-4.7-Flash-4bit4-bit (4bit)16.9 GBmlx-lm
mlx-community/GLM-4.7-Flash-8bit8-bit (8bit)31.8 GBmlx-lm

Verified via the Hugging Face API on 2026-10-20. Compare with the GGUF sizes above (Q4_K_M 18.31 GB, Q8_0 31.84 GB). Mac hardware pages show the MLX command; there are no MLX speeds on this site yet. MLX vs GGUF.

Links

Model card · GGUF files · Open in the advisor · last verified 2026-10-20

FAQ

How much VRAM does GLM-4.7-Flash need?

The smallest quant (Q4_K_M) is 18.31 GB, so you need roughly 20 GB for an 8k context including KV cache and overhead. At 128k context the f16 KV cache alone is 7.1 GB.

Can I run GLM-4.7-Flash on a RTX 5090 32GB?

Yes: on RTX 5090 32GB it fits fully as Q6_K at about 268 tok/s (scaled from measured). 19 of 28 hardware configurations fit it fully at 16k context.

What is the maximum context for GLM-4.7-Flash?

198k tokens natively. Memory, not the model, is usually the limit: see the KV cache table above.

All models: model index · by memory: 8 GB · 12 GB · 16 GB · 24 GB · 32 GB · 48 GB · 64 GB · 96 GB · 128 GB · 192 GB · 256 GB · 512 GB. Numbers use the same fit math as the advisor; sources and methods.