LLMBOTTLENECK.COM
zai-org / glm_moe_dsa

GLM-5.1

753.9 billion parameters, routing 8 of 256 experts per token.

Open in the calculator →

Architecturepublished data
Quick answer
GLM-5.1 needs about 448.1 GB at Q4_K_M — the format most people download — with 8,192 tokens of context. None of the 18 common devices listed below holds it entirely at this setting. No hardware for it? Rent a GPU that runs it, priced live.

Sized at 8,192 tokens of context with the whole model in device memory, across 18 common devices. Speeds are estimates, not benchmarks.

Weight-file size by format

FormatSizeRangeBasis
FP161480.9 GB1447.0 GB – 1514.9 GBreconstructed size
Q8_0787.0 GB768.9 GB – 805.0 GBreconstructed size
Q6_K607.7 GB593.8 GB – 621.6 GBreconstructed size
Q5_K_M524.6 GB512.6 GB – 536.6 GBreconstructed size
Q5_0509.5 GB497.8 GB – 521.2 GBreconstructed size
Q4_K_M446.4 GB436.1 GB – 456.6 GBreconstructed size
Q4_0417.1 GB407.5 GB – 426.7 GBreconstructed size
Q3_K_M365.4 GB333.3 GB – 397.5 GBreconstructed size
Q2_K268.5 GB253.0 GB – 284.1 GBreconstructed size

A file size is not the memory a run needs: the KV cache and the runtime reserve come on top, and the calculator adds both.

What the labels mean
published data
Read from a published source — a file's byte count, a model's configuration or a manufacturer's specification — or exact arithmetic on such values. Not a measurement on a machine.
reconstructed size
Weight size reconstructed from the pinned architecture, because no published file exists.
size range
Only a lower and an upper bound are claimed for this weight size.

Hardware ladder

Q4_K_M at 8,192 tokens · 0 of 18 devices hold it entirely
DeviceMemoryVerdictDecodeCalculator
NVIDIA GeForce RTX 5070448.1 GB of 12 GB77 layers on system RAM~2.7 tok/s with offloadOpen →
AMD Radeon™ RX 9070 XT448.1 GB of 16 GB76 layers on system RAM~2.7 tok/s with offloadOpen →
NVIDIA GeForce RTX 4080448.1 GB of 16 GB76 layers on system RAM~2.7 tok/s with offloadOpen →
NVIDIA GeForce RTX 5080448.1 GB of 16 GB76 layers on system RAM~2.7 tok/s with offloadOpen →
NVIDIA GeForce RTX 5070 Ti448.1 GB of 16 GB76 layers on system RAM~2.7 tok/s with offloadOpen →
NVIDIA GeForce RTX 5060 Ti 16GB448.1 GB of 16 GB76 layers on system RAM~2.7 tok/s with offloadOpen →
NVIDIA GeForce RTX 4090448.1 GB of 24 GB75 layers on system RAM~2.7 tok/s with offloadOpen →
AMD Radeon™ RX 7900 XTX448.1 GB of 24 GB75 layers on system RAM~2.7 tok/s with offloadOpen →
NVIDIA GeForce RTX 3090448.1 GB of 24 GB75 layers on system RAM~2.7 tok/s with offloadOpen →
NVIDIA GeForce RTX 5090448.1 GB of 32 GB73 layers on system RAM~2.8 tok/s with offloadOpen →
NVIDIA RTX 6000 Ada Generation448.1 GB of 48 GB70 layers on system RAM~2.9 tok/s with offloadOpen →
Apple M4 Pro448.1 GB of 64 GBdoes not fitnot calibratedOpen →
Apple M5 Pro448.1 GB of 64 GBdoes not fitnot calibratedOpen →
AMD Ryzen AI Max+ 395 with Radeon 8060S448.1 GB of 128 GBdoes not fitnot calibratedOpen →
Apple M3 Max448.1 GB of 128 GBdoes not fitnot calibratedOpen →
Apple M4 Max448.1 GB of 128 GBdoes not fitnot calibratedOpen →
NVIDIA DGX Spark448.1 GB of 128 GBdoes not fitnot calibratedOpen →
Apple M2 Ultra448.1 GB of 192 GBdoes not fitnot calibratedOpen →

Decode is a calibrated estimate from the published calibration; capacity is the manufacturer's published ceiling, not guaranteed free memory. Fitting in memory is not the same as loading: whether the runtime and version you have supports this architecture and format on that machine has not been tested here. Offloaded rows assume there is enough system RAM for the overflow — the calculator checks that against the RAM you declare. Each “Open” link keeps this model, format and context.

Run it in the cloud

Rent a GPU that runs GLM-5.1

Every rentable machine that holds the whole model, from Vast.ai and RunPod, with this site's speed estimate for each and the provider's own price, read live. Cheapest first; sort by cost per token or speed instead, or switch the format.

Prices · 18:30 UTC, 22 Sept
6 configurations in stock · 5 out of stock
MachineSpeedPer hourPer M tokensWhereRent
2× B300540 GBcheapest~426 tok/sFaster than you read$15.78$10.28RunPodSecure CloudRent on RunPod
4× H200 NVL564 GB~495 tok/sFaster than you read$16.00$8.97Vast.aiMarketplace · 99.1% reliableRent on Vast.ai
8× RTX PRO 6000768 GB~325 tok/sFaster than you read$16.54$14.12Vast.aiMarketplace · 98.4% reliableRent on Vast.ai
4× H200564 GB~495 tok/sFaster than you read$18.36$10.30RunPodSecure CloudVast.ai $18.42/h Rent on RunPod
8× H100 PCIe640 GB~363 tok/sFaster than you read$19.16$14.66Vast.aiMarketplace · 98.3% reliableRent on Vast.ai
4× B200720 GBrecommendedbest valuefastest~794 tok/sFaster than you read$25.00$8.74Vast.aiMarketplace · 99.6% reliableRent on Vast.ai
No GPU at all

Use GLM-5.1 by the token

For one person chatting, that is about 2.9× cheaper than the best-value rented card above ($8.74 per million tokens). A rented GPU pays off when you keep it busy — many requests batched together, long agent runs — or when the data must stay on a machine you control, or the exact file you want is not served anywhere.

First time renting a GPU? How it works, in four steps
  1. Create an account and add credit. Both providers are prepaid: $10 is enough to try any card on this page for hours. A new RunPod account that arrives through a referral link gets a one-time $5 credit when it first adds $10.
  2. Pick the card and the count shown here, and a template: llama.cpp or vLLM for an OpenAI-compatible API, or one with a web chat if you only want to talk to the model. “How to launch it” below gives the exact image and command.
  3. Wait for the download. The weights are fetched on the machine; tens of gigabytes take a few minutes on a data-centre connection. You pay by the second from the moment it starts.
  4. Stop it when you are done. A running machine bills even when idle. A stopped one costs nothing per hour, though its disk is usually still billed until you delete it.
How to launch it

No Q4_K_M file of GLM-5.1 is catalogued here, so there is no exact command to vouch for. Start the machine from the llama.cpp server image ghcr.io/ggml-org/llama.cpp:server-cuda and point -hf at a Q4_K_M build from the publisher or a quantizer you trust — search Hugging Face for one. Check its file size against the memory figure on this page before you rent.

Every machine holds the whole model at Q4_K_M and 8,192 tokens of context, no offload. Speeds are this site’s single-stream decode estimates; prices are what each provider’s own API quoted, on-demand, for the whole machine. Vast hosts below 98% measured reliability are left out.

Referral links Vast.ai, RunPod and Novita pay us a share of what you spend if you sign up through these buttons. It costs you nothing, and it never decides an order or a recommendation: both are computed from the live price and the speed, and options that pay us nothing are listed and recommended on the same terms. How we rank

Buying a card instead, or paying by the token? Compare a year of GLM-5.1 three ways →

Under the hood

Architecture, read from the publisher’s file

The numbers every figure above is computed from, with the file they came from.

Architecture

✓ Architecture read from the published config.json

Retrieved 2026-09-01 at pinned commit 26e1bd6e011f; parameter count from the safetensors index at the same revision.

Architecture
glm_moe_dsa
Layers
78
Hidden size
6,144
Attention heads
64
KV heads
64
Head dimension
64
Feed-forward width
12,288
Vocabulary
154,880
Context ceiling
202,752
RoPE theta
1,000,000
Experts
256
Experts / token
8
Expert width
2,048
Shared experts
1
Latent KV rank
512

Where the memory goes

tokenembedding× 78 decoder blocksLatent attentioncompressed KV rankfull contextRouted experts8 of 256 per tokenall residentoutputprojectiongrows with contextcapacity ≠ traffic

Latent attention projects keys and values into a compressed rank before caching them, which is why its KV cache is a fraction of a comparable dense model.

More from zai-org

Use this answer in your own product

As JSON, from the API
curl -s https://llmbottleneck.com/v1/analyze \
  -H "Authorization: Bearer $LLMB_KEY" -H "content-type: application/json" \
  -d '{"model":"zai-org-glm-5-1","quantization":"Q4_K_M","context":8192,"hardware":"nvidia-geforce-rtx-4090"}'

Same engine, same evidence, every field sourced. Free key in one step →

On your page, as a widget
<script src="https://llmbottleneck.com/widget.js"
  data-model="zai-org-glm-5-1" data-quantization="Q4_K_M"
  data-hardware="nvidia-geforce-rtx-4090" data-context="8192"></script>

No key needed. Unbranded, with your own buy button, on Pro and Business →

Citing this page

LLM Bottleneck. “GLM-5.1 VRAM and hardware requirements.” Architecture from zai-org/GLM-5.1 at revision 26e1bd6e011f, retrieved 2026-09-01. https://llmbottleneck.com/models/zai-org-glm-5-1

Every figure above is either the published value or a reconstruction whose measured error is on the accuracy page.

llmbottleneck
catalogue 2026-10-03models 327devices 135