QDNA Send a message

Qwen3.8-Flash-Next on a Mac Studio M5 Ultra: 112 GB of weights, one million tokens

Alibaba released on 26 August 2026 a model of 180 billion parameters of which only six work on each token, and whose thirty-six of forty-eight layers accumulate no cache at all. Here is what it asks of a 512 GB Mac Studio M5 Ultra, and the throughput you can expect from it.

Update log (3 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 60.6 to 165 tokens per second depending on weights and test, against a calculated ceiling of 320. The note of 26 September, which reported none, was therefore inaccurate, and our own measurements of 25 November cover a different machine, a MacBook Pro M5 Max.

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.

Generation throughput of Qwen3.8-Flash-Next on a Mac Studio M5 Ultra, in tokens per second. Calculated ceiling: 320, i.e. 1.2 TB/s divided by 3.7 GB, a calculation rather than a measurement. MacStories, 21 September 2026, on a 256 GB M5 Ultra: 111.6 in prose with oQ4e, then 60.6 after 128K tokens. sethforprivacy recipe, 28 September 2026, on 256 GB: 158 to 165 in greedy decode, with oQ6e with MTP. Weights in 4-bit MLX: 111.6 GB, i.e. 400 GB free on 512 GB. Cache for one million tokens: 24.6 GB, at 24 KiB per token in FP16. Generation throughput of Qwen3.8-Flash-Next on a Mac Studio M5 Ultra, in tokens per second. Calculated ceiling: 320, i.e. 1.2 TB/s divided by 3.7 GB, a calculation rather than a measurement. MacStories, 21 September 2026, on a 256 GB M5 Ultra: 111.6 in prose with oQ4e, then 60.6 after 128K tokens. sethforprivacy recipe, 28 September 2026, on 256 GB: 158 to 165 in greedy decode, with oQ6e with MTP. Weights in 4-bit MLX: 111.6 GB, i.e. 400 GB free on 512 GB. Cache for one million tokens: 24.6 GB, at 24 KiB per token in FP16.
The calculated ceiling against the third-party measurements, taken on a 256 GB Mac Studio M5 Ultra and not on the 512 GB configuration.
Short answer. In 4-bit MLX, Qwen3.8-Flash-Next takes a measured 111.6 GB and leaves 400 GB free on a 512 GB machine. A one-million-token context fits in 24.6 GB of cache. The constraint is therefore no longer memory but throughput, capped by arithmetic at around 320 tokens per second. Third parties have measured 60.6 to 165 tokens per second on a 256 GB M5 Ultra, depending on weights and test.

What this model actually is

The official model card states 125 billion parameters of which 6 billion are active per token, to which 51 billion n-gram embeddings and 4 billion for the multi-token prediction head are added, bringing the file to 180 billion parameters in total (179.999 billion on the Hugging Face counter).

Those embeddings are not a compute layer but a lookup table of twenty million bigrams and trigrams placed at the second layer, which Qwen presents as a scaling axis demanding less computation than a mixture of experts would.

The repository's config.json gives the exact structure, and that structure drives the entire sizing exercise: forty-eight layers, of which thirty-six use Gated DeltaNet linear attention and only twelve use full attention, with two key-value heads of dimension 256. Routing activates ten experts out of five hundred and twelve on every token.

What the conversion actually weighs under MLX outside mlx-community

When this article was first written, we had found no conversion from the mlx-community organisation, whereas it now publishes one, oQ6e with MTP, re-read on 25 November 2026. The other versions are the work of individual contributors, which makes checking provenance a prerequisite before any production use. The sizes below are read from the published safetensors files rather than estimated.

Weights on disk of the MLX conversions and memory left on 512 GB
ConversionWeights on diskFree on 512 GB
MLX 4-bit (Vontra)111.6 GB400 GB
MLX mixed 4 and 8-bit (pipenetwork)106.2 GB406 GB
MLX 6-bit with MTP (Vontra oQ6)158.1 GB354 GB
MLX 3-bit with MTP (Vontra oQ3)92.5 GB420 GB

The ratio between these sizes and the parameter count gives 0.62 byte per parameter at 4-bit, appreciably more than the 0.5 byte of a pure quantisation, the gap coming from quantisation scales and from layers kept at higher precision. It is this measured figure, and not the naive arithmetic, that must be carried into any throughput estimate.

Why the key-value cache on twelve full-attention layers costs almost nothing

Only the twelve full-attention layers accumulate a key-value cache, the other thirty-six maintaining a recurrent state of fixed size. The calculation follows directly from two tensors, twelve layers, two key-value heads and a dimension of 256, which comes to 24 KiB per token in FP16 and half that, 12 KiB, in FP8.

Memory of a 512 GB Mac Studio M5 Ultra with Qwen3.8-Flash-Next in 4-bit MLX. Weights: 111.6 GB, read from the published safetensors files. Key-value cache for one million tokens in FP16: 24.6 GB. Free memory after the weights: 400 GB. The cache costs 24 KiB per token in FP16 and 12 KiB in FP8, because only 12 of the 48 layers accumulate a cache. Memory of a 512 GB Mac Studio M5 Ultra with Qwen3.8-Flash-Next in 4-bit MLX. Weights: 111.6 GB, read from the published safetensors files. Key-value cache for one million tokens in FP16: 24.6 GB. Free memory after the weights: 400 GB. The cache costs 24 KiB per token in FP16 and 12 KiB in FP8, because only 12 of the 48 layers accumulate a cache.
Only 12 of the 48 layers accumulate a cache: the 4-bit weights leave 400 GB free, and one million tokens ask for only 24.6.

The recurrent state of the linear layers occupies roughly 57 MB in BF16 (113 MB in FP32 state kept by inference engines), and that value does not move with context length, which is precisely the point of linear attention. The table below draws the consequences for the two windows that matter in practice.

Cache size in FP16 and FP8 by context length
ContextFP16 cacheFP8 cache
262,144 tokens (native)6.4 GB3.2 GB
1,000,000 tokens (YaRN)24.6 GB12.3 GB

What generation throughput to expect from the active weights

Generation rereads the active weights on every token, so speed depends first on memory bandwidth, which reaches 1.2 TB/s on the M5 Ultra. With 6 billion active parameters at 0.62 byte, each token requires reading about 3.7 GB, which places the arithmetic ceiling at around 320 tokens per second.

That ceiling is a calculation: we placed real utilisation between sixty and eighty per cent depending on engine and batch size, and the third-party measurements presented further down are markedly lower. Prefill obeys a different logic anyway, bound by compute rather than by memory, as our article on prefill, decode and the KV cache sets out.

To compare these figures with other machines, the QDNA calculator opens on this model with the MLX engine and 4-bit weights, for one user and 32,768 tokens of context. It counts 121 GB of weights there, computed per tensor class and not taken from the 111.6 GB weighed here, a KV cache of 12,672 bytes per token in FP8, indexer included, and 113 MB of recurrent state, under the macOS limit of 75% of unified memory.

The calculator applies the same arithmetic to 117 machines, including the 256 GB and 512 GB Mac Studio M5 Ultra, and adds the first-token delay.

What throughput have third parties measured on a Mac Studio M5 Ultra?

Two sets of third-party measurements exist, all on a 256 GB Mac Studio M5 Ultra and not on the 512 GB configuration of this article. They range from 60.6 to 165 tokens per second depending on the weights and the test.

Throughput measured by third parties on a 256 GB Mac Studio M5 Ultra, with the test, weights, server, source and date
Measured by the third partyTest, weights and serverSource and date
111.6, 100.0, 95.2 and 86.8 tokens/s (oQ6e and oQ8e with embedding tables on SSD)Prose of 180 to 220 words, three runs per format; oQ4e, oQ5e, oQ6e and oQ8e, oMLX 0.7.0.dev2MacStories, 21 September 2026
90.7, 83.8, 60.6 and 74.7 tokens/s512-token answer after 4K, 64K, 128K and 256K tokens of context, one run; oQ4e, MTP depth 3, oMLX 0.7.0.dev2MacStories, 21 September 2026
2,574 tokens/s read, first token in 102 sReading a 261,880-token prompt, cold cache; oQ4e, oMLX 0.7.0.dev2MacStories, 21 September 2026
158 to 165 tokens/s, then 118 (146 to 150 on stock oMLX 0.7.0rc1)Greedy decode on a fresh prompt, then prose; mlx-community oQ6e with MTP, oMLX main patched by the recipesethforprivacy recipe on GitHub, 28 September 2026
4,759 and 4,214 tokens/s readReading 32K and 256K-token prompts; oQ6e with MTP, patched oMLX mainsethforprivacy recipe, 28 September 2026
Generation throughput measured by third parties on a 256 GB Mac Studio M5 Ultra, in tokens per second. MacStories, 21 September 2026, prose of 180 to 220 words: 111.6 with oQ4e, 100.0 with oQ5e, 95.2 with oQ6e and 86.8 with oQ8e, the last two with embedding tables on SSD. MacStories, 512-token answer with oQ4e after 4K, 64K, 128K and 256K tokens of context: 90.7, 83.8, 60.6 and 74.7. sethforprivacy recipe, 28 September 2026, oQ6e with MTP: 158 to 165 in greedy decode on a fresh prompt, 118 in prose, 146 to 150 on stock oMLX 0.7.0rc1. Generation throughput measured by third parties on a 256 GB Mac Studio M5 Ultra, in tokens per second. MacStories, 21 September 2026, prose of 180 to 220 words: 111.6 with oQ4e, 100.0 with oQ5e, 95.2 with oQ6e and 86.8 with oQ8e, the last two with embedding tables on SSD. MacStories, 512-token answer with oQ4e after 4K, 64K, 128K and 256K tokens of context: 90.7, 83.8, 60.6 and 74.7. sethforprivacy recipe, 28 September 2026, oQ6e with MTP: 158 to 165 in greedy decode on a fresh prompt, 118 in prose, 146 to 150 on stock oMLX 0.7.0rc1.
The generation throughput figures from the table above. Prompt-reading rates are not shown.

These figures were measured by third parties, not by QDNA, on a 256 GB machine with the 80-core GPU under macOS 27.0, and we read them on the source pages on 25 November 2026. MacStories also records a 155 GB memory peak for the oQ4e format, which places this model on the intermediate configuration rather than on the most expensive one.

These readings correct our order of magnitude, since the 111.6 tokens per second from MacStories amount to about 35% of the calculated ceiling of 320, and the 165 from the recipe to about 52%. The comparison nevertheless stays indicative, because that ceiling holds for a conversion at 0.62 byte per parameter, and not for the oQ4e or oQ6e weights that these third parties measured.

QDNA measured this model on 25 November 2026, but on a different machine and with different weights, since a 128 GB MacBook Pro M5 Max, running STQ 2.75-bit weights served by sushi 1.7.3, generates 117.1 tokens per second there for one user. That reading therefore does not apply to a Mac Studio M5 Ultra, and the bench and its data are published for anyone who wants to redo the calculation.

Three caveats to know 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.

Timeline of the measurements. 21 September 2026: MacStories measures 111.6 tokens per second in prose, with oQ4e, on a 256 GB M5 Ultra. 22 September 2026: the 96 and 256 GB Mac Studio M5 Ultra have shipped since that date. 28 September 2026: the sethforprivacy recipe measures 158 to 165 tokens per second in greedy decode, with oQ6e with MTP, on 256 GB. 25 November 2026: QDNA measures 117.1 tokens per second on a different machine, a 128 GB MacBook Pro M5 Max. Timeline of the measurements. 21 September 2026: MacStories measures 111.6 tokens per second in prose, with oQ4e, on a 256 GB M5 Ultra. 22 September 2026: the 96 and 256 GB Mac Studio M5 Ultra have shipped since that date. 28 September 2026: the sethforprivacy recipe measures 158 to 165 tokens per second in greedy decode, with oQ6e with MTP, on 256 GB. 25 November 2026: QDNA measures 117.1 tokens per second on a different machine, a 128 GB MacBook Pro M5 Max.
The readings cited in the article, date by date. None covers the 512 GB configuration.

As of 25 November 2026, we have read no third-party measurement on the 512 GB configuration, since those in the previous section cover 256 GB and the throughput figures specific to this article remain calculations.

The entry machine stops at 96 GB, which is too little for this model whatever the quantisation retained.

What happens to the 51 billion n-gram embeddings remains thinly documented on the MLX side, although Qwen describes them as amenable to offloading and MacStories observed it with oMLX, since on 256 GB the oQ6e and oQ8e formats run with their embedding tables placed on SSD, at 95.2 and 86.8 tokens per second. Were an engine to keep them fully resident and reread them on every token, the throughput ceiling would fall sharply.

Finally, the licence is qwen-community-1.0 rather than Apache or MIT, which makes reading its terms a prerequisite for any commercial use. Our comparison of open-weight models returns to this often-overlooked point.

Frequently asked questions

Does Qwen3.8-Flash-Next fit on a Mac Studio M5 Ultra?

Yes, from the 256 GB configuration up. The 4-bit MLX conversion weighs a measured 111.6 GB and leaves 144 GB free there, against 400 GB on the 512 GB machine, while the 6-bit version rises to 158.1 GB. The 96 GB entry machine is not enough for any of these conversions.

How much context can be served?

The key-value cache costs only 24 KiB per token in FP16, because just twelve of forty-eight layers use full attention. A native 262,144-token context asks for 6.4 GB, and one million tokens ask for 24.6. Available memory would cover sixteen million tokens: the model window is what bounds this, not the machine.

What generation throughput should be expected?

The arithmetic ceiling sits at around 320 tokens per second, obtained by dividing the 1.2 TB/s of the M5 Ultra by the 3.7 GB reread on every token. That is a calculation rather than a measurement: third parties have measured 60.6 to 165 tokens per second on a 256 GB M5 Ultra, depending on weights and test.

Are the MLX conversions trustworthy?

The mlx-community organisation, which usually serves as the reference, now publishes an oQ6e conversion with MTP, and the others are the work of individual contributors. Provenance must therefore be checked, checksums compared and output quality validated before any production commitment.

References