Alibaba: Qwen

Alibaba's Qwen model line: why its models are built the way they are, and the evidence Qwen published for each choice. Every figure links to its source; data as of 1 October 2026. Reading: 26 min, plus 13 in closed details.

Qwen competes on coverage, a full ladder of sizes and modalities in every generation, and pays for it with one loop: an experimental model tests an idea, the flagship adopts it, the mainline inherits it, and the small models are distilled from the result. Since Qwen3-Next (September 2025) every idea in that loop has bought capacity without paying for it per token.

Fig. 1 draws the loop from the released configs: one slab per layer, blue full attention, green Gated DeltaNet, orange QSA; a tower's footprint is its hidden size.

  1. Qwen3, April 2025: the starting point. Qwen3-235B-A22B has 94 layers, every one full attention, each followed by an MoE of 128 experts, top-8, no shared expert. Qwen3-30B-A3B (48 layers) is one of the small models distilled from the flagships rather than post-trained in full.
  2. Qwen3-Next, September 2025: the test. 48 layers as 12 blocks of three Gated DeltaNet layers (a fixed-size state, not a growing cache) and one gated-attention layer: 36 linear and 12 full, plus 512 small experts.
  3. Qwen3.5, February 2026: the flagship adopts it. Qwen3.5-397B-A17B takes the 3:1 layout to flagship scale: 60 layers, 15 of them full attention.
  4. Qwen3.8, August 2026: the mainline inherits it. Qwen3.8-27B (64 layers, 16 full, dense feed-forward) and Qwen3.8-2.4T-A95B (92 layers, 23 full). So the block of four repeats 12 times in Qwen3-Next and Flash-Next, 15 in Qwen3.5-397B, 16 in Qwen3.8-27B, 23 in Qwen3.8-2.4T-A95B (config.json).
  5. One Qwen3.8 block, close up. Three of four layers keep a fixed state; the fourth is gated attention: softmax over every key, a sigmoid gate per head, head dimension 256, rotary position on a quarter of the dimensions. After every mixer an MoE: 512 experts, 10 routed plus 1 shared (Qwen3: 128, top-8, no shared expert).
  6. Flash-Next, August 2026: the next test. Qwen3.8-Flash-Next keeps the 3:1 layout and swaps its 12 attention layers for QSA, which reads 2,048 selected tokens. It previews Qwen4, so the loop starts again.

You need: Mixture of experts (routing, shared experts), Beyond attention (linear attention and the delta rule), Attention variants (GQA, DSA and other trained sparse attention) and Long context (KV-cache sizing). This page says what Qwen chose and why; those pages teach the mechanisms.

New terms

A-notation
"235B-A22B": 235 billion parameters stored, 22 billion used per token. Memory is priced on the first, decode speed on the second; their ratio is the sparsity ratio (about 11 times here).
Shared expert
An expert every token passes through regardless of the router, beside the top k routed experts.
Gated DeltaNet (GDN)
Qwen's linear-attention layer: before writing a value it erases what the state stores under that key (the delta rule), and it decays the whole state by a learned per-token gate, so memory per request does not grow with context.
Hybrid layout
A stack that interleaves linear-attention and full-attention layers (Qwen: three to one).
Gated attention, QSA
Qwen's softmax attention with a sigmoid gate on each head's output; Qwen Sparse Attention, where a small indexer scores micro-blocks of tokens and attention reads only the selected ones.
Thinking budget, snapshot id
A caller-set cap on chain-of-thought tokens; a date suffix (Qwen3.8-Max-0902) naming one post-trained state of a model whose name stays fixed.

Where Qwen differs beyond the figure

The figure already shows the architecture choices (Gated DeltaNet three layers in four, gated attention, QSA, 512 small experts). What it cannot show:

ChoiceOthers usuallyQwenFirst shipped
Load balancingBalance experts within each micro-batchBalance over the global batchQwen3
Extra capacityMore experts or more layersA 51B-parameter hashed n-gram embedding off the accelerator; a four-branch gated residual streamQwen3.8-Flash-Next
Reasoning modesSeparate chat and reasoning modelsOne checkpoint, think and no-think, a thinking budget (later split again)Qwen3
Small modelsFull post-training at every sizeStrong-to-weak distillation from the flagshipQwen3
Every difference in one table, the figure's rows included
LayerStandard designQwen's answerFirst shipped
Expert layoutFine-grained routed experts plus a shared expert (DeepSeek's layout)128 experts, top-8, no shared expert, balanced over the global batchQwen3
Expert layout, from Next onTens to a few hundred experts512 very small experts, 10 routed plus 1 sharedQwen3-Next
Token mixingSoftmax attention in every layerThree Gated DeltaNet layers per full-attention layerQwen3-Next
Full-attention layersPlain attention, full rotary embeddingSigmoid output gate per head, head dimension 256, rotary embedding on a quarter of the dimensionsQwen3-Next
Long-context readsEvery query reads every key in the full-attention layersQSA: an indexer picks 512 micro-blocks of 4 tokens; attention reads only thoseQwen3.8-Flash-Next
Extra capacityMore experts or more layersA 51B-parameter hashed n-gram embedding held off the accelerator, and a four-branch gated residual streamQwen3.8-Flash-Next
Reasoning modesSeparate chat and reasoning modelsOne checkpoint with think and no-think modes and a thinking budget (later split again)Qwen3
Small modelsThe full post-training pipeline at every sizeStrong-to-weak distillation from the flagshipQwen3

The strategy: breadth, and a licence per checkpoint

Where DeepSeek optimises cost per served token and Moonshot optimises frontier capability per training run, Qwen optimises coverage. Every generation ships a ladder from sub-billion models that run on a phone, through mid-size dense models, to a sparse flagship, in several modalities: Coder, VL (vision-language), Audio, Math and Embedding. A Qwen base exists at whatever size and licence a project needs, so Qwen bases became the default starting point for open research and for distillation, including DeepSeek's own R1 distillations. The same models are the paid, hosted option on Alibaba Cloud Model Studio.

The licence is not one licence: check the checkpoint, not the family

Every open checkpoint from Qwen3 to Qwen3.5 was Apache 2.0 (commercial use and redistribution with essentially no conditions), and the mid-size mainline still is: Qwen3.8-27B (model card). Before Qwen3 and at the top after Qwen3.5, it is not:

CheckpointsLicenceThe clause that bites
Qwen-7B, Qwen-72B, Qwen1.5, Qwen2-72BTongyi Qianwen LicenseA product with more than 100 million monthly active users needs a separate licence; the model or its outputs may not be used to improve any other large language model (Qwen-72B licence).
Qwen2.5-72BQwen LicenseKept the 100-million clause (licence).
Qwen2.5-3BResearch onlyNo commercial use (licence).
Qwen3.8-2.4T-A95B (open flagship)Qwen3.8-Max LicenseAbove 100 million monthly active users or 20 million US dollars of monthly revenue, display the model name. A group running a model-as-a-service or "AI work assistant" (coding or office productivity) business with revenue above 50 million US dollars in any twelve months needs a separate licence (licence).
Qwen3.8-Flash-Next (Qwen4 preview)Qwen Community License 1.0Same attribution thresholds, but any model-as-a-service or AI work assistant business needs a separate licence at any size (licence).
Qwen-Image-2.1Qwen Research License AgreementNon-commercial only; commercial use needs a separate, unpublished agreement (licence; detail on Topic: generative-and-multimodal).

Both custom 2026 licences exempt internal use whose outputs never reach a third party. The GitHub repository and the family name tell you nothing: read the LICENSE file of the checkpoint you deploy, or check a use case against about thirty checkpoints in the Licence checker.

How the design got here

The order matters because it is the loop in action. A dense ladder at every release from 2023 to 2024 made Qwen bases the default open starting point, under licences that tightened at the largest sizes. Qwen3 (April 2025) put every open checkpoint under Apache 2.0, with hybrid thinking. Qwen3-Next (September 2025) tested the 3:1 hybrid and 512 experts; Qwen3.5 (February 2026) took that layout to flagship scale; Qwen3.6 and 3.7 (April to June 2026) kept the top tier closed. Qwen3.8 (August 2026) open-weighted a Max-class flagship for the first time under a custom licence, shipped the Apache 2.0 Qwen3.8-27B, and previewed Qwen4 with Flash-Next, which now tests QSA the same way. The hosted Max has since moved to dated snapshots, and the first Qwen4 model, Qwen4-Max (November 2026), shipped hosted only: the open Max-class flagship of 3.8 was not repeated at launch.

Green takes over from Qwen3 on; the flagship and preview tiers turn to custom licences in August 2026

One dot per release: filled dots are open weights, rings are closed, hosted models; colour is the licence; dot size follows total parameters where published. Click a dot to open its release note below. Dates are announcement dates where a dated announcement was found; otherwise the date the Hugging Face repository was created, which can precede the public release by a few days.

Release notes, release by release (sizes, dates, licences and sources)

Qwen (1.0)

Qwen-7B August 2023 (repository 3 August); Qwen-72B November 2023 (repository 26 November) · Tongyi Qianwen License
  • The first open-weight Qwen models, base and chat (GitHub).
  • The licence asks a product above 100 million monthly active users to request a licence, and forbids using the model or its outputs to improve any other large language model (licence).

Qwen1.5

February 2024 (repositories 30 January); Qwen1.5-MoE-A2.7B 28 March 2024 · Tongyi Qianwen License
  • The dense ladder again, plus the first Qwen MoE: 14.3B total and 2.7B active, matching 7B dense models at lower cost (Qwen blog).

Qwen2

June 2024 (repositories 28 May to 4 June) · Tongyi Qianwen at 72B, Apache 2.0 at 7B and below
  • The first generation with Apache 2.0 below the flagship size: Qwen2-7B-Instruct is Apache 2.0, Qwen2-72B-Instruct Tongyi Qianwen (7B, 72B).

Qwen2.5, Qwen2.5-Coder and QwQ

Qwen2.5 19 September 2024; Coder-32B November 2024; QwQ-32B-Preview 28 November 2024; QwQ-32B March 2025
  • A dense family from 0.5B to 72B trained on 18T tokens (Qwen blog), plus Coder, VL, Audio and Math variants.
  • Most sizes are Apache 2.0. The 72B is under the Qwen License, with the 100-million-user clause and a "Built with Qwen" notice for models trained on it. The 3B is research only (72B licence, 3B licence).
  • Qwen2.5-72B and Qwen2.5-Coder-32B (Apache 2.0) became default open bases.
  • QwQ-32B was the first Qwen reasoning model. It was notable for showing that a 32B model could reach reasoning behaviour previously seen only in far larger ones (QwQ-32B-Preview). The March 2025 QwQ-32B is Apache 2.0.

Qwen3

29 April 2025 (Qwen blog) · Qwen3 report · Apache 2.0
  • Dense 0.6B, 1.7B, 4B, 8B, 14B and 32B; MoE 30B-A3B and 235B-A22B (128 experts, 8 active, no shared expert).
  • Single checkpoints with think and no-think modes and thinking budgets; 36T-token pretraining in 119 languages.
  • From here on every open Qwen language checkpoint until Qwen3.8's flagship is Apache 2.0.

Qwen3-2507 and Qwen3-Coder

21 July to 5 August 2025 · Apache 2.0
  • The 2507 updates (the suffix is the date) split Instruct and Thinking checkpoints at 235B-A22B, 30B-A3B and 4B (235B Instruct, 235B Thinking).
  • Qwen3-Coder-480B-A35B, released 22 July, routes 8 of 160 experts over 62 layers, with 256K native context (MarkTechPost, config).

Qwen3-Next

September 2025 (repositories 9 September) · blog · Apache 2.0

Qwen3-Max and Qwen3-VL

Preview 6 September 2025, release 24 September 2025 · closed
  • More than 1T parameters, closed: the first Qwen flagship held back from open weights (MarkTechPost).
  • Qwen3-VL-235B (Instruct and Thinking, 23 September 2025) carried open vision (Presenc).

Qwen3.5

16 February 2026 (CNBC) · card · Apache 2.0
  • Qwen3.5-397B-A17B, open weights: the Next layout at flagship scale (60 layers, 512 experts), with a vision encoder and 201 languages, aimed at the "agentic AI era". It was benchmarked on par with US frontier models of the moment.
  • Its hosted twin is Qwen3.5-Plus.

Qwen3.6

April 2026 · Apache 2.0 at 35B-A3B and 27B; closed Plus and Max preview
  • Qwen3.6-35B-A3B (16 April) was the first open-weight model of the generation, a sparse multimodal MoE with 3B active, under Apache 2.0 (MarkTechPost). Qwen3.6-27B followed (repository 21 April, Apache 2.0; card).
  • Qwen3.6-Plus (proprietary) and a Qwen3.6-Max Preview kept the top tier closed (Presenc).

Qwen3.7

Qwen3.7-Max 20 May 2026; Qwen3.7-Plus 2 June 2026 · closed
  • Qwen3.7-Max was announced at the Alibaba Cloud Summit: closed-weight and text-only, with a 1M-token context (MarkTechPost).
  • Qwen3.7-Plus is multimodal and served on Alibaba's Bailian platform (Model Studio internationally) (MarkTechPost). The Flash-Next paper's Table 11 gives it 397B parameters with 17B activated; it is the "397B-A17B predecessor" Flash-Next is measured against (paper).

Qwen3.8-Max and the open 2.4T-A95B

Preview 19 July 2026; launch 3 August 2026 (Alibaba); open weights 12 August 2026 · Qwen3.8-Max License (open) / closed (hosted)
  • A 2.4T-parameter sparse MoE with 95B active and hybrid attention, multimodal, with a 1M-token context. At launch it was fifth on Text Arena, second on Vision Arena and fourth on Frontend Code Arena (Alibaba).
  • On 12 August Alibaba open-weighted Qwen3.8-2.4T-A95B, the first open Max-class flagship. That was a strategy change: the Max tier had been the one thing kept closed. The open release is text-only and thinking-only (card).

Qwen3.8-27B

14 August 2026 (Willison) · card · Apache 2.0
  • Dense feed-forward layers with the 3:1 hybrid attention (64 layers, 48 of them Gated DeltaNet), native image and video understanding, and 262K context extensible to 1M.
  • Simon Willison found it excellent but prone to "wildly overthinking" at its default effort (Willison). XDA handed it a reverse-engineering job it finished in about 30 minutes (XDA).

Qwen3.8-Flash-Next

26 August 2026 (TechNode) · card · paper · Qwen Community License 1.0
  • An open-weight preview of the Qwen4 architecture, released early so developers can prepare for the full Qwen4 family:
    • 125B total and 6B active, a causal LM plus a vision encoder;
    • 262,144-token native context, extensible to 1M;
    • Gated DeltaNet plus QSA.

Qwen3.8-Max-0902

2 September 2026 (TechNode) · closed
  • A post-trained snapshot of the 2.4T flagship rather than a new version. It keeps the 1M-token context and was further post-trained on coding and Cowork-style agentic tasks. Its Frontend Code Arena score rose 22 points to 1,691, first on that leaderboard at release.
  • The convention matters more than the model. Alibaba now ships dated snapshots instead of incrementing version numbers, so "Qwen3.8-Max" is no longer a single artifact, and any reproducible result must pin the snapshot id.

Qwen-Image-2.1

September 2026 (repository 14 September; licence dated 20 September) · Qwen Research License

Qwen4-Max

Preview 11 November 2026; API 16 November 2026 (Qwen) · closed
  • The first Qwen4 model is a hosted Max with no weights: "a new architecture, native vision, 1M context", with OpenAI- and Anthropic-compatible APIs. Alibaba has not published its size; secondary reports describe a 2.4T backbone with active parameters cut from about 95B to about 71B, which this page treats as unconfirmed (KuCoin, carrying MetaEra, Crypto Briefing).
  • Its pitch is tokens, not score: Alibaba reports Terminal-Bench 4.0 at 48.5 against 37.9 for Qwen3.8-Max at the same xhigh tier, with tokens per attempt down from 289K to 151K (vendor-reported).

The MoE layer: from no shared expert to 512 tiny experts

Qwen3: 128 experts, top-8, no shared expert. Qwen3-235B-A22B has 94 layers, each with 128 experts, of which the router picks 8 per token (Qwen3 report, Table 2; config). The report states both departures from its predecessor: "Unlike Qwen2.5-MoE, the Qwen3-MoE design excludes shared experts", and it adopts the global-batch load-balancing loss "to encourage expert specialization". DeepSeek, by contrast, routes 8 of 256 finer experts plus a shared expert that absorbs the common computation. Leaving it out is simpler and adds no fixed cost per token, at the risk that every routed expert relearns general behaviour.

From Qwen3-Next on: 512 experts, 10 routed plus 1 shared

Qwen3-Next reversed the no-shared-expert choice and pushed granularity much further: 512 experts, 10 routed per token plus 1 shared, each expert's hidden width only 512, and the router's parameters normalised at initialisation so no expert is favoured before training (model card, blog, config). Every later large Qwen keeps the layout: Qwen3.5-397B-A17B, Qwen3.8-2.4T-A95B and Qwen3.8-Flash-Next all route 10 of 512 plus 1 shared (Qwen3.5 card, 2.4T card, Flash-Next card). "Qwen has no shared expert" is true of the Qwen3 generation only.

In Fig. 3 one block is one expert in one layer, its area to scale between releases; blue blocks are the routed experts this token uses, orange the shared expert.

  1. Qwen3-235B-A22B: 128 experts, top-8, no shared expert. One expert is 3 × 4,096 × 1,536 = 18,874,368 parameters; the router lights 8 of 128, 6.25% of the layer.
  2. Qwen3-Next-80B-A3B: 512 tiny experts and a shared one. 10 of 512 routed plus 1 shared (orange, always on), each expert only 3 × 2,048 × 512 = 3.1M parameters: 2.1% of the layer lit.
  3. Qwen3.5-397B-A17B: the same layout, wider experts. 3 × 4,096 × 1,024 = 12.6M per expert; 60 layers × 513 experts = 387.3B of the 397B.
  4. Qwen3.8-2.4T-A95B: the largest experts. 3 × 8,192 × 2,048 = 50.3M per expert, so the same 512 blocks cover a far larger grid; the shared expert has the same width; 92 × 513 × 50.3M = 2.375T, the 2.4T headline.
  5. All five to scale. A token now lights 2.1% of a layer's experts instead of 6.25%, and each expert is bigger: 10 of 512 routed is 1.95% (2.1% counting the shared expert) against 8 of 128, 6.25%, which is what lets total parameters grow far faster than per-token compute. Flash-Next's experts are 3 × 2,560 × 640 = 4.9M, 121.0B stored inside its 125B. Which experts light is illustrative (a seeded pick); how many, and their sizes, come from each config.json.

Where the parameters live. Each expert is a SwiGLU block with three matrices (gate, up, down), so Pexpert = 3dmodeldff, stored L × E × Pexpert and active L × k × Pexpert (E and k count the shared expert).

Step 4 of Fig. 3 reproduces the 2.4T headline from its config (3 × 8,192 × 2,048 = 50,331,648 per expert). Experts are 97 to 99% of every Qwen MoE; the worked examples are in the depth block.

ModelTotal / activeRatioExperts per layer
Qwen3-235B-A22B235B / 22B11x128, top-8, no shared
Qwen3-Next-80B-A3B80B / 3B27x512, top-10, plus 1 shared
Qwen3.5-397B-A17B397B / 17B23x512, top-10, plus 1 shared
Qwen3.8-2.4T-A95B2.4T / 95B25x512, top-10, plus 1 shared
Qwen3.8-Flash-Next125B / 6B21x512, top-10, plus 1 shared

Ratio = total ÷ active, rounded (235/22 = 10.7, 80/3 = 26.7, 397/17 = 23.4, 2,400/95 = 25.3, 125/6 = 20.8). The Configs tab recomputes every stored and active figure from config.json.

Flash-Next's 21x is the most aggressive ratio among the flash-tier models on Mixture of experts, though not in the open frontier as a whole: DeepSeek V4 Pro sits near 33x and Kimi K3 near 27x at flagship scale. What 6B active buys is the absolute figure, since 6B active costs roughly what a 6B dense model costs to decode. High sparsity still costs memory for every expert, all-to-all traffic, harder balancing and harder fine-tuning, because each expert sees fewer tokens; the shared expert's return answers the last: at 512 experts each routed expert sees about one fiftieth of the token stream (10/512), and an always-on expert keeps the common computation in one well-trained place.

Global-batch balancing: balance over the mix, not over each document

A load-balancing loss (Mixture of experts owns it) is usually computed per micro-batch: a few sequences, often packed from one domain, so a micro-batch of pure code is pushed to spread over experts that should not see code. Qwen computes the same statistics over the whole global batch, synchronised across data-parallel ranks, so a code sequence may route to code experts as long as the diverse mix is balanced.

The evidence (Qiu et al., 2025, up to 42.8B total parameters on 400B tokens): about 0.1 lower pre-training perplexity, about 2 points on benchmarks, much stronger domain specialisation of experts, and under 3% extra latency, because the synchronised statistic is one number per expert. The catch: a router balanced over the corpus can be unbalanced within one sequence, and so on individual devices at serving time.

The same routing costs 4 times the minimum per micro-batch and nothing over the global batch

Predict, then slide: at 100% each domain sends its tokens to its own two experts; towards 0% routing is uniform and the two measures agree. Illustrative toy: 8 experts, four single-domain micro-batches, Pi = fi; the formula is the paper's (eq. 2 and 3), in the depth block.

Attention: the 3:1 hybrid of Gated DeltaNet and gated attention

A linear-attention layer keeps a fixed-size state per head instead of a growing cache, so its memory per request is constant and its cost linear in sequence length; the price is lossy recall of early tokens, which a few full-attention layers buy back. Beyond attention owns the mechanism (the gated delta rule St = αtSt−1(I − βtktkt⊤) + βtvtkt⊤ of Yang et al., 2024, with a worked demo of why a write that replaces beats one that piles up). What Qwen chose:

  • The ratio. Qwen3-Next has 48 layers as 12 × (3 × (Gated DeltaNet → MoE) → 1 × (Gated Attention → MoE)): 36 linear and 12 full. Qwen's blog says that at 3:1 "the model consistently outperforms any monolithic architecture", all-attention or all-linear (Qwen3-Next blog).
  • The output gate. In Flash-Next the DeltaNet output gate is a sigmoid where the original Gated DeltaNet uses SiLU; the paper reports "consistent improvements" (Flash-Next architecture paper, eq. 6 to 11). The Qwen3.8-27B and 2.4T configs still list output_gate_type: swish (27B config, 2.4T config); Flash-Next's lists sigmoid (config).
  • The interval, everywhere since. Qwen3.5-397B has 60 layers, 15 full; Qwen3.8-27B 64, 16 full (its feed-forward layers are dense, so it is "dense" in the MoE sense only); Qwen3.8-2.4T-A95B 92, 23 full; Flash-Next 48, 12 of them sparse attention.

Why not more linear layers. Recall through the state is lossy; the retrieval and copying behaviours agents depend on travel through the full-attention layers, which the paper calls "particularly important for long-context performance". Those layers keep their rotary embedding: a variant without positional encoding (NoPE) looked the same in pre-training, but after post-training showed "a substantially higher rate of endless generation" (Flash-Next paper).

With one full-attention layer in four, the Gated DeltaNet hybrid beats all-full attention by 3.9 points

Average of 9 base-model benchmarks (MMLU, MMLU-Pro, SuperGPQA, MATH, GSM8K, BBH, MMMLU, EvalPlus, MultiPL-E), unweighted. Each model is a 28-layer 25B-A3B MoE on the Qwen3.5 architecture, trained on 400B tokens at 4K and then 80B at 32K; the sliding-window (SWA) layers use a 128-token window. The GDN hybrid beats full attention on 8 of the 9 benchmarks and the SWA hybrid on 7 (Flash-Next paper, Table 1: 49.87, 51.15, 53.81).

Qwen's full-attention layer: gated attention

  • An output gate: each head's output is multiplied by σ(Wgxt) before the output projection. Qwen's own NeurIPS 2025 paper found it removes the attention sink (attention on the first token fell from 46.7% to 4.8%) and the massive activations that go with it, and improves stability and long-context extrapolation (Qiu et al., 2025); Attention variants owns sinks and gates, with the full numbers.
  • Head dimension 256 instead of 128, with few key-value heads: 2 in Qwen3-Next, Qwen3.5 and Flash-Next, 4 in Qwen3.8-27B and the 2.4T model.
  • Rotary embedding on the first 25% of dimensions only (64 of 256, partial_rotary_factor: 0.25 in every hybrid's config); the rest carry no position signal, which the blog credits with better length extrapolation. Partial RoPE is taught on Positional encodings.

What the cache costs. Only the full-attention layers grow a cache. Qwen3-235B (94 full layers, 4 KV heads of 128) stores 188 KiB per token, 47 GiB for one request at 262,144 tokens; Qwen3-Next stores 24 KiB per token, 6 GiB, plus 36 MiB of fixed DeltaNet states, which are cheaper than the cache they replace beyond 512 tokens. Across the 3.8 generation: Qwen3.5-397B 30 KiB, Qwen3.8-27B 64 KiB, Qwen3.8-2.4T-A95B 92 KiB, half of what Qwen3-235B needs for ten times the parameters. The arithmetic is in the depth block; every Qwen checkpoint is a preset in the KV-cache calculator.

What it bought, as Qwen reported it (Qwen3-Next blog, vendor figures on Qwen's own serving stack):

  • Training. Qwen3-Next was pretrained on 15T tokens, a uniformly sampled subset of Qwen3's 36T, with less than 80% of the GPU hours of Qwen3-30B-A3B and 9.3% of the compute cost of the dense Qwen3-32B, and outperformed Qwen3-32B-Base on most benchmarks.
  • Throughput against Qwen3-32B. Prefill nearly 7 times at 4K context and over 10 times beyond 32K; decode nearly 4 times at 4K and over 10 times beyond 32K.
One decoded token: three layers read a fixed state, so only one layer's read grows with context

One decoded token through one block, in three versions

The same token in three versions of Qwen3.8-Flash-Next: every layer full attention (a counterfactual), as pretrained (the 3:1 hybrid), and as shipped (hybrid plus QSA, next section). Each grid is one layer's memory at the chosen context, to the same scale; a DeltaNet state is the size of 768 tokens of cache. Predict: at 1,000,000 tokens, which layer dominates the hybrid's read? Play the full version, then the hybrid, then raise the context: the three green states shrink to a sliver while the fourth layer still reads everything, and QSA reads only the highlighted blocks.

  1. A token arrives. The same token, the same block, but three of the four layers are now Gated DeltaNet. Each holds a fixed state of 48 value heads × 128 × 128 = 786,432 numbers, drawn in green at the same scale: the cache of 768 tokens. The dashed outline is what a full-attention layer would hold at 32,768 tokens.
  2. Layer 1, Gated DeltaNet: decay, erase, write. The whole state is multiplied by the learned decay αt; the delta rule subtracts what the state currently returns for key kt and writes the new value vt with strength βt. A write replaces an association instead of piling on top of it, and the state does not grow.
  3. Read the state. The output is ot = Stqt: 786,432 numbers read, whatever the context length. The price is that the state is a lossy summary: exact recall of one early token degrades.
  4. Layers 2 and 3: the same, each with its own state. Two more fixed reads of 786,432 numbers. Three layers of four now cost the same at 4K tokens as at 1M.
  5. Layer 4, gated attention: append and read every key. The fourth layer keeps exact recall: ordinary softmax attention over all 32,768 cached tokens, 33,554,432 numbers, with a sigmoid gate multiplied onto each head's output. This is the path retrieval and copying travel through.
  6. The bill for one block. 3 × 786,432 + 32,768 × 1,024 = 35,913,728 numbers read per token per block. The stored cache is a quarter of the all-attention stack's (12 layers instead of 48), plus a fixed 54 MiB of states. A state beats the cache it replaces from 786,432 / 1,024 = 768 tokens of context on.
How the animation counts

Dimensions from config.json: 2 KV heads of 256; 48 value heads of 128 × 128 per DeltaNet layer; an indexer with one 128-dimension key head, a 2,048-token budget and blocks of 4. Counters count numbers read from memory for attention and state, not time; weights and the token's own writes are left out. The indexer's cached keys are assumed to be one compressed 128-number key per block (the paper does not give the cache layout). Which blocks light up is illustrative; how many is computed.

QSA and the Qwen4 preview: Qwen3.8-Flash-Next

Qwen3.8-Flash-Next was released on 26 August 2026 as an explicit preview of the Qwen4 architecture, to give developers "an opportunity to prepare for the full Qwen4 model family" (TechNode). It keeps the 3:1 layout and changes what the quarter of global layers do (Flash-Next card, Flash-Next architecture paper). The model is pretrained with ordinary full attention there; at continued pretraining (256K-token sequences) those layers, and the one in the MTP module, are replaced by Qwen Sparse Attention, two passes per query:

  1. A compressed indexer scores micro-blocks. Keys are average-pooled over blocks of r = 4 tokens, and a small multi-query attention (4 query heads, 1 shared key head of 128) scores every block.
  2. Attention reads only what was selected. Attention (24 query heads, 2 KV heads of 256) reads the top ⌈K / r⌉ = 512 blocks, a token budget of K = 2,048, plus the tokens of the last, unfinished block, which are always kept.

Why blocks. The indexer's own cost. DeepSeek's DSA scores individual tokens, and "as sequence length increases, the overhead of its O(n²) indexer remains non-negligible"; compressing keys fourfold cuts indexer work and top-k selection by about the compression ratio, from O(n2) to O(n2/r). Switch the animation beside to "Hybrid + QSA" to watch both passes. With QSA, Qwen joins DeepSeek (DSA, then CSA), Moonshot (KDA) and MiniMax (MSA) in shipping a trainable sparse or linear attention in an open-weight line; Zhipu's GLM-5.3-Flash, released the same week, pools every four indexer keys into one in the same way (Zhipu: GLM; MarkTechPost comparison).

Trained in two phases (indexer alone on about 2B tokens, then indexer and backbone together on about 200B), the language-modelling loss stays within about 10−4 of the full-attention run.

Results against full attention (same model, Flash-Next paper, Tables 2 to 4): QSA matches or beats full attention on 7 of 8 short-context benchmarks (average 75.9 to 76.8), and does better as context grows: RULER beyond 512K from 90.08 to 93.00; 8-needle MRCR from 30.66 to 40.53 at 512K and from 20.71 to 26.44 at 1M. The MTP draft's mean accepted length is unchanged (4.06 against 4.07).

Worked example at T = 1,000,000 (Flash-Next's extended context): the indexer scores 1,000,000 ÷ 4 = 250,000 blocks; attention reads 2,048 tokens instead of 1,000,000, about 488 times fewer. The measured speedup of the attention module at 1M is 7.6 times for prefill and 4.9 times for decode, not 488, because the indexer still scans every block and selection and gathering cost time (kernel-level measurements; speedups start at 64K).

The cache does not shrink

Every key must stay available for the indexer to choose from, so Flash-Next still stores 12 × 2 × 2 × 256 × 2 bytes, 24 KiB per token, plus the indexer's keys. QSA cuts reads and arithmetic, not storage. And the selection is hard: a block the indexer scores low is never read, however much it mattered.

The other Qwen4-preview changes: capacity off the accelerator

  • The n-gram embedding is looked up at layer 2 with a contextual gate. Its address is known from the input tokens alone, so the table can live in host memory and be prefetched while layer 1 runs: capacity at negligible per-token compute and no accelerator memory. A larger n-gram vocabulary lowered loss monotonically while downstream accuracy saturated, one of several places where the paper found loss and benchmarks disagreeing.
  • A gated residual stream widened to 4 branches, read through a sigmoid gate and written back with one scalar per branch, instead of hyper-connections' 4 × 4 mixing matrix.
  • Muon for the two-dimensional weight matrices, AdamW for the rest; the full run had no loss spike, without qk-clip or other activation clipping.
  • Also: a vision encoder, and 262,144 tokens of native context, extensible to 1,000,000.
Flash-Next's "125B" leaves out a 51B n-gram table that lives in host memory

Parameters to scale. Experts 121.0B (512 + 1 of width 640 over 48 layers, from config); the rest of the 125B backbone about 4B (derived: 125 − 121.0); 4B of multi-token-prediction parameters; and 20,000,000 bigram and trigram entries × 2,560 = 51.2B of n-gram embedding, about 102 GB in 16-bit (derived), outside the headline. Per token, only 6B are activated.

The headline. The base model was compared with the previous generation's 397B-A17B flagship, which the paper's Table 11 names as Qwen3.7-Plus, a closed, hosted model (not the open Qwen3.5-397B-A17B of the same size). Flash-Next leads on 8 of 14 benchmarks and trails on the other 6 by at most 2.6 points, with a third of the activated parameters, a third of the training tokens and about a ninth of the training FLOPs. It also beats Qwen3.8-27B-Base on all 14.

It shipped the same week as Zhipu's GLM-5.3-Flash (320B total, 18B active; TechNode) and Tencent's Hy4 preview (770B total, 49B active; Hugging Face): the open frontier competes on active-parameter efficiency and attention sparsity rather than total parameter count.

A third of the active parameters, and within 2.6 points of the old flagship everywhere

Flash-Next-Base minus Qwen3.7-Plus-Base, in points, from Table 11. Defaults reproduce the paper's "8 of 14" and "at most 2.6" independently: the largest trail is MultiPL-E at 2.59. Base models, pre-training evaluation, the paper's own pipeline. The ninth of the FLOPs is the paper's figure; Qwen3.7-Plus's token count is unpublished, so it cannot be recomputed.

Post-training: one checkpoint that thinks or not, and a ladder that ships at once

One checkpoint, two modes. From Qwen3, a single checkpoint serves both a fast direct answer and a long chain of thought (Qwen3 report, section 4.3). The caller picks with a chat-template switch, or with /think and /no_think flags in the system or user message; the model follows the last flag it sees and thinks by default. In no-think mode the assistant turn still carries an empty thinking block, so the format is identical in both modes. The behaviour comes from stage 3, thinking mode fusion: continued fine-tuning on a mix of thinking and non-thinking data, each marked with its flag, the thinking data generated by the stage-2 model itself through rejection sampling.

Only the large models get the four-stage pipeline; the small ones are distilled from them in two phases

The Qwen3 recipe (Qwen3 report, sections 4.1 to 4.5): (1) long chain-of-thought cold start, supervised fine-tuning on reasoning traces; (2) reasoning RL, GRPO on 3,995 query-verifier pairs; (3) thinking mode fusion; (4) general RL across tasks and formats. Stage 3, thinking mode fusion, is where one checkpoint learns both modes; the dashed arrow is the teacher signal. The RL machinery of stages 2 and 4 is on RL for LLMs, which also covers GSPO, the Qwen team's sequence-level variant of GRPO.

The thinking budget. The caller caps the thinking tokens. When the chain reaches the cap, the serving code halts it and inserts a fixed instruction, "Considering the limited time by the user, I have to give the solution based on the thinking directly now.", then the closing think tag, and the model answers from the partial reasoning. The report says this ability "is not explicitly trained but emerges naturally" from thinking mode fusion; accuracy on its mathematics, coding and STEM evaluations rose smoothly with the budget, up to the 32K-token budgets plotted. Reasoning depth becomes a runtime dial, which matters because reasoning tokens are the dominant cost and latency term in an agentic loop and most requests do not need them. How other labs expose the same dial is on Topic: llm-landscape (test-time compute).

Small checkpoints loop in thinking mode (one measurement, published 2 November 2026)

The thinking chain has no floor on quality: a small model can repeat itself until the cap ends it. With thinking on and Qwen's recommended sampling, 93.0% of Qwen3.5-0.8B's MATH-500 answers ran to the 32,768-token limit, and it scored 7.9%; the model card warns about these loops, and switching thinking off avoids them. In an MIT CSAIL experiment (one run per budget), GPT-6 Astra found a rank-one edit to 131,072 weights (0.016%) that cut the share at the limit to 33.1% and lifted MATH-500 to 48.1%; the same procedure did nothing for Gemma 3 270M, which rarely loops (Weight-space programming).

A budget below what the model wants cuts the chain and forces an answer; above it, nothing happens

With a 1,024-token budget, a chain that wanted 3,000 tokens stops at token 1,024 and answers from about a third of its reasoning; at 4,096 the chain ends on its own and the budget never binds. Chain lengths are illustrative; the inserted text is the report's.

The split. One set of weights serving both modes appears to leave quality on the table at the top end, presumably because the two behaviours want different post-training distributions; the trade is operational simplicity (one deployment, one KV cache, one set of weights in memory) against peak quality in each mode. Alibaba acknowledged it: the Qwen3-2507 refresh shipped separate Instruct (non-thinking) and Thinking checkpoints at 235B-A22B, 30B-A3B and 4B, between 21 July and 5 August 2025 (Instruct-2507, Thinking-2507). The split persists at the top: the open Qwen3.8-2.4T-A95B is thinking-only and text-only ("thinking cannot be disabled"), while the hosted Qwen3.8-Max adds vision input, non-thinking modes and built-in tools (2.4T card). Flash-Next and 27B think by default but can switch it off per request, with a reasoning_effort of low, medium or xhigh (Flash-Next card).

Strong-to-weak distillation: why the whole ladder ships the same day

The Qwen3 report builds the five small dense models (0.6B, 1.7B, 4B, 8B, 14B) and Qwen3-30B-A3B by distilling from Qwen3-32B or Qwen3-235B-A22B in two phases instead of four stages: off-policy, fine-tuning on outputs the teachers generated in both /think and /no_think modes; then on-policy, where the student generates its own responses and its next-token distribution on them is pulled toward the teacher's by minimising the KL divergence, so it learns from the teacher's whole distribution at every position rather than one correct token. On Qwen3-8B, from the same off-policy checkpoint (55.0 and 42.8 on AIME'24 and '25), on-policy distillation reached 74.4 and 65.5 on AIME'24 and '25 for 1,800 GPU hours, where RL reached 67.6 and 55.5 for 17,920: 1,800 ÷ 17,920 = 10.0%, the report's "approximately only 1/10 of the GPU hours" (Table 21). Distillation also raised pass@64 (90.0 to 93.3 on AIME'24); RL did not move it. That ratio makes a family from 0.6B to 235B releasable at once (the same mechanism made R1's distilled models work), at the cost of a ceiling: a student inherits its teacher's limits as well as its skills. Distillation and small language models owns on-policy distillation and puts this result beside the others; the Qwen3 Technical Report paper page reruns Table 21 as a toy.

The data behind it. Qwen3 was pretrained on about 36T tokens in 119 languages and dialects (Qwen2.5: 29), in three stages: over 30T general tokens at 4,096-token sequences; about 5T higher-quality tokens weighted to STEM, code, reasoning and synthetic data; and hundreds of billions of tokens at 32,768-token sequences for long context (Qwen3 report, section 3). Much of the specialised data is synthetic: Qwen2.5-VL transcribed PDF-like documents, and Qwen2.5, Qwen2.5-Math and Qwen2.5-Coder synthesised trillions of tokens of textbooks, question-answer pairs, instructions and code. Each release is a data generator for the next, particularly where correctness can be checked automatically and bad samples filtered out. Qwen3.5 extended coverage to 201 languages and dialects (Qwen3.5 card).

Models (volatile, read 1 October 2026; Qwen4-Max read 16 November 2026)

ModelParamsLicenceAA index v4.3Cost per taskNotes
Qwen4-Max, hostedNot publishedclosedThe first Qwen4 model: preview from 11 November 2026, API from 16 November; native vision, 1M context; $1.50 / $4.50 per million tokens (Crypto Briefing). Scores only on the newer scales: 43 on AA Intelligence Index v5.0.1, below Kimi K3.1 Pro's 46 (Artificial Analysis), and 63.20% on the Vals Index, 11th (Vals AI). No Qwen4 weights were on Hugging Face as of 16 November 2026.
Qwen3.8-Max (0902), hosted2.4T / 95B activeclosed45.4$5.41The 3.8 flagship: multimodal, with non-thinking modes and tools. Ships as dated snapshots, 0902 the latest, so pin the snapshot id.
Qwen3.8-2.4T-A95B2.4T / 95B activeQwen3.8-Max License39.9$2.16The open flagship: text-only and thinking-only.
Qwen3.8-Flash-Next125B / 6B activeQwen Community License 1.039.8$0.37The Qwen4 preview: Gated DeltaNet plus QSA, a vision encoder, 262K native context. The hosted Qwen3.8-Flash is built on it, with 1M context by default and built-in tools (card).
Qwen3.8-27B (xhigh)27B, dense feed-forwardApache 2.033.7$1.013:1 hybrid attention, native image and video understanding, 262K context extensible to 1M; the best small all-rounder. Simon Willison found it excellent but "wildly overthinking" at the default xhigh effort (Willison); XDA gave it a reverse-engineering job it finished in about 30 minutes (XDA).
Qwen3.5-397B397B / 17B activeApache 2.0The previous open flagship, still widely served.
Qwen3 / Qwen3-VL ladder0.6B to 235BApache 2.0Workhorse open bases everywhere.

Artificial Analysis Intelligence Index v4.3 (methodology v4.3.2) and AA's cost per index task in US dollars, read 1 October 2026 (Artificial Analysis); single measurements on one index version, not comparable with launch-day figures on earlier versions. Flash-Next scores 39.8 against the open 2.4T flagship's 39.9 at 17% of its cost per task. Cross-lab rankings are on Topic: llm-landscape. Arena placings quoted at launches (Text Arena, Vision Arena, Frontend Code Arena) are human pairwise-preference rankings: they measure which answer people prefer, not whether a task was done correctly, and move with formatting and verbosity as well as capability.

Flash-Next in a third-party sandbox test (incident, as of 2 November 2026)

Cohere reported on 26 October 2026 that in fewer than 1 in 100,000 of its sandboxed evaluation runs Qwen3.8-Flash-Next, given a routine task, tried to upload a test string to an Alibaba Cloud storage bucket; Cohere, a competitor of Alibaba, says it cannot tell deliberate behaviour from a training artefact, and the defence it points to, egress control around any agent, is on Agent security (Cohere).

Depth (closed)

Optional detail behind the sections above, in the order they appear.

Global-batch balancing: the loss, and why micro-batches are the problem
LBL=NE∑i=1NEfiPi
NE
number of experts
fi
fraction of the batch's tokens routed to expert i
Pi
the router's average probability for expert i over the same tokens

The loss is smallest (1) when traffic is even. Computed per micro-batch and then averaged, it forces even traffic within a handful of documents. Computing fi and Pi over the global batch, synchronised across all data-parallel ranks, demands balance only over the diverse mix. The extra communication is one number per expert per step (Qiu et al., 2025).

Expert parameters, worked: Qwen3-235B-A22B and Qwen3.8-2.4T-A95B
  • Qwen3-235B-A22B: dmodel = 4,096, dff = 1,536 (config), so Pexpert = 3 × 4,096 × 1,536 = 18,874,368. Stored: 94 × 128 × 18.87M = 227.1B, which is 97% of the 235B total. Active: 94 × 8 × 18.87M = 14.2B of the 22B; attention, norms and embeddings make up the rest.
  • Qwen3.8-2.4T-A95B: dmodel = 8,192, dff = 2,048, 92 layers, 513 experts stored per layer. Stored: 92 × 513 × 50.33M = 2.375T. Active: 92 × 11 × 50.33M = 50.9B of the 95B: at this scale the attention and DeltaNet layers are a much larger share of per-token compute than in Qwen3.
Qwen's Gated DeltaNet layer, in detail
  • Short causal convolution. Queries, keys and values pass through a short causal convolution and a SiLU before the recurrence (kernel 4 in every config). Queries and keys are L2-normalised.
  • Gate parameterisation. The write strength is βt = σ(Wβxt), and the decay αt is an exponential of a softplus, so it stays in (0, 1). The output is RMS-normalised and multiplied by the output gate.
  • Custom kernels. The recurrence has to run in a chunked parallel form to use tensor cores at all. Qwen's FlashQLA kernels run 2 to 3 times faster forward, and about 2 times backward, than the reference Triton kernels (FlashQLA, via the Flash-Next paper).
  • Two stability changes that arrived with Next. Zero-centred, weight-decayed layer normalisation: the norm's scale is parameterised as an offset from 1 and weight decay is applied to it, so norm weights cannot grow without bound (Flash-Next applies the same norm everywhere). And multi-token prediction (MTP): extra heads predict tokens further ahead and serve as a built-in draft for speculative decoding (the mechanism is on Families and objectives).
Gated attention: what Qwen's paper measured

Qwen's NeurIPS 2025 paper tested the output gate across 30 variants of 15B MoE (2.54B active) and 1.7B dense models trained on up to 3.5T tokens (Qiu et al., 2025). The gate adds non-linearity to the otherwise low-rank value-to-output path; makes the output query-dependently sparse; removes the attention sink, where heads dump weight on the first token because softmax must put its probability somewhere (46.7% of attention across layers went to the first token in the baseline, 4.8% with the gate), and the associated massive activations; and improves training stability, tolerance of higher learning rates and long-context extrapolation.

The cache arithmetic, Qwen3-235B against Qwen3-Next
KV bytes per token=Lfull×2×Hkv×dh×b

Lfull full-attention layers, one key and one value, Hkv key-value heads of dimension dh, b bytes per number (2 for 16-bit). A DeltaNet layer instead holds a fixed Hv × dk × dv numbers per request.

  • Qwen3-235B: 94 × 2 × 4 × 128 × 2 = 192,512 bytes, 188 KiB per token, 47 GiB at 262,144 tokens.
  • Qwen3-Next: 12 × 2 × 2 × 256 × 2 = 24,576 bytes, 24 KiB per token, 6 GiB at 262,144 tokens. Its 36 DeltaNet layers each hold 32 value heads of 128 × 128: 36 × 32 × 128 × 128 = 18,874,368 numbers, 36 MiB at 2 bytes, whatever the context.
  • Crossover. Had those 36 layers been full attention they would add 36 × 2 × 2 × 256 × 2 = 73,728 bytes (72 KiB) per token, so the fixed state is cheaper after 36 MiB ÷ 72 KiB = 512 tokens.
  • Qwen3.5-397B: 15 full layers with 2 KV heads of 256, 30 KiB per token; Qwen3.8-27B: 16 layers with 4 heads, 64 KiB; Qwen3.8-2.4T-A95B: 23 layers with 4 heads, 92 KiB.
  • These configurations also set mamba_ssm_dtype: float32. If serving keeps the DeltaNet state in 32-bit (unconfirmed), every state figure doubles; the KV-cache calculator has the toggle.
QSA in detail: the indexer, training, measurement, and the alternatives rejected

Indexer. Keys are average-pooled over blocks of 4 tokens, then normalised. Pooling happens before positional encoding, so tokens with different rotary phases are not averaged together; each block gets one position, its first token's. The indexer's rotary embedding covers 64 of its 128 dimensions. A block's score is the ReLU of the query-key similarity, summed over the 4 heads; only fully observed blocks can be scored.

Training. First only the indexer, for 1,000 steps of 8 sequences of 256K tokens (about 2B tokens), to match full attention's own distribution through a KL loss (summed over heads and max-pooled to blocks, so one salient token is not diluted). Then backbone and indexer jointly with QSA on, for 8,000 steps of 96 such sequences (about 200B tokens); the language-modelling loss stays within about 10−4 of the full-attention run.

Measurement. The 7.6 and 4.9 times speedups at 1M are kernel-level measurements against FlashInfer's paged grouped-query attention, with chunked prefill in 16K chunks at batch 1, and decode at batch 4 with three MTP steps.

IndexShare. The paper compared intra-layer compression with IndexShare, which shares one top-k across adjacent full-attention layers. QSA matched full attention at a quarter of the indexer latency; IndexShare stayed below full attention even at half. In a hybrid the full-attention layers sit three DeltaNet layers apart and resemble each other too little to share indices.

Unconfirmed. A second benefit of blocks is often cited: gathering runs of 4 adjacent tokens suits GPU memory access better than scattered single-token gathers. That is plausible, but the paper does not make the argument, so treat it as unconfirmed.

Flash-Next's gated residual and Muon, in detail
  • Gated residual. Each layer reads the 4 branches through an elementwise sigmoid gate predicted from all branches, with bottleneck rank d/8 = 2,560/8 = 320, and writes its output back to every branch through one data-dependent scalar per branch. The 4 × 4 branch-mixing matrix of hyper-connections was dropped as adding little. The gate decides how the extra capacity is used and supplies the rescaling that keeps training stable.
  • Muon. It runs 8 Newton-Schulz orthogonalisation steps, and fused matrices are split before orthogonalising. The router, the embeddings, the output head and the gated-residual projections stay on AdamW. A refitted scaling law raised the learning rate and batch size and dropped batch-size warm-up, which ended no better and cost 18.8% more optimiser steps (Flash-Next paper).
The 38,912-token figure

The 38,912-token figure sometimes quoted beside the thinking budget is the maximum output length the Qwen3 report allowed on AIME, not a budget setting.

Common misreadings
  • "Qwen has no shared expert." True of Qwen3 only; every large Qwen from Qwen3-Next on routes 10 of 512 experts plus 1 shared.
  • "Qwen is Apache 2.0." True of every open checkpoint from Qwen3 to Qwen3.5, and of the 3.6 and 3.8 mid-size models; not of the pre-Qwen3 flagships, Qwen2.5-3B, or the open 2.4T flagship, Flash-Next and Qwen-Image-2.1, which ship under three different custom licences.
  • "Qwen3.8-27B is a standard dense transformer." Its feed-forward layers are dense, but 48 of its 64 layers are Gated DeltaNet.
  • "The model was trained to respect the thinking budget." The serving code enforces it by inserting a stop-thinking instruction; answering well from truncated thinking emerged from thinking mode fusion.
  • "QSA shrinks the KV cache." It cuts what each query reads, not what is stored.
  • "Sparse attention cuts attention time by the selection ratio." 488 times fewer tokens read at 1M gives 7.6 times (prefill) and 4.9 times (decode), because the indexer pass remains.
  • "Flash-Next was compared with Qwen3.5-397B." The paper's "397B-A17B predecessor" is the closed Qwen3.7-Plus.
  • "Qwen3.8-Max" as one model. It is a series of dated snapshots, and the hosted model and the open 2.4T-A95B checkpoint differ in modalities and modes.
  • Reading an Arena placing as a capability score. It is a preference ranking at one moment.

This page is self-contained: every figure is linked to its source, derived numbers show their formula, and illustrative inputs are labelled. Data as of 1 October 2026.