OnPrem World地端世界

GLM-4.7-Flash (30B-A3B)

GLM-4.7-Flash (30B-A3B) by Zhipu AI (Z.ai) (30B parameters, MoE with 3B active per token). At Q4_K_M with an 8K context it needs about 18.7 GiB of memory. Z.ai's 30B MoE with 3B active and a compressed (MLA) KV cache, under MIT; it fits a 20–24 GB card at 4-bit.

Last updated: 2026-10-13

Model facts

DeveloperZhipu AI (Z.ai)
Parameters30B (3B active, MoE)[src]
Native context202,752 tokens[src]
LicenceMIT[src]
Commercial useYes
KV cacheCompressed latent KV (MLA), 47 layers[src]
Released2026-01

Good for: coding · agents · Chinese · 24–32 GB GPUs

Run it

ollama run glm-4.7-flash:q4_K_M

Memory needed

Weights + KV cache + runtime overhead, in GiB. Lower quantization = less memory, slightly lower quality.

Quantization4K context8K context32K context
Q4_K_M18.5 GiB18.7 GiB19.9 GiB
Q5_K_M21.6 GiB21.8 GiB23.0 GiB
Q6_K24.9 GiB25.1 GiB26.3 GiB
Q8_031.9 GiB32.1 GiB33.3 GiB
FP1659.4 GiB59.6 GiB60.8 GiB

Which hardware runs it

Best quantization that fits each device with a 8K context. Estimates, not benchmarks. See the methodology.

HardwareMemoryBest quanttok/s (est.)
DGX Station (GB300)252 GBFP16312
GeForce RTX 509032 GBQ6_K252
GeForce RTX 409024 GBQ5_K_M199
Radeon RX 7900 XTX24 GBQ5_K_M193
Radeon RX 7900 XT20 GBQ4_K_M191
GeForce RTX 309024 GBQ5_K_M190
RTX PRO 5000 48GB Blackwell48 GBQ8_0186
RTX PRO 4500 Blackwell32 GBQ6_K168
RTX PRO 4000 Blackwell24 GBQ5_K_M153
RTX 6000 Ada Generation48 GBQ8_0148
RTX PRO 6000 Blackwell Workstation Edition96 GBFP16147
RTX PRO 6000 Blackwell Max-Q Workstation Edition96 GBFP16147
Radeon AI PRO R970032 GBQ6_K133
Arc Pro B7032 GBQ6_K128
RTX A600048 GBQ8_0126
RTX PRO 5000 72GB Blackwell72 GBFP16119
Arc Pro B6024 GBQ5_K_M115
M5 Ultra512 GBFP16103
M5 Max (18-core CPU / 32-core GPU)36 GBQ6_K97
M4 Max (14-core CPU / 32-core GPU)36 GBQ6_K89
M3 Ultra512 GBFP1675
M5 Max (18-core CPU / 40-core GPU)128 GBFP1659
M5 Pro64 GBQ8_056
M4 Max (16-core CPU / 40-core GPU)128 GBFP1653
M4 Pro64 GBQ8_050
M6 (24GB/32GB configurations, 170 GB/s)32 GBQ5_K_M47
M532 GBQ5_K_M43
RTX Spark (N1X) laptops & compact desktops128 GBFP1628
DGX Spark128 GBFP1626
Ryzen AI Max+ PRO 495 (Gorgon Halo) systems192 GBFP1626
Ryzen AI Max+ 395 (Strix Halo) systems128 GBFP1624
GeForce RTX 3060 (12 GB)12 GBDoesn't fit–
GeForce RTX 4060 Ti 16GB16 GBDoesn't fit–
GeForce RTX 4080 SUPER16 GBDoesn't fit–
GeForce RTX 5060 Ti 16GB16 GBDoesn't fit–
GeForce RTX 507012 GBDoesn't fit–
GeForce RTX 5070 Ti16 GBDoesn't fit–
GeForce RTX 508016 GBDoesn't fit–
Radeon RX 9060 XT 16GB16 GBDoesn't fit–
Radeon RX 9070 XT16 GBDoesn't fit–
Arc B58012 GBDoesn't fit–
M6 (16GB configuration, 153 GB/s)16 GBDoesn't fit–

Frequently asked questions

How much VRAM does GLM-4.7-Flash (30B-A3B) need?

With an 8K context, about 18.7 GiB at Q4_K_M and 32.1 GiB at Q8_0 (weights + KV cache + runtime overhead). Longer contexts need more memory for the KV cache.

Can GLM-4.7-Flash (30B-A3B) run on an GeForce RTX 4090?

Yes. GLM-4.7-Flash (30B-A3B) fits on the GeForce RTX 4090 (24 GB) at Q5_K_M with an 8K context, using about 21.8 GiB, at an estimated 199 tokens/s.

Can I run GLM-4.7-Flash (30B-A3B) on a Mac?

Yes. GLM-4.7-Flash (30B-A3B) fits on the M3 Ultra (96 GB) at FP16 with an 8K context, using about 59.6 GiB, at an estimated 75 tokens/s.

Can GLM-4.7-Flash (30B-A3B) be used commercially?

GLM-4.7-Flash (30B-A3B) is released under MIT. The licence allows commercial use (read its conditions).

Sources