How to Deploy GLM 4.7 Flash Locally
GLM 4.7 Flash is a MoE model with 30B total parameters and 3B active per token. At Q4 it needs 19GB of VRAM to sit entirely on the GPU; with experts offloaded to system RAM it needs only 4GB of VRAM plus 17GB of RAM. The cheapest card that runs it today is the Tesla V100 32GB at about $1,141, at roughly 142 tokens/s. In offload mode the cheapest card that runs it is the Tesla V100 16GB, at roughly 38 tokens/s.
GLM 4.7 Flash details
How much VRAM does GLM 4.7 Flash need for local deployment?
MoE: all 30B parameters must stay resident in memory, while speed is set by the 3B active per token.
| Quantization | WeightsGB | Total at 8KGB | Total at 32KGB | Total at 128KGB |
|---|---|---|---|---|
| 1-bit | 9.8GGUF | 8.5 | 9.7 | 14.7 |
| 2-bit | 11.9GGUF | 12.6 | 13.8 | 18.8 |
| 3-bit | 13.8GGUF | 15.8 | 17 | 22 |
| 4-bit | 18.3GGUF | 18.1 | 19.4 | 24.3 |
| 5-bit | 21.4GGUF | 21.7 | 22.9 | 27.9 |
| 8-bit | 31.8GGUF | 32.5 | 33.7 | 38.7 |
| FP16 | 59.9GGUF | 60.1 | 61.3 | 66.3 |
Total = weights + KV cache (FP16) + 1GB runtime overhead. Weights marked GGUF are measured file sizes from the repository; the rest are estimated from bytes per parameter. Contexts beyond this model's 198K limit show a dash. Each tier takes whichever file of that bit width the repository has, preferring unsloth dynamic quants, so the exact file name varies by model.
Which GPUs can run GLM 4.7 Flash?
AmazonJP
| Device | VRAMGB | Price | Est. t/s | Suggested context |
|---|---|---|---|---|
| 32 | $1,1413 listings | 142 | 128K | |
| 24 | $1,1643 listings | 75 | 32K | |
| 20 | $1,2449 listings | 113.7 | 32K | |
| 24 | $1,7389 listings | 125.1 | 32K | |
| 32 | $2,0743 listings | 90.9 | 128K | |
| 32 | $2,2446 listings | 100.1 | 128K | |
| 24 | $2,5209 listings | 144.4 | 32K | |
| 128 | $3,9136 listings | 52.7 | 128K | |
| 24 | $3,9565 listings | 123.8 | 32K | |
| 24 | $4,9059 listings | 148.9 | 32K | |
| 32 | $7,4899 listings | 180.9 | 128K | |
| 128 | $8,2233 listings | 71.3 | 128K | |
| 22 | —No listings | 118.4 | 32K | |
| 24 | —No listings | 165.6 | 32K | |
| 32 | —No listings | 90.9 | 128K | |
| 32 | —No listings | 129.6 | 128K | |
| 32 | —No listings | 180.9 | 128K | |
| 32 | —No listings | 140.5 | 128K | |
| 32 | —No listings | 129.1 | 128K | |
| 32 | —No listings | 93.9 | 128K | |
| 32 | —No listings | 141.7 | 128K | |
| 40 | —No listings | 173.6 | 128K | |
| 40 | —No listings | 173.8 | 128K | |
| 48 | —No listings | 148.9 | 128K | |
| 48 | —No listings | 118.5 | 128K | |
| 48 | —No listings | 165.6 | 128K | |
| 64 | —No listings | 171.4 | 128K | |
| 64 | —No listings | 157.7 | 128K | |
| 72 | —No listings | 165.6 | 128K | |
| 84 | —No listings | 174 | 128K | |
| 96 | —No listings | 180.9 | 128K | |
| Mac Studio M4 Max 128GB | 128 | —No listings | 96.3 | 128K |
| Mac Studio M5 Max 128GB | 128 | —No listings | 103.4 | 128K |
| MacBook Pro M4 Max 128GB | 128 | —No listings | 96.3 | 128K |
| MacBook Pro M5 Max 128GB | 128 | —No listings | 103.4 | 128K |
| Mac Studio M3 Ultra 512GB | 512 | —No listings | 121.1 | 128K |
Fits when weights + KV cache + runtime overhead is at or below usable memory, single card. "Offload" on MoE models means it runs with expert weights in system RAM (only attention layers and KV cache stay in VRAM); that speed assumes 70 GB/s RAM bandwidth. The context column is the largest tier that fits.
Recommended GPUs for GLM 4.7 Flash with CPU/GPU offloading
AmazonJP
Expert weights live in system RAM (needs at least 17 GB); VRAM holds only attention layers, shared experts and the KV cache, at least 4 GB at Q4. Speed is bound by RAM bandwidth (estimated at 70 GB/s) and is far slower than a full-VRAM setup.
| Device | VRAMGB | Price | RAM neededGB | Est. t/s |
|---|---|---|---|---|
| 16 | $659 | 17 | 37.9 | |
| 16 | $884 | 17 | 36.1 | |
| 16 | $924 | 17 | 36 | |
| 12 | $956 | 17 | 37.3 | |
| 16 | $966 | 17 | 36 | |
| 16 | $1,404 | 17 | 35.7 | |
| 16 | $1,576 | 17 | 37.9 | |
| 16 | $1,868 | 17 | 38.1 | |
| 16 | $2,187 | 17 | 37.4 |
Deploy GLM 4.7 Flash locally with Ollama, llama.cpp or vLLM
The Ollama library has no official tag for it yet.
llama.cpp pulls the GGUF straight from Hugging Face; -c sets the context length.
llama-server -hf unsloth/GLM-4.7-Flash-GGUF:Q4_K_M -c 8192
vLLM serves the original-precision weights, which needs far more memory than GGUF and usually more than one GPU.
vllm serve zai-org/GLM-4.7-Flash
File names follow that week's model-library snapshot; the definitions are in the methodology. Methodology
FAQ
How much VRAM does GLM 4.7 Flash need?
At Q4_K_M with an 8K context GLM 4.7 Flash needs about 19GB of VRAM; 24GB leaves comfortable headroom.
What is the cheapest GPU that runs GLM 4.7 Flash?
The Tesla V100 32GB: 32GB of VRAM, currently about $1,141, at roughly 142 tokens/s.
Can you run GLM 4.7 Flash with Ollama?
Not yet: the Ollama library has no official tag for it. You can load the GGUF with llama.cpp instead.