zai-org·GLM 4·Glm4MoeForCausalLM

GLM 4.7 — Hardware Requirements & GPU Compatibility

Chat

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.

68.6K downloads 2.0K likes 9.4K quant downloads203K context

Specifications

Publisher
zai-org
Family
GLM 4
Parameters
358.3B
Architecture
Glm4MoeForCausalLM
Context Length
202,752 tokens
Vocabulary Size
151,552
Release Date
2025-12-22
License
MIT

Get Started

HuggingFace

zai-org/GLM-4.7

How Much VRAM Does GLM 4.7 Need?

Select a quantization to see compatible GPUs below.

QuantizationBitsVRAM
Q2_K3.40152.9 GB
Q3_K_S3.50157.4 GB
Q3_K_M3.90175.3 GB
Q4_04.00179.8 GB
Q4_K_M4.80215.6 GB
Q5_K_M5.70255.9 GB
Q6_K6.60296.3 GB
Q8_08.00359.0 GB

Which GPUs 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 single GPU has enough memory — multi-GPU or cluster setups are needed.

Which Devices Can Run GLM 4.7?

Q4_K_M · 215.6 GB

3 devices with unified memory can run GLM 4.7, including NVIDIA DGX H100, NVIDIA DGX A100 640GB.

Where to Download GLM 4.7

Community quantizations of this model — GGUF for llama.cpp, Ollama, and LM Studio, plus AWQ/MLX variants where available.

Related Models

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)

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. Q5_K_S (247.0 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
Q3_K_S
157.4 GB
Q4_1
202.2 GB
Q4_K_M
215.6 GB
Q5_K_S
247.0 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?

GLM 4.7 requires at least 99.2 GB at IQ2_XXS, which exceeds the unified memory of most consumer Macs. You would need a Mac Studio or Mac Pro with a high-memory configuration.

Can I run GLM 4.7 locally?

Yes — GLM 4.7 can run locally on consumer hardware. At Q4_K_M quantization it needs 215.6 GB of VRAM. Popular tools include Ollama, LM Studio, and llama.cpp.

How fast is GLM 4.7?

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

tok/s = (bandwidth GB/s ÷ model GB) × efficiency

Example: NVIDIA B3008000 ÷ 215.6 × 0.65 = ~24 tok/s

Estimated speed at Q4_K_M (215.6 GB)

~24 tok/s
~20 tok/s
~20 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?

4 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), NVIDIA DGX A100 640GB, NVIDIA DGX H100. Apple Silicon Macs use unified memory shared between CPU and GPU, making them well-suited for local LLM inference.