GLM 5.4 VRAM Calculator for a 750B Loop Transformer
Use this GLM 5.4 VRAM calculator to size 750B quantized weights, two-pass hybrid KV cache, multi-GPU fit and API break-even volume.
Open weights pending Capacity and speed are hypothetical. The selected defaults are modeling assumptions.
- Weights
- —
- KV cache + overhead
- —
- Total memory required
- —
| Candidate configuration | Pool capacity | Capacity result | Modeled tok/s |
|---|
Self-host vs API break-even
Use a cluster quote and hypothetical API rates. Assumes 720 rental hours per month and prices requests at the prompt and output sizes below.
- Monthly self-host rent
- —
- Modeled monthly API cost
- —
- Break-even requests/day
- —
How the GLM 5.4 VRAM calculator sizes weights
The GLM 5.4 VRAM calculator multiplies 750 billion parameters by the selected bits per weight and divides by eight. That yields decimal gigabytes of weight storage. The weight term is approximately 1,500 GB at 16 bits, 750 GB at eight bits and 375 GB at four bits. The 4.5-bit GGUF and 3.1-bit alternatives represent effective average bits per weight for hypothetical quantizations. Released artifacts and runtime support determine the actual layouts.
The estimate keeps weight storage constant as session count increases. It assumes one pooled model serves those sessions. Replicating the model for separate workers adds another full weight footprint per replica. For overhead, the GLM 5.4 VRAM calculator adds 10% of the weight estimate plus 8 GB to represent runtime workspace and miscellaneous allocations. Runtime traces should replace that reserve when the weights and kernels are available.
Model the hybrid cache and naive two-pass cache
Hybrid KV reduces the estimated second-pass cache by replacing a full extra context for 28 layers with a capped window. The model here uses a 4,096-token window as an assumption. It uses a 512-element compressed KV latent and 64 positional values from the GLM-5 base configuration as a proxy, with two bytes per value. That gives 1,152 bytes per cached token per layer before alignment and paging.
In this GLM 5.4 VRAM calculator, the first pass retains 78 layers of full-sequence cache. Hybrid adds 28 layers for the smaller of the context and 4,096 tokens. Naive two-pass caching retains a full sequence for all 106 layer passes. The formulas multiply by concurrent sessions with no prefix sharing between them. The GLM 5.4 Loop Transformer traces the actual sparse global and local reads described by Z.ai.
GLM 5.4 VRAM worked example: four 200K sessions at INT4
With four concurrent 200K GLM 5.4 sessions, the GLM 5.4 VRAM calculator estimates about 72.4 GB of hybrid KV cache and 97.7 GB of naive cache. Add 375 GB of weights and 45.5 GB of reserve for roughly 492.9 GB total in hybrid mode. At 1M context the gap expands because the naive second pass grows with every position while the assumed local window stays fixed. The cache meter compares only the KV portions.
What the hardware fit and speed columns mean
The GLM 5.4 VRAM calculator checks the total against the sum of device memory. The hardware examples are capacity screens. Options include eight HGX B200s at 180 GB each, eight H200s, sixteen H100s, sixteen RTX 5090s and a four-node Mac Studio M3 Ultra scenario. Separate devices still need to communicate, and a Mac’s memory is shared with the operating system.
The speed model divides aggregate bandwidth at an illustrative 35% utilization by a dense-equivalent weight stream scaled by 106 ÷ 78. That factor approximates a repeat read of shared layers assuming uniform layer size. It is a bandwidth sensitivity estimate. The GLM base uses sparse expert activation, and real decode speed also depends on active experts, batch size, sharding, communication, kernel efficiency and attention reads.
Hardware references include NVIDIA HGX node configs, NVIDIA RTX 5090 specifications and Apple Mac Studio specifications.
Compare GLM 5.4 self-host break-even with request volume
In the GLM 5.4 VRAM calculator, break-even divides 720 hours of monthly cluster rent by the modeled API price per request and by 30 days. With the example $24 hourly cluster quote and a 50K input plus 4K output workload at $1.00 / $3.20 per million, monthly rent is $17,280 and the modeled API cost is $0.0628 per request. The crossover is about 9,172 requests per day before hosting extras.
Capacity can prevent an apparent crossover. The tool warns when the selected cluster fails the memory screen, the average request exceeds the configured context or demand exceeds modeled decode-only capacity. Add prefill, utilization, CPU and storage costs, operator time and redundancy when evaluating a deployment. The GLM 5.4 token counter helps estimate request composition. Check the GLM 5.4 pricing for the API evidence and the GLM 5.4 overview for the weight-release status.
Check GLM 5.4 memory placement before choosing hardware
Use the GLM 5.4 VRAM calculator to narrow the capacity search, then check the per-device allocation once artifacts and drivers are available. A sharding plan can leave embedding tables, attention state or temporary buffers unevenly distributed across devices. An aggregate fit can still put too much on one accelerator. Reserve space for the operating system on unified-memory machines and confirm the serving runtime can span the nodes you selected.
Before sizing a GLM 5.4 cluster, test one long prompt and several overlapping GLM 5.4 sessions before assuming a short decode benchmark translates into daily capacity. Log peak device memory during prompt ingestion, steady memory during generation and whether storage offload occurs. Compare those observations against the cache and workspace terms separately.
Related tools and guides
Frequently asked questions
Can I self-host GLM 5.4 today?
Z.ai announced plans to release GLM 5.4 weights after safety hardening, so this GLM 5.4 VRAM calculator models capacity planning ahead of weight release.
Does Pool fits guarantee a working deployment?
Pool fits compares estimated memory with aggregate capacity. A working deployment also depends on sharding, interconnect, runtime support and per-device headroom.
Why use decimal GB?
The tool divides byte counts by one billion so the numbers are easy to compare with the listed hardware capacities.
Does the second pass duplicate all model weights?
Z.ai describes a weight-shared block. The second pass uses its existing weights and adds computation plus a local cache window.