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 20 GB at 32k, counting the weights, the KV cache and runtime buffers. The cheapest hardware in the UK that runs GLM 4.7 Flash fully in memory at 32k context is the NVIDIA Tesla P40, £780 at Amazon, at about 28 tok/s (estimated).
Updated . Speeds are estimates; how they are worked out.
Cheapest way to run it in the UK today
NVIDIA Tesla P40, used at eBay
Runs GLM 4.7 Flash at Q5_K_M fully in memory at 32k context, about 28 tok/sest.
£280
In stock, checked
What to run it on in the UK
Fully in memory at 32k context, priced at retailers today.
Cheapest
NVIDIA Tesla P4028tok/sest.Q5_K_M
£780
Best value
NVIDIA GeForce RTX 309076tok/sest.Q5_K_M
£1,330
Fastest
NVIDIA GeForce RTX 5090133tok/sest.Q6_K
£5,000
Mac
Mac Studio M4 Max 64GB36tok/sest.Q8_0
£3,299
All hardware that runs it
Everything we price, best value first. Two cards split the model by layers.
| Hardware | Quant | Fits | Decode | Price | tok/s per 1,000 |
|---|---|---|---|---|---|
| NVIDIA Tesla P40 | Q5_K_M | fits | 28 tok/s | £780 | 36.2 |
| Intel Arc Pro B60 | Q5_K_M | fits | 27 tok/s | £944 | 29.0 |
| NVIDIA GeForce RTX 3090 | Q5_K_M | fits | 76 tok/s | £1,330 | 57.3 |
| AMD Radeon RX 7900 XTX | Q5_K_M | fits | 69 tok/s | £1,399 | 49.5 |
| Intel Arc Pro B70 | Q6_K | fits | 34 tok/s | £1,422 | 23.6 |
| AMD Radeon AI PRO R9700 | Q6_K | fits | 42 tok/s | £1,600 | 26.4 |
| Mac mini M4 32GB | Q4_K_M | fits | 11 tok/s | £1,649 | 6.8 |
| NVIDIA GeForce RTX 3090 Ti | Q5_K_M | fits | 82 tok/s | £2,199 | 37.3 |
| Mac Studio M4 Max 64GB | Q8_0 | fits | 36 tok/s | £3,299 | 10.9 |
| Mac mini M4 Pro 64GB | Q8_0 | fits | 18 tok/s | £3,349 | 5.4 |
| GMKtec EVO-X2 Ryzen AI Max+ 395 128GB | Q8_0 | fits | 14 tok/s | £3,500 | 4.1 |
| NVIDIA RTX PRO 4500 Blackwell | Q6_K | fits | 67 tok/s | £4,587 | 14.5 |
| Mac Studio M3 Ultra 96GB | Q8_0 | fits | 54 tok/s | £4,949 | 10.9 |
| NVIDIA GeForce RTX 5090 | Q6_K | fits | 133 tok/s | £5,000 | 26.7 |
| NVIDIA GeForce RTX 4090 | Q5_K_M | fits | 82 tok/s | £5,091 | 16.1 |
| ASUS Ascent GX10 128GB | Q8_0 | fits | 17 tok/s | £5,299 | 3.2 |
| AMD Radeon PRO W7900 | Q8_0 | fits | 48 tok/s | £5,785 | 8.3 |
| Lenovo ThinkStation PGX GB10 128GB | Q8_0 | fits | 17 tok/s | £5,944 | 2.9 |
| NVIDIA RTX PRO 5000 Blackwell 48GB | Q8_0 | fits | 84 tok/s | £7,300 | 11.5 |
| Mac Studio M3 Ultra 256GB | Q8_0 | fits | 54 tok/s | £8,249 | 6.5 |
| NVIDIA RTX A6000 | Q8_0 | fits | 48 tok/s | £9,000 | 5.4 |
| NVIDIA RTX 6000 Ada Generation | Q8_0 | fits | 60 tok/s | £11,263 | 5.3 |
| NVIDIA RTX PRO 6000 Blackwell | Q8_0 | fits | 112 tok/s | £13,587 | 8.3 |
| Mac Studio M4 Max 128GB | Q8_0 | fits | 36 tok/s | – | – |
| Framework Desktop Ryzen AI Max+ 395 128GB | Q8_0 | fits | 14 tok/s | – | – |
| Mac Studio M3 Ultra 512GB | Q8_0 | fits | 54 tok/s | – | – |
| NVIDIA DGX Spark 128GB | Q8_0 | fits | 17 tok/s | – | – |
| Mac mini M4 Pro 48GB | Q8_0 | fits | 18 tok/s | – | – |
| Framework Desktop Ryzen AI Max+ 395 64GB | Q8_0 | fits | 14 tok/s | – | – |
| NVIDIA RTX PRO 4000 Blackwell | Q5_K_M | fits | 55 tok/s | – | – |
| NVIDIA RTX PRO 4000 Blackwell SFF Edition | Q5_K_M | fits | 35 tok/s | – | – |
| Minisforum MS-S1 Max Ryzen AI Max+ 395 128GB | Q8_0 | fits | 14 tok/s | – | – |
| NVIDIA RTX PRO 5000 Blackwell 72GB | Q8_0 | fits | 84 tok/s | – | – |
| Dell Pro Max with GB10 128GB | Q8_0 | fits | 17 tok/s | – | – |
| Beelink GTR9 Pro Ryzen AI Max+ 395 128GB | Q8_0 | fits | 14 tok/s | – | – |
| Intel Arc A770 16GB | Q4_K_M | offload | 18 tok/s | £364 | 50.6 |
| NVIDIA GeForce RTX 4060 | Q4_K_M | offload | 10 tok/s | £379 | 26.9 |
| NVIDIA GeForce RTX 5050 | Q4_K_M | offload | 10 tok/s | £380 | 27.4 |
| Intel Arc B570 | Q4_K_M | offload | 10 tok/s | £396 | 26.3 |
| NVIDIA GeForce RTX 5060 | Q4_K_M | offload | 11 tok/s | £400 | 27.0 |
| NVIDIA GeForce RTX 3060 12GB | Q4_K_M | offload | 14 tok/s | £400 | 33.8 |
| NVIDIA GeForce RTX 4060 Ti 8GB | Q4_K_M | offload | 10 tok/s | £407 | 25.1 |
| NVIDIA GeForce RTX 5060 Ti 8GB | Q4_K_M | offload | 11 tok/s | £475 | 22.7 |
| NVIDIA GeForce RTX 4070 | Q4_K_M | offload | 15 tok/s | £568 | 25.5 |
| NVIDIA GeForce RTX 3080 10GB | Q4_K_M | offload | 13 tok/s | £591 | 22.0 |
| AMD Radeon RX 9060 XT 16GB | Q4_K_M | offload | 16 tok/s | £630 | 26.0 |
| AMD Radeon RX 9070 | Q4_K_M | offload | 22 tok/s | £680 | 31.9 |
| NVIDIA GeForce RTX 5060 Ti 16GB | Q4_K_M | offload | 21 tok/s | £690 | 30.0 |
| Intel Arc B580 | Q4_K_M | offload | 12 tok/s | £700 | 17.4 |
| NVIDIA GeForce RTX 5070 | Q4_K_M | offload | 15 tok/s | £700 | 21.7 |
| Intel Arc Pro B50 | Q4_K_M | offload | 12 tok/s | £744 | 15.7 |
| AMD Radeon RX 9070 XT | Q4_K_M | offload | 22 tok/s | £750 | 28.9 |
| AMD Radeon RX 7800 XT | Q4_K_M | offload | 22 tok/s | £800 | 27.0 |
| AMD Radeon RX 7900 XT | Q4_K_M | offload | 53 tok/s | £829 | 64.3 |
| NVIDIA RTX PRO 2000 Blackwell | Q4_K_M | offload | 17 tok/s | £850 | 19.9 |
| NVIDIA GeForce RTX 4060 Ti 16GB | Q4_K_M | offload | 17 tok/s | £977 | 17.3 |
| NVIDIA GeForce RTX 4070 Super | Q4_K_M | offload | 15 tok/s | £983 | 14.8 |
| NVIDIA GeForce RTX 5070 Ti | Q4_K_M | offload | 26 tok/s | £1,000 | 25.9 |
| NVIDIA GeForce RTX 4070 Ti Super | Q4_K_M | offload | 24 tok/s | £1,329 | 18.0 |
| NVIDIA GeForce RTX 4080 Super | Q4_K_M | offload | 25 tok/s | £1,430 | 17.1 |
| NVIDIA GeForce RTX 5080 | Q4_K_M | offload | 26 tok/s | £1,470 | 17.9 |
| AMD Radeon RX 7600 XT | Q4_K_M | offload | 16 tok/s | – | – |
1 other card or machine 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 20 GB at 32k, 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 the UK that runs GLM 4.7 Flash fully in memory at 32k context is the NVIDIA Tesla P40, £780 at Amazon, at about 28 tok/s (estimated). The best value is the NVIDIA GeForce RTX 3090 (about 76 tok/s for £1,330). The fastest we price is the NVIDIA GeForce RTX 5090, at about 133 tok/s.
- What is the cheapest way to run GLM 4.7 Flash in the UK today?
- The NVIDIA Tesla P40, £280 used at eBay, in stock: it runs GLM 4.7 Flash at Q5_K_M fully in memory at 32k context, at about 28 tok/s (estimated).
- Can I run GLM 4.7 Flash on a 16 GB GPU?
- Only partly: at 32k context it does not fit in 16 GB, so part of it runs from system RAM and it slows to about 18 tok/s on the Intel Arc A770 16GB (estimated).
- Can I run GLM 4.7 Flash on a 24 GB GPU?
- Yes: at Q5_K_M it fits fully in 24 GB at 32k context. On the NVIDIA GeForce RTX 3090 Ti it runs at about 82 tok/s (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.