Can the RTX 4070 run GLM-4.7-Flash?

Not fully, but it's usable. GLM-4.7-Flash needs about 19.8 GB at Q4_K_M and the RTX 4070 has 12 GB - yet as a mixture-of-experts model it reads only ~3B parameters per token, so you can keep attention on the GPU and the experts in system RAM (llama.cpp --n-cpu-moe) and still get interactive speeds with 32 GB+ of RAM.

VRAM
12 GB
Needs at Q4
19.8 GB
Short by
7.8 GB
Speed
-

Every quantization

GLM-4.7-Flash (31.2B, 3B active) on 12 GB

QuantWeightsNeedsFitEst. speed
Q4_K_M18 GB19.8 GBToo big -
Q5_K_M22 GB23.8 GBToo big -
Q8_033 GB34.8 GBToo big -
FP1662 GB63.8 GBToo big -

Estimates. Needs = weights + 1.8 GB for KV cache and runtime at modest context. Speed is single-stream decode scaled from the RTX 4070's 504 GB/s bandwidth (Estimated from memory bandwidth (llama.cpp decode)). Long contexts need more memory and run slower.

Run it with expert offload

Attention on the GPU, experts in system RAM

llama-server -hf unsloth/GLM-4.7-Flash-GGUF -ngl 99 --n-cpu-moe 99

Lower --n-cpu-moe step by step until the RTX 4070's 12 GB is nearly full - each expert layer moved back to the GPU speeds things up. Needs about 16 GB+ of free system RAM.

What to do instead

Two ways forward

Cheapest cards that run it

Models that fit the RTX 4070

Compare

Same model, other hardware - and other models on this card

GLM-4.7-Flash on other hardware

Also runs on the RTX 4070

Frequently asked

Quick answers

Can the NVIDIA RTX 4070 run GLM-4.7-Flash?

Not fully, but it's usable. GLM-4.7-Flash needs about 19.8 GB at Q4_K_M and the RTX 4070 has 12 GB - yet as a mixture-of-experts model it reads only ~3B parameters per token, so you can keep attention on the GPU and the experts in system RAM (llama.cpp --n-cpu-moe) and still get interactive speeds with 32 GB+ of RAM.

How much VRAM does GLM-4.7-Flash need?

About 18 GB of weights at Q4_K_M, 33 GB at Q8_0 and 62 GB at FP16. Add roughly 1.8 GB for the KV cache and runtime at modest context lengths.

How fast is GLM-4.7-Flash on the RTX 4070?

It doesn't fit in the RTX 4070's memory, so speed depends on how many layers you offload to system RAM - typically single-digit tokens per second or lower.