VRAMGlass contains affiliate links. As an eBay Partner, we may be compensated if you make a purchase.As an eBay Partner, we may be compensated.Learn more

GPUs tracked57Price history49 daysPrice points (24h)43,400 pointsBiggest 24h dropGeForce RTX 3060 12GB-11.1%Biggest 24h riseCMP 170HX 40GB+19.8%Updated
$ USD

How to Deploy GLM 4.7 Flash Locally

GLM 4.7 Flash is a 30B MoE that Zhipu released in January 2026, and it uses only 3B parameters per token, so it runs fast. On a single 24GB card, 4-bit runs at about 135 tokens/s with context up to about 115K. Zhipu positions it as a lightweight option for 30B-class deployment, and it is MIT licensed. On a 16GB card, you either drop to 2-bit or move some of the experts into system RAM.

GLM 4.7 Flash details

  • Min VRAM at 4-bit20 GB · 8K
  • Parameters30B
  • Active params3B
  • Max context198K
Architecture
MoE
Experts offloaded
4 GB VRAM + 18 GB RAM
License
MIT
Launch date
Jan 19, 2026
Vendor
Z.ai / Zhipu AI
Hugging Face repo
zai-org/GLM-4.7-Flash
NVFP4 repo (Blackwell)
unsloth/GLM-4.7-Flash-NVFP4
Ollama tag
glm-4.7-flash
Layers
47
Hidden size
2,048
KV heads
20
Head dim
256

How much VRAM does GLM 4.7 Flash need for local deployment?

QuantizationWeightsGB8K contextGB32K contextGB128K contextGB198K context (max)GB
1-bit9.8GGUF11.312.61821.9
2-bit11.9GGUF13.414.720.124
3-bit13.8GGUF15.316.62225.9
4-bit18.3GGUF19.821.126.530.4
5-bit21.4GGUF22.924.229.633.5
8-bit31.8GGUF33.334.64043.9
BF16/FP1659.9GGUF61.462.768.172

Full calculation rules are on the Methodology page.

Can a single GPU run GLM 4.7 Flash?

Easily, and a 24GB card is the sweet spot. 4-bit with 8K of context is about 20 GB, so the RTX 3090, RTX 4090 and RX 7900 XTX all take it, and because each token touches only 3B parameters it flies along at roughly 130 tokens/s with room for about 115K of context. It stores context very compactly, so a longer window adds little memory, and a 32GB RTX 5090 can open the full window. 16GB cards can't hold 4-bit and have to drop to 2-bit or 3-bit. Speed stays high, but context gets shorter, and Unsloth recommends not going below 4-bit if you can avoid it.

eBay
DevicePriceSpeed t/sMax context
Tesla V100 32GB32 GB$89518 listings130.4198K
Radeon RX 7900 XTX24 GB$1,25029 listings133.7115K
GeForce RTX 309024 GB$1,799107 listings132.4115K
GeForce RTX 409024 GB$3,75868 listings136.1115K
Ryzen AI Max+ 395 128GBWhole system · 128 GB$4,46420 listings66.1198K
RTX A600048 GB$4,89916 listings122.3198K
Mac Studio M5 Ultra 96GBWhole system · 96 GB$7,27412 listings145.5198K
MacBook Pro M5 Max 128GBWhole system · 128 GB$7,54920 listings110.5198K
DGX Spark 128GBWhole system · 128 GB$8,24022 listings69.1198K
GeForce RTX 509032 GB$8,395123 listings161.5198K
RTX PRO 600096 GB$22,50011 listings161.5198K

Only common GPUs and systems are listed, one set for models under 50B and another for larger ones, sorted by price from low to high.

What PC or server build do you need to run GLM 4.7 Flash locally?

To run 4-bit on a 16GB card, move some of the experts into system RAM. The table below pairs it with a 16GB Tesla V100: about 37 of the 47 layers of experts stay in VRAM and only 10 go to RAM, so speed doesn't drop much, at about 74 tokens/s on a DDR4 desktop and about 94 on DDR5. 8-bit works the same way, at about 27 tokens/s on a DDR4 desktop and about 76 on an 8-channel DDR4 server with an RTX 3090.

eBay

GeForce RTX 5070 + Desktop DDR5

Home PC
Generation speed66.8t/s
Memory bandwidth96GB/s
GPU
GeForce RTX 507025 / 47 expert layers in 12 GB VRAM
$899
RAM
32 GB DDR5-60002 × 16 GB sticks
$450
CPU
AMD Ryzen 7 77008 cores / 16 threads · 2-channel
$212
Board
Gigabyte B650 EAGLE AX4 DIMM slots
$114
PSU
Corsair RM750e750 W
$70
Reference build price$1,745

Detailed calculation rules are on the Methodology page.

As an eBay Partner, VRAMGlass may be compensated if you buy through the eBay links on this page. The price you pay stays the same.

What to know before running GLM 4.7 Flash locally

  1. Which quantization to pick

    On a 24GB card, use 4-bit (about 18 GB); 5-bit, at about 21 GB, also fits, but with a good chunk less context. On a 16GB card, use 2-bit or 3-bit (about 12 GB and 14 GB). Unsloth recommends at least 4-bit.

  2. Official sampling parameters

    For general tasks, temperature 1.0 and top_p 0.95; for coding and terminal tasks, temperature 0.7 and top_p 1.0. Turn the repetition penalty off (set it to 1.0). In llama.cpp, also set min_p to 0.01, since its default of 0.05 is on the high side.

  3. Re-download GGUFs from before late January

    On January 21, 2026, llama.cpp fixed a bug where the routing function was written wrong (it should have been sigmoid, not softmax). Before the fix, the model repeated itself and output quality was poor, and Unsloth re-uploaded its GGUFs afterward. If you downloaded files before then, download them again.

  4. Ollama and MTP

    Ollama's official library has glm-4.7-flash with three tags: q4_K_M, q8_0 and bf16. Unsloth's docs still advise against running their GGUFs in Ollama because the chat template may be incompatible, so if you use Ollama, use the official library version. llama.cpp has supported its MTP speculative decoding since August 2026 (PR #24868); the PR author tested at 8-bit and measured an average speedup of about 1.18x with a draft length of 1.

  5. Long context is light

    Its attention design (MLA) compresses the context cache, so long context takes little VRAM: at 4-bit, going from 8K to 128K adds only about 7 GB, and the full 198K comes to about 30 GB in total.

Launch commands

Ollama

  • Windows
  • macOS
  • Linux
Terminal
ollama run glm-4.7-flash

llama.cpp

  • NVIDIA
  • AMD
  • Mac
  • CPU
All on GPU
Terminal
llama-server -hf unsloth/GLM-4.7-Flash-GGUF:Q4_K_M -c 8192
MoE offloading

Short on VRAM? Add --cpu-moe to keep the routed experts in system RAM (about 18 GB needed).

Terminal
llama-server -hf unsloth/GLM-4.7-Flash-GGUF:Q4_K_M -c 8192 -ngl 99 \
  --cpu-moe

vLLM

  • Linux
  • NVIDIA
  • AMD
Original weights
Terminal
vllm serve zai-org/GLM-4.7-Flash
NVFP4 · Blackwell

Blackwell GPUs (RTX 50 series, RTX PRO 6000, B200) run NVFP4 weights natively, at about 30% of the original size.

Terminal
vllm serve unsloth/GLM-4.7-Flash-NVFP4

MLX

  • Apple Silicon

On a Mac, pip install mlx-lm first; this command downloads the MLX weights from Hugging Face and starts an OpenAI-compatible server.

Terminal
mlx_lm.server --model mlx-community/GLM-4.7-Flash-4bit

File names follow that week's model-library snapshot; the definitions are in the methodology. Methodology

Other models in the GLM family

ModelTotal paramsActive params4-bit size
GLM 4.5 AirMoE106B12B73 GB
GLM 5.3 FlashMoE320B18B199.7 GB
GLM 5.2MoE744B40B465.8 GB
GLM 5.3MoE744B40B467.3 GB

About GLM