QDNA Send a message

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.

Bars setting GLM-5.3-Flash against the 512 GB of unified memory of the Mac Studio M5 Ultra, in gigabytes. MLX 8-bit conversion: 334.1 GB of weights, 178 GB free. MLX 4-bit conversion: 177.5 GB of weights, 334 GB free. Cache of the declared 1,048,576-token window: 11.8 GB, i.e. 11 KiB per token in FP16. Calculated ceilings, not measured: about 64 and 120 tokens per second, at 8-bit and at 4-bit. Bars setting GLM-5.3-Flash against the 512 GB of unified memory of the Mac Studio M5 Ultra, in gigabytes. MLX 8-bit conversion: 334.1 GB of weights, 178 GB free. MLX 4-bit conversion: 177.5 GB of weights, 334 GB free. Cache of the declared 1,048,576-token window: 11.8 GB, i.e. 11 KiB per token in FP16. Calculated ceilings, not measured: about 64 and 120 tokens per second, at 8-bit and at 4-bit.
Both MLX conversions and the cache of the whole window fit within the 512 GB. Throughput figures are calculated ceilings, not measurements.
Short answer. The 8-bit MLX conversion weighs a measured 334.1 GB and fits within the 512 GB of the M5 Ultra; the 4-bit version weighs 177.5 GB. Thanks to latent attention, the cache costs only 11 KiB per token, i.e. 11.8 GB for the native one-million-token window. Calculated ceilings: around 64 tokens per second at 8-bit, 120 at 4-bit.

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.

Three figures on the architecture of GLM-5.3-Flash. 18 billion parameters active per token, out of 320 billion in total, per the card published by Z.ai. 11 of 45 layers carry a cache, the 34 linear attention layers accumulating none, per the config.json of the repository. 11 KiB of cache per token in FP16, i.e. 11 × 512 × 2 bytes, which gives 11.8 GB for the 1,048,576-token window, against the 178 GB left free at 8-bit. Three figures on the architecture of GLM-5.3-Flash. 18 billion parameters active per token, out of 320 billion in total, per the card published by Z.ai. 11 of 45 layers carry a cache, the 34 linear attention layers accumulating none, per the config.json of the repository. 11 KiB of cache per token in FP16, i.e. 11 × 512 × 2 bytes, which gives 11.8 GB for the 1,048,576-token window, against the 178 GB left free at 8-bit.
Only 11 of the 45 layers carry a cache, so the whole window fits in 11.8 GB, far below the 178 GB left free at 8-bit.

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.

Weights on disk for the two MLX conversions and memory left free on 512 GB
ConversionWeights on diskFree on 512 GB
MLX 8-bit334.1 GB178 GB
MLX 4-bit177.5 GB334 GB
Diagram of the trade between the two MLX conversions. Priority on output quality: MLX 8-bit, 334.1 GB of weights and 178 GB free, which reproduces the native FP8 format of the original weights, calculated ceiling of about 64 tokens per second. Priority on speed and free memory: MLX 4-bit, 177.5 GB of weights and 334 GB free, calculated ceiling of about 120 tokens per second, with a degradation to be measured on your own tasks. Diagram of the trade between the two MLX conversions. Priority on output quality: MLX 8-bit, 334.1 GB of weights and 178 GB free, which reproduces the native FP8 format of the original weights, calculated ceiling of about 64 tokens per second. Priority on speed and free memory: MLX 4-bit, 177.5 GB of weights and 334 GB free, calculated ceiling of about 120 tokens per second, with a degradation to be measured on your own tasks.
The choice is between output quality and speed, not between fitting and not fitting.

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).

Cache size in FP16 and FP8 by context length
ContextFP16 cacheFP8 cache
262,144 tokens3.0 GB1.5 GB
1,048,576 tokens (declared window)11.8 GB5.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.

Volume reread per token and calculated throughput ceiling for each conversion
ConversionRead per tokenArithmetic ceiling
MLX 8-bit18.8 GB~64 tokens/s
MLX 4-bit10.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.

Generation throughput of GLM-5.3-Flash measured by third parties on a 256 GB Mac Studio M5 Ultra, in tokens per second, against the calculated ceiling of about 120 at 4-bit (1.2 TB/s divided by 10.0 GB reread per token). MacStories, 21 September 2026: 41 on a stock oMLX server. EugeneClaw log, 26 September 2026: about 39 without MTP, then 55.2 with MTP (66.3 at best). sethforprivacy recipe, 30 September 2026: 42.0 on the stock server, then 79 to 81 with the recipe. Calculated ceiling at MLX 8-bit: about 64, with no third-party measurement at 8-bit or on the 512 GB configuration. 512K-token request with the sethforprivacy recipe: 33 tokens per second, 227 GB memory peak. Generation throughput of GLM-5.3-Flash measured by third parties on a 256 GB Mac Studio M5 Ultra, in tokens per second, against the calculated ceiling of about 120 at 4-bit (1.2 TB/s divided by 10.0 GB reread per token). MacStories, 21 September 2026: 41 on a stock oMLX server. EugeneClaw log, 26 September 2026: about 39 without MTP, then 55.2 with MTP (66.3 at best). sethforprivacy recipe, 30 September 2026: 42.0 on the stock server, then 79 to 81 with the recipe. Calculated ceiling at MLX 8-bit: about 64, with no third-party measurement at 8-bit or on the 512 GB configuration. 512K-token request with the sethforprivacy recipe: 33 tokens per second, 227 GB memory peak.
Third-party measurements read on 25 November 2026, against the ceiling calculated by QDNA. The comparison stays indicative: none of the weights measured is the conversion at 0.555 byte per parameter used in the calculation.
Throughput measured by third parties on a Mac Studio M5 Ultra, with the test, weights, server, source and date
Measured by the third partyTest, weights and serverSource and date
41 tokens/sGeneration, 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.dev2MacStories, 21 September 2026
1,107 and 997 tokens/s read; no answer at 258,025 tokens, out of memoryReading 13,639 and 126,964-token prompts; mixed 4/8-bit, oMLX 0.7.0.dev2MacStories, 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.0EugeneClaw log on GitHub, 26 September 2026
42.0 tokens/s, then 79 to 81Greedy decode on a fresh prompt; dfp-official oQ4e with a grafted MTP head; stock oMLX 0.7.0rc1, then oMLX main patched by the recipesethforprivacy recipe on GitHub, 30 September 2026
796 and 736 tokens/s read, then 2,233 and 2,024Reading 32K and 256K-token prompts; oQ4e, stock oMLX 0.7.0rc1, then patched oMLX mainsethforprivacy 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