llmrun
PhalaCloudGLM 5GlmMoeDsaForCausalLM

GLM 5.2 W4AFP8 — Hardware Requirements & GPU Compatibility

ChatReasoning

GLM 5.2 W4AFP8 is a 391.9B-parameter open language model from PhalaCloud in the GLM 5 family. It supports a context window of up to 1,048,576 tokens. At Q4_K_M it needs about 239.34 GB of VRAM — see which GPUs and Macs can run it below.

391.9B params · dense1049K contextMIT42.1K downloads46 likes
Based on GLM 5.2 FP8

GLM 5.2 W4AFP8 runs on a 256 GB+ Mac or a datacenter GPU

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

Macs from192 GB Q2_K · ~3 tok/s

MIT

Not set up for it?

Reference GPU · RTX 4090 24 GB

Estimates, ±20% · how we estimate

Run GLM 5.2 W4AFP8

One recommended way. Every other method, OS and quant is in the step-by-step guide.

Recommended

vLLM
one command · needs vLLM installed
$vllm serve PhalaCloud/GLM-5.2-W4AFP8 --max-model-len 16384 --tensor-parallel-size 8

vLLM repo with its own quantisation

Download: Weights on Hugging Face

install, OS, other quants

Other ways

each opens step-by-step

Run in cloud

Fits on B300 (288 GB) (51 GB headroom) · Q4_K_M

Generation speed
~22 tok/s
generation speed
Cost per 1M output tokens
$88.84
per 1M output tokens

How Much VRAM Does GLM 5.2 W4AFP8 Need?

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

QuantizationVRAM+32KRuns on
170.8 GB169.8 GB2-bit · K-quant — 2-bit quantization with K-quant improvementsRuns on B200 192 GB
195.3 GB194.3 GB3-bit medium — 3-bit medium quantizationRuns on Instinct MI325X 256 GB
239.3 GB238.4 GB4-bit medium — 4-bit medium quantization — most popular sweet spotRuns on Instinct MI325X 256 GB
283.4 GB282.5 GB5-bit medium — 5-bit medium quantization — good quality/size tradeoffRuns on Instinct MI350X 288 GB
327.5 GB326.5 GB6-bit, very good — 6-bit quantization, very good qualityRuns on 5× H100 SXM 80 GB
396.1 GB395.1 GB8-bit, near-lossless — 8-bit quantization, near-losslessRuns on 6× H100 SXM 80 GB
787.9 GB787 GB16-bit · bfloat — Brain floating point 16 — preferred for trainingRuns on 7× H200 SXM 141 GB
est.calculated, no published file yet

Selected Q4_K_M

4-bit medium quantization

236.9GBat 16K context

Weights
235.1 GB
KV cache
1.5 GB
Overhead
0.3 GB

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

Or rent B300 from $6.94/hr.

Which Hardware Can Run GLM 5.2 W4AFP8?

Q4_K_M · 239.3 GB

GLM 5.2 W4AFP8 (Q4_K_M) requires 239.3 GB of VRAM to load the model weights. For comfortable inference with headroom for KV cache and system overhead, 312+ GB is recommended. Using the full 1049K context window can add up to 90.3 GB, bringing total usage to 329.6 GB. No consumer GPU has enough memory. 2 devices with unified memory can run GLM 5.2 W4AFP8, 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 128 GB: too small for this model (needs ≥ 168.3 GB)8 GB tier →12 GB tier →16 GB tier →24 GB tier →Macs →

Alternatives to GLM 5.2 W4AFP8

GLM 5 family · 6 models →

Similar models

6
ModelScoreVRAMWhy it is similar
Qwen3.5 397B A17BAlibaba113.0242.6 GBsame size
Llama 4 Maverick 17B 128E InstructMeta87.1272.7 GBsame size
Llama 3.1 405B InstructMeta83.2275.6 GBsame size
Intern S2 397BInternLM—242.6 GBsame size
Ornith 1.5 397Bornith-ai—242.6 GBsame size
Trinity Large ThinkingArcee AI—799.6 GBsame size

Specifications

Publisher
PhalaCloud
Family
GLM 5
Parameters
391.9B
Architecture
GlmMoeDsaForCausalLM
Context Length
1,048,576 tokens
Vocabulary Size
154,880
Release Date
2026-06-18
License
MIT

Frequently Asked Questions

How much VRAM does GLM 5.2 W4AFP8 need?

GLM 5.2 W4AFP8 requires 239.3 GB of VRAM at Q4_K_M, or 787.9 GB at BF16. Full 1049K context adds up to 90.3 GB (329.6 GB total).

VRAM = Weights + KV Cache + Overhead

Weights = 391.9B × 4.8 bits ÷ 8 = 235.1 GB

KV Cache + Overhead ≈ 4.2 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 ≈ 94.5 GB (at full 1049K context)

VRAM usage by quantization

239.3 GB
329.6 GB

Learn more about VRAM estimation →

Can NVIDIA GeForce RTX 5090 run GLM 5.2 W4AFP8?

No — GLM 5.2 W4AFP8 requires at least 170.8 GB at Q2_K, which exceeds the NVIDIA GeForce RTX 5090's 32 GB of VRAM.

What's the best quantization for GLM 5.2 W4AFP8?

For GLM 5.2 W4AFP8, Q4_K_M (239.3 GB) offers the best balance of quality and VRAM usage. Q5_K_M (283.4 GB) provides better quality if you have the VRAM. The smallest option is Q2_K at 170.8 GB.

VRAM requirement by quantization

Q2_K
170.8 GB
Q4_K_M ★
239.3 GB
Q5_K_M
283.4 GB
Q6_K
327.5 GB
Q8_0
396.1 GB
BF16
787.9 GB

★ Recommended — best balance of quality and VRAM usage.

Learn more about quantization →

Can I run GLM 5.2 W4AFP8 on a Mac?

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

Can I run GLM 5.2 W4AFP8 locally?

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

How fast is GLM 5.2 W4AFP8?

At Q4_K_M, GLM 5.2 W4AFP8 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 B300 → 8000 ÷ 239.3 × 0.65 = ~22 tok/s

Estimated speed at Q4_K_M (239.3 GB)

~22 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 5.2 W4AFP8?

At Q4_K_M, the download is about 235.12 GB. The full-precision BF16 version is 783.72 GB. The smallest option (Q2_K) is 166.54 GB.

Which GPUs can run GLM 5.2 W4AFP8?

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

Which devices can run GLM 5.2 W4AFP8?

2 devices with unified memory can run GLM 5.2 W4AFP8 at Q4_K_M (239.3 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.