GLM 4.7 Flash
30B total, 3.9B active · 198k context · mit · released 2026-01-19
codingagentic
In short
GLM 4.7 Flash is an open model from Z.ai with 30B parameters (3.9B active per token). At Q4_K_M, GLM 4.7 Flash needs about 18 GB of memory at 8k context and 25 GB at 128k, counting the weights, the KV cache and runtime buffers. The cheapest hardware in Canada that runs GLM 4.7 Flash fully in memory at 128k context is the AMD Radeon AI PRO R9700, $2,869 at Amazon, at about 21 tok/s (estimated).
Updated . Speeds are estimates; how they are worked out.
Cheapest way to run it in Canada today
AMD Radeon AI PRO R9700, new at Amazon
Runs GLM 4.7 Flash at Q6_K fully in memory at 128k context, about 21 tok/sest.
$2,869
In stock, checked
What to run it on in Canada
Fully in memory at 128k context, priced at retailers today.
Cheapest
AMD Radeon AI PRO R970021tok/sest.Q6_K
$2,869
Best value
AMD Radeon AI PRO R970021tok/sest.Q6_K
$2,869
Fastest
NVIDIA GeForce RTX 509065tok/sest.Q6_K
$12,300
Mac
Mac Studio M3 Ultra 512GB28tok/sest.Q8_0
$28,000
All hardware that runs it
Everything we price, best value first. Two cards split the model by layers.
2 other cards and machines we price cannot hold it at this context.
Memory needed
Weights, KV cache and runtime buffers at each context length (KV cache at fp16).
| Quant | File | @8k | @32k | @64k | @128k |
|---|---|---|---|---|---|
| Q4_K_Mgguf | 17.1 GB | 18.2 GB | 19.6 GB | 21.4 GB | 25.1 GB |
| mlx-4bitmlx | 15.7 GB | 16.9 GB | 18.2 GB | 20.1 GB | 23.8 GB |
| Q5_K_Mgguf | 19.9 GB | 21.1 GB | 22.5 GB | 24.3 GB | 28.0 GB |
| Q6_Kgguf | 23.0 GB | 24.2 GB | 25.5 GB | 27.4 GB | 31.1 GB |
| mlx-8bitmlx | 29.6 GB | 30.8 GB | 32.2 GB | 34.0 GB | 37.7 GB |
| Q8_0gguf | 29.7 GB | 30.8 GB | 32.2 GB | 34.0 GB | 37.7 GB |
Run it
Copy a command for the runtime you use.
- Q4_K_M
- Ollama
ollama run hf.co/unsloth/GLM-4.7-Flash-GGUF:Q4_K_M - LM Studio
lms get unsloth/GLM-4.7-Flash-GGUF@q4_k_m - llama.cpp
llama-server -hf unsloth/GLM-4.7-Flash-GGUF:Q4_K_M
- Ollama
- mlx-4bit
- LM Studio
lms get mlx-community/GLM-4.7-Flash-4bit - MLX
mlx_lm.server --model mlx-community/GLM-4.7-Flash-4bit
- LM Studio
- Q5_K_M
- Ollama
ollama run hf.co/unsloth/GLM-4.7-Flash-GGUF:Q5_K_M - LM Studio
lms get unsloth/GLM-4.7-Flash-GGUF@q5_k_m - llama.cpp
llama-server -hf unsloth/GLM-4.7-Flash-GGUF:Q5_K_M
- Ollama
- Q6_K
- Ollama
ollama run hf.co/unsloth/GLM-4.7-Flash-GGUF:Q6_K - LM Studio
lms get unsloth/GLM-4.7-Flash-GGUF@q6_k - llama.cpp
llama-server -hf unsloth/GLM-4.7-Flash-GGUF:Q6_K
- Ollama
- mlx-8bit
- LM Studio
lms get mlx-community/GLM-4.7-Flash-8bit - MLX
mlx_lm.server --model mlx-community/GLM-4.7-Flash-8bit
- LM Studio
- Q8_0
- Ollama
ollama run hf.co/unsloth/GLM-4.7-Flash-GGUF:Q8_0 - LM Studio
lms get unsloth/GLM-4.7-Flash-GGUF@q8_0 - llama.cpp
llama-server -hf unsloth/GLM-4.7-Flash-GGUF:Q8_0
- Ollama
Questions
- How much VRAM does GLM 4.7 Flash need?
- At Q4_K_M, GLM 4.7 Flash needs about 18 GB of memory at 8k context and 25 GB at 128k, counting the weights, the KV cache and runtime buffers.
- What is the best GPU for running GLM 4.7 Flash locally?
- The cheapest hardware in Canada that runs GLM 4.7 Flash fully in memory at 128k context is the AMD Radeon AI PRO R9700, $2,869 at Amazon, at about 21 tok/s (estimated). The fastest we price is the NVIDIA GeForce RTX 5090, at about 65 tok/s.
- What is the cheapest way to run GLM 4.7 Flash in Canada today?
- The AMD Radeon AI PRO R9700, $2,869 new at Amazon, in stock: it runs GLM 4.7 Flash at Q6_K fully in memory at 128k context, at about 21 tok/s (estimated).
- Can I run GLM 4.7 Flash on a 16 GB GPU?
- Only partly: at 128k context it does not fit in 16 GB, so part of it runs from system RAM and it slows to about 6 tok/s on the AMD Radeon RX 9060 XT 16GB (estimated).
- Can I run GLM 4.7 Flash on a 24 GB GPU?
- Only partly: at 128k context it does not fit in 24 GB, so part of it runs from system RAM and it slows to about 19 tok/s on the AMD Radeon RX 7900 XTX (estimated).
- How do I run GLM 4.7 Flash locally?
- With Ollama: ollama run hf.co/unsloth/GLM-4.7-Flash-GGUF:Q4_K_M (the Q4_K_M build). LM Studio and llama.cpp commands are on this page.
- What licence is GLM 4.7 Flash released under?
- mit, which allows commercial use.