llmrun
Z.aiGLM 4Glm4MoeForCausalLM

GLM 4.7 — Hardware Requirements & GPU Compatibility

ChatFunctions

GLM 4.7 is an earlier generation of Zhipu AI's GLM foundation model series, featuring a mixture-of-experts architecture with approximately 358 billion total parameters. It delivers strong performance on reasoning, language understanding, and bilingual Chinese-English tasks while being significantly more manageable to run locally than its GLM 5 successor. For users with multi-GPU setups, GLM 4.7 offers a practical balance between capability and hardware requirements within the GLM model family.

358.3B params · MoE36B active203K contextMIT68.4K downloads2.1K likes21.6K quant downloads

GLM 4.7 runs on a 256 GB+ Mac or a datacenter GPU

Best local pick → Mac Studio (M3 Ultra, 256GB) · Q4_K_M · 217.9 GB · ~18 tok/s

Macs from128 GB IQ2_M · ~25 tok/s

Score 109.1#34 of 106 open#21 of 89 that fit ≤256 GBMIT

Not set up for it?

Reference GPU · RTX 4090 24 GB

Estimates, ±20% · how we estimate

Run GLM 4.7

One recommended way. Every other method, OS and quant is in the step-by-step guide.Each way opens a step-by-step guide for your OS and quant.

Recommended

Ollama
one command · needs Ollama installed
$ollama run hf.co/unsloth/GLM-4.7-GGUF:Q4_K_M

Q4_K_M runs on one Instinct MI325X 256 GB · 16K context

Download: Q4_K_M/GLM-4.7-Q4_K_M-00001-of-00005.gguf216.46 GB + 4 partsunsloth

install, OS, other quants

Ways to runOther ways

each opens step-by-step

Run in cloud

Rent 4× H100 SXM · Q4_K_M

Estimated hourly price
~$10.76/hr
est., whole server
GPUs
4 GPUs
320 GB of VRAM

How Much VRAM Does GLM 4.7 Need?

Select a quantization level; the listed hardware adheres to it.

QuantizationVRAM+32KRuns on
152.9 GB157.7 GB2-bit · K-quant — 2-bit quantization with K-quant improvementsRuns on B200 192 GB
157.4 GB162.2 GB3-bit small — 3-bit small quantizationRuns on B200 192 GB
175.3 GB180.1 GB3-bit medium — 3-bit medium quantizationRuns on B200 192 GB
179.8 GB184.6 GB4-bit · legacy — 4-bit legacy quantizationRuns on B200 192 GB
215.6 GB220.4 GB4-bit medium — 4-bit medium quantization — most popular sweet spotRuns on Instinct MI325X 256 GB
255.9 GB260.8 GB5-bit medium — 5-bit medium quantization — good quality/size tradeoffRuns on Instinct MI350X 288 GB
296.3 GB301.1 GB6-bit, very good — 6-bit quantization, very good qualityRuns on 5× H100 SXM 80 GB
359.0 GB363.8 GB8-bit, near-lossless — 8-bit quantization, near-losslessRuns on 6× H100 SXM 80 GB

Selected Q4_K_M

4-bit medium quantization

217.9GBat 16K context

Weights
215.0 GB
KV cache
2.6 GB
Overhead
0.3 GB

Server-class: ~217.9 GB at 16K context · one Instinct MI325X 256 GB

Which Hardware Can Run GLM 4.7?

Q4_K_M · 215.6 GB

GLM 4.7 (Q4_K_M) requires 215.6 GB of VRAM to load the model weights. For comfortable inference with headroom for KV cache and system overhead, 281+ GB is recommended. Using the full 203K context window can add up to 31.5 GB, bringing total usage to 247.1 GB. No consumer GPU has enough memory. 2 devices with unified memory can run GLM 4.7, including Mac Studio (M3 Ultra, 512GB), Mac Studio (M3 Ultra, 256GB).

By VRAM tier · typical GPUs and Macs at Q4_K_M

Consumer GPUs (up to 32 GB) and Macs up to 96 GB: too small for this model (needs ≥ 101.4 GB)8 GB tier →12 GB tier →16 GB tier →24 GB tier →Macs →

How good is GLM 4.7?

The llmrun Score merges 13 public benchmark boards into a single figure, where 100 represents the average for open models.

Score vs VRAM in the ≤256 GB tier

  • GLM 4.7
  • Other models
  • Best Score for its VRAM

#21 of 89 that fit ≤256 GB

Each dot is a model at the best quant that fits ≤256 GB. The line steps up to the best Score available at each amount of VRAM; a dot below it is beaten by a model that needs no more memory.

Full ≤256 GB ranking →

Benchmarks

The 6 boards that weigh most in the llmrun Score, of 15 with a result for this model; badges show who ran the test.

  • GPQA Diamond

    Epoch AI · Dec 2025Independent

    83.3%

    #26/100 open

    Independent
  • LMArena Text

    LMArena · Oct 2026Arena

    1441.3

    #19/188 open

    Arena
  • AIME 2024/2025

    Epoch AI · Dec 2025Independent

    83.3%

    #24/88 open

    Independent
  • Terminal-Bench

    Epoch AI · Dec 2025Lab-reported

    33.4%

    #8/16 open

    Lab-reported
  • LMArena WebDev

    LMArena · Oct 2026Arena

    1435.2

    #27/55 open

    Arena
  • SciCode

    Epoch AI · Dec 2025Lab-reported

    45.1%

    #26/72 open

    Lab-reported

In the ≤256 GB class

89 models fit ≤256 GB

Same Score, only models that fit ≤256 GB at their best quant: the ranking a ≤256 GB owner actually chooses from.

  1. #1

    134.4

    ~107 tok/s · 229.5 GB

  2. #2

    131.9

    ~83 tok/s · 186.5 GB

  3. #3

    129.4

    ~108 tok/s · 210.4 GB

  4. #4

    128.0

    ~48 tok/s · 191.4 GB

  5. #5

    127.6

    ~76 tok/s · 183.0 GB

  6. #6

    124.1

    ~83 tok/s · 205.2 GB

Alternatives to GLM 4.7

GLM 4 family · 18 models →

Official models with an llmrun Score, each answering one question; sizes are each model's default quant (usually Q4_K_M) with a 16K-token context.

Similar models

10
ModelScoreVRAMWhy it is similar
DeepSeek V4 Flash 0731DeepSeek127.6183 GBsimilar score
GLM 5.3 FlashZ.ai124.1205.2 GBsimilar score
Beam 1.0 501B A23Breflection119.5304 GBsimilar score
DeepSeek V4 FlashDeepSeek115.3175.1 GBsimilar score
Qwen3.5 397B A17BAlibaba112.8242.6 GBsimilar score
MiniMax M3MiniMax112.6258 GBsimilar score
MiniMax M2.5MiniMax111.8139.6 GBsimilar score
Qwen3.6 27BAlibaba111.217.9 GBsimilar score
DeepSeek V3.2DeepSeek110.4412.7 GBsimilar score
NVIDIA Nemotron 3 Ultra 550B A55B BF16NVIDIA109.7378.4 GBsimilar score

Specifications

Publisher
Z.ai
Family
GLM 4
Parameters
358.3B
Active parameters
35.6B per token
Architecture
Glm4MoeForCausalLM
Context Length
202,752 tokens
Vocabulary Size
151,552
Release Date
2025-12-22
License
MIT

Frequently Asked Questions

How much VRAM does GLM 4.7 need?

GLM 4.7 requires 215.6 GB of VRAM at Q4_K_M, or 717.3 GB at BF16. Full 203K context adds up to 31.5 GB (247.1 GB total).

VRAM = Weights + KV Cache + Overhead

Weights = 358.3B × 4.8 bits ÷ 8 = 215 GB

KV Cache + Overhead ≈ 0.6 GB (at 2K context + ~0.3 GB framework)

Fit ratings and hardware model lists check this model with room for a 16K-token context, which needs a little more memory.

KV Cache + Overhead ≈ 32.1 GB (at full 203K context)

VRAM usage by quantization

215.6 GB
247.1 GB

Learn more about VRAM estimation →

Can NVIDIA GeForce RTX 5090 run GLM 4.7?

No — GLM 4.7 requires at least 99.2 GB at IQ2_XXS, which exceeds the NVIDIA GeForce RTX 5090's 32 GB of VRAM.

What's the best quantization for GLM 4.7?

For GLM 4.7, Q4_K_M (215.6 GB) offers the best balance of quality and VRAM usage. Q4_K_L (220.1 GB) provides better quality if you have the VRAM. The smallest option is IQ2_XXS at 99.2 GB.

VRAM requirement by quantization

IQ2_XXS
99.2 GB
IQ3_S
152.9 GB
Q3_K_L
184.3 GB
Q4_K_M ★
215.6 GB
Q4_K_L
220.1 GB
BF16
717.3 GB

★ Recommended — best balance of quality and VRAM usage.

Learn more about quantization →

Can I run GLM 4.7 on a Mac?

Yes — Mac Pro M2 Ultra (128 GB) and 14 other Macs can run GLM 4.7, the smallest at IQ2_M. Apple Silicon uses unified memory, so the model shares RAM with the system. At Q4_K_M you need at least 215.6 GB of usable unified memory (RAM minus macOS overhead), from Mac Studio (M3 Ultra, 256GB).

Can I run GLM 4.7 locally?

Yes — GLM 4.7 can run locally on consumer hardware. Popular tools include Ollama, LM Studio, and llama.cpp.

How fast is GLM 4.7?

At Q4_K_M, GLM 4.7 can reach ~44 tok/s on AMD Instinct MI350X. Speed depends mainly on GPU memory bandwidth. Real-world results typically within ±20%.

tok/s = 1000 ÷ (active GB ÷ (bandwidth GB/s × efficiency) × 1000 + layers × routing ms)

Mixture-of-Experts: just the active experts get read for each token, along with a fixed routing cost per layer.

Example: NVIDIA B300 → 21.4 GB active ÷ (8000 × 0.65) = 4.12 ms, plus 92 layers × 0.055 ms = 5.06 ms, so 1000 ÷ 9.18 ms = ~109 tok/s

Estimated speed at Q4_K_M (215.6 GB)

~109 tok/s
~44 tok/s
~44 tok/s

Real-world results typically within ±20%. Speed depends on batch size, quantization kernel, and software stack.

Learn more about tok/s estimation →

What's the download size of GLM 4.7?

At Q4_K_M, the download is about 215.00 GB. The full-precision BF16 version is 716.68 GB. The smallest option (IQ2_XXS) is 98.54 GB.

Which GPUs can run GLM 4.7?

No single consumer GPU has enough VRAM to run GLM 4.7 at Q4_K_M (215.6 GB). Multi-GPU or professional hardware is required.

Which devices can run GLM 4.7?

2 devices with unified memory can run GLM 4.7 at Q4_K_M (215.6 GB), including Mac Studio (M3 Ultra, 256GB), Mac Studio (M3 Ultra, 512GB). Apple Silicon Macs use unified memory shared between CPU and GPU, making them well-suited for local LLM inference.