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.


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.
| Conversion | Weights on disk | Free on 512 GB |
|---|---|---|
| MLX 4-bit (Vontra) | 111.6 GB | 400 GB |
| MLX mixed 4 and 8-bit (pipenetwork) | 106.2 GB | 406 GB |
| MLX 6-bit with MTP (Vontra oQ6) | 158.1 GB | 354 GB |
| MLX 3-bit with MTP (Vontra oQ3) | 92.5 GB | 420 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.


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.
| Context | FP16 cache | FP8 cache |
|---|---|---|
| 262,144 tokens (native) | 6.4 GB | 3.2 GB |
| 1,000,000 tokens (YaRN) | 24.6 GB | 12.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.
| Measured by the third party | Test, weights and server | Source 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.dev2 | MacStories, 21 September 2026 |
| 90.7, 83.8, 60.6 and 74.7 tokens/s | 512-token answer after 4K, 64K, 128K and 256K tokens of context, one run; oQ4e, MTP depth 3, oMLX 0.7.0.dev2 | MacStories, 21 September 2026 |
| 2,574 tokens/s read, first token in 102 s | Reading a 261,880-token prompt, cold cache; oQ4e, oMLX 0.7.0.dev2 | MacStories, 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 recipe | sethforprivacy recipe on GitHub, 28 September 2026 |
| 4,759 and 4,214 tokens/s read | Reading 32K and 256K-token prompts; oQ6e with MTP, patched oMLX main | sethforprivacy recipe, 28 September 2026 |


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.


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
- Qwen/Qwen3.8-Flash-Next, official model card and config.json
- QwenLM/Qwen3.8-Flash-Next, reference repository
- MLX 4-bit conversion, safetensors size as read
- MLX mixed 4 and 8-bit conversion (pipenetwork), 106.2 GB read on 2 September 2026
- MLX 6-bit conversion with MTP (Vontra), 158.1 GB and 3-bit with MTP (Vontra), 92.5 GB
- MacStories, "M5 Ultra Mac Studio Review: The Dream Mac for Local AI Agents", Federico Viticci, 21 September 2026
- sethforprivacy, oMLX recipe for Qwen3.8-Flash-Next on a Mac Studio M5 Ultra, GitHub, measurements of 28 September 2026
- QDNA measurements of 25 November 2026: Qwen3.8 Flash Next on an RTX PRO 6000 and a MacBook Pro M5 Max