HS
HardwareStack

Can I run GLM-4.7-Flash 30B-A3B locally?

Yes. At Q4 with 8K context, GLM-4.7-Flash 30B-A3B needs about 19 GB, so it runs entirely on any GPU with 22 GB of VRAM or more, starting with the NVIDIA GeForce RTX 4090 D.

Measured speed on my RTX 5060 Ti 16 GB

ContextWritingReading the promptFirst word afterCalculator estimate
8K51 tok/s708 tok/s4.6 s~53 tok/s
32K46 tok/s613 tok/s5.3 s~46 tok/s
64K40 tok/s525 tok/s6.2 s~40 tok/s

glm-4.7-flash in Ollama 0.40.11 on AMD Ryzen 7 5700X, 48 GB DDR4-3200, with the desktop using about 2 GB of VRAM. Median of 3 runs: a prompt of 3,276 tokens of code, then 256 tokens written. Benchmark script.

Context is the window reserved, not filled; a nearly full window is slower. Where the window doesn't fit in VRAM, part of GLM-4.7-Flash 30B-A3B runs on the CPU. “First word after” is the time to read the whole test prompt. A coding agent resends its files every turn, and Ollama reuses the part it has already read, so later turns mostly wait for the new part.

Memory needed by compression and context length

Compression4K context8K context32K context128K context198K context
Q4
The most common download. Small quality loss.
19 GB19 GB20 GB25 GB29 GB
Q5
Very close to full quality.
22 GB22 GB24 GB29 GB32 GB
Q8
Practically indistinguishable from FP16 at about half the size.
33 GB33 GB34 GB39 GB43 GB
FP16
Uncompressed. Reference quality, largest size.
61 GB62 GB63 GB68 GB71 GB

Total memory: model weights, context (KV cache) and runtime overhead. To run entirely on a GPU that also drives your screen, VRAM must be about 2 GB larger than this.

GPUs that run GLM-4.7-Flash 30B-A3B entirely on the GPU

  • NVIDIA GeForce RTX 4090 D

    24 GB · ~246 tok/s at Q4

    Amazon
  • NVIDIA GeForce RTX 3090 Ti

    24 GB · ~246 tok/s at Q4

    Amazon
  • NVIDIA GeForce RTX 3090

    24 GB · ~233 tok/s at Q4

    Amazon
  • NVIDIA GeForce RTX 4090

    24 GB · ~246 tok/s at Q4

    Amazon
  • AMD Radeon RX 7900 XTX

    24 GB · ~237 tok/s at Q4

    Amazon
  • NVIDIA GeForce RTX 5090 D

    32 GB · ~368 tok/s at Q4

    Amazon
  • NVIDIA GeForce RTX 5090

    32 GB · ~368 tok/s at Q4

    Amazon
  • NVIDIA GeForce RTX 5090 D v2

    32 GB · — at Q4

    Amazon

Model facts

Parameters
31.2B (3B active, mixture-of-experts)
Max context
198K tokens
License
MIT
Released
Jan 2026
View on Hugging Face

Agentic coding test

Levels passed: 3 of 5 alone, 5 of 5 with tests written first, from my own ASO experiment on an RTX 5060 Ti 16 GB. One small coding test: 5 tasks, one run each. It's a single data point, not a ranking of the models.

See the result Compare all 5 tested models →

Check it with your hardware

Change the compression, context length and system RAM in the calculator.

Open calculator