VRAMGlass contains affiliate links. As an eBay Partner, we may be compensated if you make a purchase. As an Amazon Associate I earn from qualifying purchases.We may earn from eBay and Amazon links.Learn more

GPUs tracked64Price history94 daysPrice points (24h)29,155 pointsBiggest 24h dropTesla V100 16GB-6.1%Biggest 24h riseInstinct MI100+12.8%Updated
$ USD

Run GLM 4.7 Flash Locally: VRAM & GPU Requirements

GLM 4.7 Flash, Zhipu's 30B MoE from January 2026, runs 4-bit on a single 24GB GPU at about 135 tokens/s with context up to about 115K. It uses only 3B parameters per token. Zhipu positions it as a lightweight option for 30B-class deployment under an MIT license. On a 16GB GPU, you either drop to 2-bit or offload some experts to system RAM.

GLM 4.7 Flash details

  • Min VRAM at 4-bit (8K context)20 GB
  • 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?

The table below assumes all experts stay in VRAM with no RAM offloading. If you are short on VRAM, you can offload experts to RAM; see the complete builds below.

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: a 24GB card is the sweet spot for GLM 4.7 Flash, as 4-bit with 8K context takes about 20 GB of VRAM and fits on an RTX 3090, RTX 4090 or RX 7900 XTX. Touching only 3B parameters per token, it reaches roughly 130 tokens/s with room for about 115K context, and its compact context storage lets a 32GB RTX 5090 open the full window. 16GB GPUs can't hold 4-bit and have to drop to 2-bit or 3-bit with shorter context, though Unsloth recommends staying at 4-bit or above when possible.

The table below assumes all experts stay in VRAM with no RAM offloading. If you are short on VRAM, you can offload experts to RAM; see the complete builds below.

eBay
DevicePriceSpeed t/sMax context
Tesla V100 32GB32 GB$1,37813 listings130.4198K
Radeon RX 7900 XTX24 GB$1,40027 listings133.7115K
GeForce RTX 309024 GB$1,992116 listings132.4115K
GeForce RTX 409024 GB$3,82574 listings136.1115K
Ryzen AI Max+ 395 128GBWhole system · 128 GB$4,02531 listings66.1198K
RTX A600048 GB$4,89925 listings122.3198K
Mac Studio M5 Ultra 96GBWhole system · 96 GB$6,7995 listings145.5198K
MacBook Pro M5 Max 128GBWhole system · 128 GB$7,00029 listings110.5198K
GeForce RTX 509032 GB$7,385128 listings161.5198K
DGX Spark 128GBWhole system · 128 GB$7,90037 listings69.1198K
RTX PRO 600096 GB$18,60020 listings161.5198K

Only common GPUs and systems are listed, from cheapest to most expensive.

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

To run GLM 4.7 Flash at 4-bit on a 16GB GPU, offload some of the experts to system RAM. Paired with a 16GB Tesla V100, about 37 of the 47 layers of experts stay in VRAM and only 10 move to RAM, so speed stays high at about 74 tokens/s on a DDR4 desktop and about 94 on DDR5. 8-bit works the same way via RAM offload, 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
$973
RAM
32 GB DDR5-60002 × 16 GB sticks
$460
CPU
AMD Ryzen 7 77008 cores / 16 threads · 2-channel
$189
Board
Gigabyte B650 EAGLE AX4 DIMM slots
$119
PSU
Corsair RM750e750 W
$70
Reference build price$1,811

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