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.
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.
The figure already shows the architecture choices (Gated DeltaNet three layers in four, gated attention, QSA, 512 small experts). What it cannot show:
| Choice | Others usually | Qwen | First shipped |
|---|---|---|---|
| Load balancing | Balance experts within each micro-batch | Balance over the global batch | Qwen3 |
| Extra capacity | More experts or more layers | A 51B-parameter hashed n-gram embedding off the accelerator; a four-branch gated residual stream | Qwen3.8-Flash-Next |
| Reasoning modes | Separate chat and reasoning models | One checkpoint, think and no-think, a thinking budget (later split again) | Qwen3 |
| Small models | Full post-training at every size | Strong-to-weak distillation from the flagship | Qwen3 |
| Layer | Standard design | Qwen's answer | First shipped |
|---|---|---|---|
| Expert layout | Fine-grained routed experts plus a shared expert (DeepSeek's layout) | 128 experts, top-8, no shared expert, balanced over the global batch | Qwen3 |
| Expert layout, from Next on | Tens to a few hundred experts | 512 very small experts, 10 routed plus 1 shared | Qwen3-Next |
| Token mixing | Softmax attention in every layer | Three Gated DeltaNet layers per full-attention layer | Qwen3-Next |
| Full-attention layers | Plain attention, full rotary embedding | Sigmoid output gate per head, head dimension 256, rotary embedding on a quarter of the dimensions | Qwen3-Next |
| Long-context reads | Every query reads every key in the full-attention layers | QSA: an indexer picks 512 micro-blocks of 4 tokens; attention reads only those | Qwen3.8-Flash-Next |
| Extra capacity | More experts or more layers | A 51B-parameter hashed n-gram embedding held off the accelerator, and a four-branch gated residual stream | Qwen3.8-Flash-Next |
| Reasoning modes | Separate chat and reasoning models | One checkpoint with think and no-think modes and a thinking budget (later split again) | Qwen3 |
| Small models | The full post-training pipeline at every size | Strong-to-weak distillation from the flagship | Qwen3 |
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.
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:
| Checkpoints | Licence | The clause that bites |
|---|---|---|
| Qwen-7B, Qwen-72B, Qwen1.5, Qwen2-72B | Tongyi Qianwen License | A 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-72B | Qwen License | Kept the 100-million clause (licence). |
| Qwen2.5-3B | Research only | No commercial use (licence). |
| Qwen3.8-2.4T-A95B (open flagship) | Qwen3.8-Max License | Above 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.0 | Same attribution thresholds, but any model-as-a-service or AI work assistant business needs a separate licence at any size (licence). |
| Qwen-Image-2.1 | Qwen Research License Agreement | Non-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.
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.
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.
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.
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.
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.
| Model | Total / active | Ratio | Experts per layer |
|---|---|---|---|
| Qwen3-235B-A22B | 235B / 22B | 11x | 128, top-8, no shared |
| Qwen3-Next-80B-A3B | 80B / 3B | 27x | 512, top-10, plus 1 shared |
| Qwen3.5-397B-A17B | 397B / 17B | 23x | 512, top-10, plus 1 shared |
| Qwen3.8-2.4T-A95B | 2.4T / 95B | 25x | 512, top-10, plus 1 shared |
| Qwen3.8-Flash-Next | 125B / 6B | 21x | 512, 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.
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.
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.
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:
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).output_gate_type: swish (27B config, 2.4T config); Flash-Next's lists sigmoid (config).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).
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).
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):
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.
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.
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:
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).
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.
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.
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.
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.
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).
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).
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).
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).
| Model | Params | Licence | AA index v4.3 | Cost per task | Notes |
|---|---|---|---|---|---|
| Qwen4-Max, hosted | Not published | closed | The 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), hosted | 2.4T / 95B active | closed | 45.4 | $5.41 | The 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-A95B | 2.4T / 95B active | Qwen3.8-Max License | 39.9 | $2.16 | The open flagship: text-only and thinking-only. |
| Qwen3.8-Flash-Next | 125B / 6B active | Qwen Community License 1.0 | 39.8 | $0.37 | The 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-forward | Apache 2.0 | 33.7 | $1.01 | 3: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-397B | 397B / 17B active | Apache 2.0 | The previous open flagship, still widely served. | ||
| Qwen3 / Qwen3-VL ladder | 0.6B to 235B | Apache 2.0 | Workhorse 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.
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).
Optional detail behind the sections above, in the order they appear.
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).
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.
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.
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.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.
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.
Eight Qwen checkpoints, recomputed from their own config.json: where the parameters live, stored and active. Every expert figure on the Reading tab's MoE section comes from this table.
The cache, in one line. Only Qwen's full-attention layers keep a cache that grows, so the 3:1 hybrids stay under 25 GiB per request at 262,144 tokens including their DeltaNet states: Qwen3.8-2.4T-A95B needs 23.3 GiB, half of Qwen3-235B's 47 GiB at ten times the parameters (16-bit state). All eight checkpoints are presets in the KV-cache calculator, with the context slider and the 32-bit state toggle. Qwen3 models support 128K context (with YaRN).
Expert parameters = L × E × 3dmodeldff, where E counts the shared expert when there is one. The defaults reproduce each headline independently from the configs:
Sources: Qwen3-32B, Qwen3-30B-A3B, Qwen3-235B-A22B, Qwen3-Next-80B-A3B, Qwen3.5-397B-A17B, Qwen3.8-27B, Qwen3.8-2.4T-A95B, Qwen3.8-Flash-Next.
Qwen's open checkpoints ship under six licences. Pick what you want to do; each checkpoint shows what its own LICENSE file says about it. The clauses are read from the files linked on each row and summarised in a few words.
Each licence has further terms (notices, export rules, termination on litigation) that are not shown. Read the linked file before relying on it.
Everything this page builds on, and the best places to go deeper. Links open in a new tab, with reading times. The external resources total about 7h 36m.
The parent: where Qwen sits among the labs. (32 min, plus 6 · +6h 27m resources)
Routing, load-balancing losses (including global-batch balance), shared experts, expert parallelism, and the cross-lab sparsity table Qwen's ratios sit in. (29 min read, plus 20 in closed details)
Linear attention, the delta rule and Gated DeltaNet from first principles, and the state against KV crossover. (37 min read, plus 17 in closed details)
GQA, DSA and other trained sparse attention, attention sinks and output gates. (37 min read, plus 28 in closed details)
The KV-cache calculator, with every Qwen checkpoint as a preset and the 32-bit state toggle. (28 min read, plus 13 in closed details)
On-policy distillation, with Qwen3's Table 21 beside the other published comparisons. (25 min read, plus 8 in closed details)
The report read closely, with a toy rerun of Table 21.
Which released model made which choice: Qwen3-Next and Flash-Next beside the other hybrids and sparse-attention designs. (28 min read · +2h resources)
Thinking modes and budgets in general (section 6), and how other labs expose the same dial. (35 min, plus 8)
The RL stages of Qwen's post-training, GSPO, and the R1 distillations built on Qwen bases. (53 min read, plus 11 in closed details)
Qwen-Image, Qwen-Audio and the image licence. (25 min, plus 2 · +9h 10m resources)
Shared experts, and DSA, the token-level sparse attention QSA is contrasted with. (26 min, plus 6 · +11h 39m resources)
Kimi Delta Attention, the other gated-delta hybrid. (38 min, plus 10 · +5h 28m resources)
GLM-5.3-Flash, released the same week as Flash-Next, with a delta hybrid and pooled indexer keys. (32 min, plus 13 · +3h 25m resources)
Linear attention, the reversal to full attention, and MSA block-sparse attention. (25 min, plus 6 · +4h 50m resources)
Hybrid thinking modes, the thinking budget, the four post-training stages, strong-to-weak distillation and the dense and MoE ladder. (~1h 30m)
QSA, the n-gram embedding, the gated residual and Muon, with the ablations behind each. (~1h)
The 3:1 hybrid, gated attention, the 512-expert layout and the throughput figures. (~15 min)
The output gate and the attention-sink result. (~45 min)
Why balancing over the global batch lets experts specialise. (~40 min)
The gated delta rule behind every Qwen linear-attention layer, and its chunked parallel form. (~50 min)
The 3:1 hybrid's Gated DeltaNet heads used as exact memory: with the gate at 1 and one-hot keys, compiled layers in front of an unchanged Qwen3.5-4B run a RISC-V CPU. Our reading: Qwenputer. (~21 min)
Docs; the primary source for the fast release cadence. (~30 min for the recent release posts)
Docs; the largest open-weight catalogue of any lab, with the model cards, configurations and licence files behind the numbers on this page. (~20 min for the flagship model cards)
Dated family tree through the Qwen3.6-Max preview of April 2026. (~25 min)
The flagship's launch. (~10 min)
Hands-on report of the 27B as a local model. (~10 min)
Hands-on report of the 27B on a long agentic job. (~10 min)
The model card: architecture overview, benchmarks, serving and thinking controls. (~10 min)
The Qwen4 preview release. (~10 min)
The release announcement and why it came early. (~5 min)
The snapshot convention. (~5 min)
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.