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 the US that runs GLM 4.7 Flash fully in memory at 128k context is the AMD Radeon AI PRO R9700, $1,700 at Amazon, at about 21 tok/s (estimated).

Updated . Speeds are estimates; how they are worked out.

Cheapest way to run it in the US 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.

$1,700

In stock, checked

What to run it on in the US

Fully in memory at 128k context, priced at retailers today.

All hardware that runs it

Everything we price, best value first. Two cards split the model by layers.

HardwareQuantFitsDecodePricetok/s per 1,000
AMD Radeon AI PRO R9700Q6_Kfits21 tok/s$1,70012.1
Intel Arc Pro B70Q6_Kfits16 tok/s$1,8009.0
Mac mini M4 Pro 48GBQ6_Kfits10 tok/s$2,0255.1
Mac mini M4 Pro 64GBQ8_0fits10 tok/s$2,3994.0
GMKtec EVO-X2 Ryzen AI Max+ 395 128GBQ8_0fits8 tok/s$3,5002.1
Mac Studio M4 Max 64GBQ8_0fits19 tok/s$3,5005.4
Beelink GTR9 Pro Ryzen AI Max+ 395 128GBQ8_0fits8 tok/s$3,8002.0
Minisforum MS-S1 Max Ryzen AI Max+ 395 128GBQ8_0fits8 tok/s$3,9591.9
NVIDIA RTX PRO 4500 BlackwellQ6_Kfits32 tok/s$4,0008.1
AMD Radeon PRO W7900Q8_0fits25 tok/s$4,0006.3
Mac Studio M3 Ultra 96GBQ8_0fits28 tok/s$4,7586.0
Mac Studio M4 Max 128GBQ8_0fits19 tok/s$5,4003.5
NVIDIA RTX A6000Q8_0fits25 tok/s$5,9894.2
ASUS Ascent GX10 128GBQ8_0fits9 tok/s$6,1001.5
NVIDIA GeForce RTX 5090Q6_Kfits65 tok/s$6,4959.9
NVIDIA RTX PRO 5000 Blackwell 48GBQ8_0fits44 tok/s$6,9996.3
NVIDIA DGX Spark 128GBQ8_0fits9 tok/s$7,8001.2
NVIDIA RTX 6000 Ada GenerationQ8_0fits32 tok/s$8,4953.7
NVIDIA RTX PRO 5000 Blackwell 72GBQ8_0fits44 tok/s$8,4995.2
Mac Studio M3 Ultra 256GBQ8_0fits28 tok/s$9,5003.0
NVIDIA RTX PRO 6000 BlackwellQ8_0fits59 tok/s$16,0003.7
Mac Studio M3 Ultra 512GBQ8_0fits28 tok/s$30,0000.9
Framework Desktop Ryzen AI Max+ 395 128GBQ8_0fits8 tok/s––
Framework Desktop Ryzen AI Max+ 395 64GBQ8_0fits8 tok/s––
Lenovo ThinkStation PGX GB10 128GBQ8_0fits9 tok/s––
Dell Pro Max with GB10 128GBQ8_0fits9 tok/s––
Intel Arc B570Q4_K_Moffload4 tok/s$30413.5
NVIDIA RTX PRO 4000 BlackwellQ4_K_Moffload18 tok/s$33952.2
NVIDIA GeForce RTX 5050Q4_K_Moffload4 tok/s$35911.7
NVIDIA GeForce RTX 3060 12GBQ4_K_Moffload5 tok/s$38812.9
NVIDIA GeForce RTX 4060Q4_K_Moffload4 tok/s$40010.3
Intel Arc B580Q4_K_Moffload5 tok/s$42510.6
NVIDIA GeForce RTX 5060Q4_K_Moffload4 tok/s$4359.9
NVIDIA Tesla P40Q4_K_Moffload11 tok/s$44924.9
NVIDIA GeForce RTX 3080 10GBQ4_K_Moffload5 tok/s$5009.6
NVIDIA GeForce RTX 5060 Ti 8GBQ4_K_Moffload4 tok/s$5118.4
NVIDIA GeForce RTX 4060 Ti 8GBQ4_K_Moffload4 tok/s$5367.6
NVIDIA GeForce RTX 4070Q4_K_Moffload5 tok/s$5709.1
Intel Arc Pro B50Q4_K_Moffload5 tok/s$6007.5
NVIDIA GeForce RTX 5060 Ti 16GBQ4_K_Moffload7 tok/s$61810.5
AMD Radeon RX 9060 XT 16GBQ4_K_Moffload6 tok/s$7207.9
Intel Arc A770 16GBQ4_K_Moffload6 tok/s$7457.8
AMD Radeon RX 7800 XTQ4_K_Moffload7 tok/s$7578.7
NVIDIA RTX PRO 2000 BlackwellQ4_K_Moffload6 tok/s$7957.3
NVIDIA GeForce RTX 4070 SuperQ4_K_Moffload5 tok/s$8006.5
AMD Radeon RX 9070 XTQ4_K_Moffload7 tok/s$8108.3
AMD Radeon RX 9070Q4_K_Moffload7 tok/s$8607.8
AMD Radeon RX 7900 XTQ4_K_Moffload10 tok/s$88011.1
Intel Arc Pro B60Q4_K_Moffload10 tok/s$89911.6
NVIDIA GeForce RTX 5070Q4_K_Moffload5 tok/s$9006.0
NVIDIA GeForce RTX 4060 Ti 16GBQ4_K_Moffload6 tok/s$9186.3
AMD Radeon RX 7600 XTQ4_K_Moffload6 tok/s$9595.7
NVIDIA GeForce RTX 4070 Ti SuperQ4_K_Moffload7 tok/s$1,1406.1
NVIDIA GeForce RTX 5070 TiQ4_K_Moffload7 tok/s$1,3005.6
AMD Radeon RX 7900 XTXQ4_K_Moffload19 tok/s$1,40013.6
NVIDIA GeForce RTX 4080 SuperQ4_K_Moffload7 tok/s$1,4694.8
NVIDIA GeForce RTX 5080Q4_K_Moffload7 tok/s$1,9003.8
NVIDIA GeForce RTX 3090Q4_K_Moffload22 tok/s$1,97910.9
NVIDIA GeForce RTX 3090 TiQ4_K_Moffload22 tok/s$2,03311.0
NVIDIA GeForce RTX 4090Q4_K_Moffload22 tok/s$2,07310.8
NVIDIA RTX PRO 4000 Blackwell SFF EditionQ4_K_Moffload13 tok/s$2,9804.4

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).

QuantFile@8k@32k@64k@128k
Q4_K_Mgguf17.1 GB18.2 GB19.6 GB21.4 GB25.1 GB
mlx-4bitmlx15.7 GB16.9 GB18.2 GB20.1 GB23.8 GB
Q5_K_Mgguf19.9 GB21.1 GB22.5 GB24.3 GB28.0 GB
Q6_Kgguf23.0 GB24.2 GB25.5 GB27.4 GB31.1 GB
mlx-8bitmlx29.6 GB30.8 GB32.2 GB34.0 GB37.7 GB
Q8_0gguf29.7 GB30.8 GB32.2 GB34.0 GB37.7 GB

Run it

Copy a command for the runtime you use.

  • Q4_K_M
    • Ollamaollama run hf.co/unsloth/GLM-4.7-Flash-GGUF:Q4_K_M
    • LM Studiolms get unsloth/GLM-4.7-Flash-GGUF@q4_k_m
    • llama.cppllama-server -hf unsloth/GLM-4.7-Flash-GGUF:Q4_K_M
  • mlx-4bit
    • LM Studiolms get mlx-community/GLM-4.7-Flash-4bit
    • MLXmlx_lm.server --model mlx-community/GLM-4.7-Flash-4bit
  • Q5_K_M
    • Ollamaollama run hf.co/unsloth/GLM-4.7-Flash-GGUF:Q5_K_M
    • LM Studiolms get unsloth/GLM-4.7-Flash-GGUF@q5_k_m
    • llama.cppllama-server -hf unsloth/GLM-4.7-Flash-GGUF:Q5_K_M
  • Q6_K
    • Ollamaollama run hf.co/unsloth/GLM-4.7-Flash-GGUF:Q6_K
    • LM Studiolms get unsloth/GLM-4.7-Flash-GGUF@q6_k
    • llama.cppllama-server -hf unsloth/GLM-4.7-Flash-GGUF:Q6_K
  • mlx-8bit
    • LM Studiolms get mlx-community/GLM-4.7-Flash-8bit
    • MLXmlx_lm.server --model mlx-community/GLM-4.7-Flash-8bit
  • Q8_0
    • Ollamaollama run hf.co/unsloth/GLM-4.7-Flash-GGUF:Q8_0
    • LM Studiolms get unsloth/GLM-4.7-Flash-GGUF@q8_0
    • llama.cppllama-server -hf unsloth/GLM-4.7-Flash-GGUF:Q8_0

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 the US that runs GLM 4.7 Flash fully in memory at 128k context is the AMD Radeon AI PRO R9700, $1,700 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 the US today?
The AMD Radeon AI PRO R9700, $1,700 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 5 tok/s on the Intel Arc Pro B50 (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 18 tok/s on the NVIDIA RTX PRO 4000 Blackwell (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.

More hardware for local AI