GLM-5.3-Flash on a Mac Studio M5 Ultra: 320 billion parameters within 512 GB
A model of 320 billion parameters fits on a desktop machine, at 8-bit and with no quantisation compromise, because thirty-four of its forty-five layers accumulate no cache. Here is the sizing, the context actually served and the calculated throughput.
Update log (4 revisions)
Updated on 28 November 2026: visuals redrawn from the figures on the page, update log collapsed, tables readable on a phone, text tightened and internal inconsistencies fixed after review, with no change to any measurement or source.
Update of 25 November 2026: third parties have measured this model on a 256 GB Mac Studio M5 Ultra, MacStories as early as 21 September, and they record 39 to 42 tokens per second on a stock server, then 55.2 to 81 with multi-token prediction recipes, against a calculated ceiling of 120 at 4-bit. The note of 26 September, which reported none, was therefore inaccurate, and we have so far read no measurement at 8-bit or on the 512 GB configuration.
Updated on 26 September 2026: Mac Studio M5 Ultra availability re-read on 26 September 2026: shipping since 22 September in 96 and 256 GB, 512 GB option still announced for late October.
Updated on 2 September 2026: values re-read against the config.json of the zai-org/GLM-5.3-Flash repository (45 layers, 34 linear and 11 DSA, kv_lora_rank 512, 288 routed experts plus one shared, 1,048,576 window) and against the safetensors of the cited conversions (334.1 and 177.5 GB); no value changed, the cache formula is now written out.


A 320 billion parameter architecture built for long context
The card published by Z.ai states 320 billion parameters in total for 18 billion active per token, under an MIT licence, which remains rare at this scale and permits commercial use as well as redistribution.
The config.json supplies the rest, namely forty-five layers of which thirty-four use linear attention and eleven use MLA sparse attention, with routing to eight experts out of two hundred and eighty-eight plus one shared expert.


The decisive point for sizing lies in the kv_lora_rank value, set to 512. Latent attention does not store separate keys and values but a single compressed vector per layer and per token, which cuts the cache by an order of magnitude compared with classic attention. The window declared in the configuration reaches 1,048,576 tokens.
What the model conversion weighs under MLX
When this article was first written, no conversion came from the mlx-community organisation, which has published several since, including a 4-bit conversion created on 25 September 2026 that we have not weighed. The versions cited here are published by individual contributors, and the sizes below are read from the published files rather than derived from the parameter count.
| Conversion | Weights on disk | Free on 512 GB |
|---|---|---|
| MLX 8-bit | 334.1 GB | 178 GB |
| MLX 4-bit | 177.5 GB | 334 GB |


How much context and latent cache fits across the eleven layers
Only eleven layers carry a cache, and each of them stores no more than a latent of 512 values per token, which gives 11 × 512 × 2 bytes = 11,264 bytes, i.e. 11 KiB per token in FP16.
FP8 halves that to 5.5 KiB, excluding the DSA indexer keys (128 bytes per layer, 1.4 KiB more).
| Context | FP16 cache | FP8 cache |
|---|---|---|
| 262,144 tokens | 3.0 GB | 1.5 GB |
| 1,048,576 tokens (declared window) | 11.8 GB | 5.9 GB |
Even at 8-bit, where the weights already consume 334 GB, the remaining 178 GB would cover close to sixteen million tokens of FP16 cache. The model window is therefore reached long before the machine limit, which overturns the intuition inherited from full-attention architectures, where long context was paid for in tens of gigabytes.
What throughput to expect from the active-parameter calculation
The calculation follows the same rule as for any mixture-of-experts model, since only the active parameters are reread on every token. The measured sizes give 1.044 byte per parameter at 8-bit and 0.555 at 4-bit, which leads directly to the two ceilings set out below.
| Conversion | Read per token | Arithmetic ceiling |
|---|---|---|
| MLX 8-bit | 18.8 GB | ~64 tokens/s |
| MLX 4-bit | 10.0 GB | ~120 tokens/s |
These values divide the 1.2 TB/s bandwidth of the M5 Ultra by the volume reread, and they are therefore calculations rather than readings. We placed observed throughput between sixty and eighty per cent of such a ceiling, whereas the third-party measurements in the next section come in markedly lower.
What throughput have third parties measured on a Mac Studio M5 Ultra?
Three sets of third-party measurements of this model exist, all on a 256 GB Mac Studio M5 Ultra, at 4-bit or mixed 4/8-bit. They range from about 39 to 81 tokens per second.


| Measured by the third party | Test, weights and server | Source and date |
|---|---|---|
| 41 tokens/s | Generation, median of three passes, low reasoning included; mixed 4/8-bit (4-bit routed experts, 8-bit attention and dense weights), oMLX 0.7.0.dev2 | MacStories, 21 September 2026 |
| 1,107 and 997 tokens/s read; no answer at 258,025 tokens, out of memory | Reading 13,639 and 126,964-token prompts; mixed 4/8-bit, oMLX 0.7.0.dev2 | MacStories, 21 September 2026 |
| About 39 tokens/s, then 55.2 (66.3 at best) | Short-context decode, without then with MTP (median of twenty runs); PipeNetwork mixed 4/8-bit (about 170 GB), oMLX 0.7.0rc1, MLX 0.32.0 | EugeneClaw log on GitHub, 26 September 2026 |
| 42.0 tokens/s, then 79 to 81 | Greedy decode on a fresh prompt; dfp-official oQ4e with a grafted MTP head; stock oMLX 0.7.0rc1, then oMLX main patched by the recipe | sethforprivacy recipe on GitHub, 30 September 2026 |
| 796 and 736 tokens/s read, then 2,233 and 2,024 | Reading 32K and 256K-token prompts; oQ4e, stock oMLX 0.7.0rc1, then patched oMLX main | sethforprivacy recipe, 30 September 2026 |
These figures were measured by third parties, not by QDNA, on a 256 GB machine under macOS 27.0, and we read them on the source pages on 25 November 2026. The dates given for the two GitHub repositories correspond to the latest modification of their presentation file, for want of a date carried by the measurements themselves.
These readings correct our order of magnitude, since the 39 to 42 tokens per second obtained on a stock server amount to about a third of the ceiling of 120 calculated at 4-bit. The comparison nevertheless stays indicative, because none of the weights measured is the conversion at 0.555 byte per parameter on which our calculation rests.
None of these measurements covers the 8-bit conversion or the 512 GB configuration, which therefore remain without any third-party reading to date. On 256 GB, MacStories gets no answer at 258,025 tokens of context, whereas the sethforprivacy recipe serves a 512K-token request with a 227 GB memory peak and 33 tokens per second.
QDNA has not measured GLM-5.3-Flash, and our measurements of 25 November 2026 cover a different model, Qwen3.8 Flash Next, on a different machine, a 128 GB MacBook Pro M5 Max, and with different weights. The bench and its data are published, but they provide no value for the Mac Studio M5 Ultra that this article deals with.
How GLM-5.3-Flash and Qwen3.8-Flash-Next trade off differently
Both models target the same machine and adopt the same hybrid architecture idea, but they do not make the same trade. Qwen activates six billion parameters and tops out around 320 tokens per second, whereas GLM activates eighteen and tops out at 120 at 4-bit, the speed gap being paid for in reasoning capacity.
Our dedicated article covers the first case, on Qwen3.8-Flash-Next served under MLX.
The QDNA calculator models this model at MLX 4-bit: 168 GB of weights computed per tensor class, rather than the 177.5 GB weighed here, 6,171 bytes per token of FP8 KV cache and 143 MB of recurrent state, under the default macOS limit of 75% of unified memory.
The caveats on the 512 GB Mac Studio M5 Ultra configuration
The 512 GB configuration of the Mac Studio M5 Ultra can now be ordered on the US Apple Store, whose page we re-read on 25 November 2026, while the 96 and 256 GB models have shipped since 22 September.
As of 25 November 2026, we have read no third-party measurement at 8-bit or on the 512 GB configuration, so the 8-bit throughput figures of this article remain calculations rather than readings, to be taken as upper bounds.
The official model card is otherwise sparse in detail, since it publishes neither the layer count, nor the file sizes, nor the context window, all values we read from the repository configuration.
Frequently asked questions
Does GLM-5.3-Flash fit on a Mac Studio M5 Ultra?
Yes, in the 512 GB configuration. The 8-bit MLX conversion weighs a measured 334.1 GB and leaves 178 GB for cache and system, while the 4-bit version drops to 177.5 GB. Neither fits on the 96 GB entry machine.
What context length can be served?
The configuration declares a window of 1,048,576 tokens, and the corresponding cache costs only 11.8 GB in FP16, because just eleven of forty-five layers carry a cache and they store no more than a compressed latent of 512 values. Machine memory is therefore never the limiting factor.
Should the 4-bit or the 8-bit conversion be preferred?
The 8-bit version reproduces the native FP8 format of the original weights and serves as the quality reference, at a ceiling of 64 tokens per second. The 4-bit version doubles theoretical throughput and frees 156 GB of memory, but the quality loss must be measured on your own tasks before any commitment.
Under which licence is the model published?
The weights are under an MIT licence, which permits fine-tuning, commercial deployment and redistribution. That is a markedly more permissive licence than those chosen by several competing models of comparable size.
References
- MacStories, "M5 Ultra Mac Studio Review: The Dream Mac for Local AI Agents", Federico Viticci, 21 September 2026
- sethforprivacy, oMLX recipe for GLM-5.3-Flash on a Mac Studio M5 Ultra, GitHub, 30 September 2026
- EugeneClaw, measurement log for GLM-5.3-Flash on Apple Silicon, GitHub, 26 September 2026
- QDNA measurements of 25 November 2026: Qwen3.8 Flash Next on an RTX PRO 6000 and a MacBook Pro M5 Max
- zai-org/GLM-5.3-Flash, official model card and config.json
- MLX 8-bit conversion, safetensors size as read
- MLX 4-bit conversion, safetensors size as read