GLM-5.3-Flash vs Qwen3.8-Flash-Next: Two Labs, One Architecture
Z.ai and Alibaba's Qwen team independently shipped models with near-identical architectures within a day. Here's what they share and why it matters.

Z.ai and Alibaba's Qwen team each shipped a new open-weight model within a day of each other this week, designed entirely independently. When researchers compared the configs, they found four near-identical architectural choices: the same 3:1 ratio of linear to full attention, the same 2048-token context budget after 4x compression, the same four-branch residual stream, and the same Muon optimizer trick. The parallel convergence is a strong signal that these techniques are settling into a new standard for efficient mixture-of-experts models at scale.
What happened
| Detail | GLM-5.3-Flash (Z.ai) | Qwen3.8-Flash-Next (Alibaba) |
|---|---|---|
| Total parameters | 320B | 125B + 51B n-gram embedding table |
| Active parameters per token | 18B | 6B |
| Total layers | 45 | 48 |
| Attention ratio (linear:full) | 34:11 (roughly 3:1) | 3:1 repeating block |
| Native context window | 1M tokens | 262,144 tokens (extensible to 1M via YaRN) |
| Training corpus | 30T tokens | Not stated |
| Input / output price | $0.15 / $0.50 per million tokens | Not stated |
| License | MIT | Not stated |
GLM-5.3-Flash is the first natively multimodal model in Z.ai’s GLM-5 series, released on Hugging Face. Before the public launch, Z.ai tested it anonymously under the name “Ox Alpha” on OpenRouter, where it became the most popular model of the week. The company says it outperforms GLM-5.2 across benchmarks at one-tenth the price, while approaching Claude Opus 4.8 on coding and agentic tasks.
Qwen3.8-Flash-Next serves as an early architecture preview, similar to the role Qwen3-Next played for the Qwen3.5 family. The Qwen team published a technical report titled “On the Design of Qwen3.8-Next Architecture: Evaluation, Efficiency, and Training Stability” alongside the release.
The four shared design choices
1. Three linear attention layers for every one full-attention layer
Standard transformers use full attention for every layer, which means the KV cache (the memory of past tokens) grows with every new token. Linear attention replaces that with a fixed-size recurrent state, so compute per token stays constant regardless of context length. Both models use a 3:1 ratio: cheap linear layers handle the bulk of processing, and full-attention layers handle precise long-range retrieval.
The implementations differ slightly. GLM uses Kimi Delta Attention (KDA), originally from Moonshot AI’s Kimi Linear, which applies decay gates at the per-channel level. Qwen uses its own Gated DeltaNet (GDN), which gates at the per-head level. Different granularity, same underlying delta-rule family.
2. Compress context 4x, then keep only the top 2,048 tokens
Neither model lets its full-attention layers scan the entire context. Both attach a small learned indexer that scores chunks of history and selects only the most relevant ones. The numbers match almost exactly. GLM’s sparse layers use a 32-head indexer that picks the top 2,048 tokens; to handle 1M-token contexts affordably, Z.ai introduced IndexPool, which merges four indexer key vectors into one before scoring. Qwen’s Sparse Attention (QSA) scores 4-token blocks and keeps the top 512 blocks, which also works out to 2,048 tokens. Both compress 4x before scoring. Qwen credits QSA with up to 7.6x prefill and 4.9x decoding speedups over full attention at 1M-token contexts.
3. Four gated residual streams instead of one
The single residual stream has been a core feature of transformers since 2017. Both models replace it with four parallel branches, with gates controlling what each block reads and writes. GLM adopts Manifold-Constrained Hyper-Connections (mHC), a design that originated at DeepSeek. Qwen built its own variant called Gated Residual, which removes the extra branch-mixing step and stores residuals in FP8 (a lower-precision format that saves memory). The Qwen team ablated both approaches and found them roughly equal in quality. Two labs, two implementations, one conclusion.
4. The Muon optimizer, with fused matrices split before orthogonalization
Both models train with Muon, an optimizer that applies orthogonalization (a mathematical operation that keeps weight updates geometrically balanced) to gradient matrices. Both apply the same refinement: fused projection matrices are split into their independent components before Muon processes them. Qwen documents this for fused QKV, SwiGLU, and GDN projections, assigning Muon to genuine 2-D linear maps and AdamW to embeddings, routers, and low-rank parameters. Qwen also dropped batch-size warmup entirely after measuring it cost 18.8% more optimizer steps without meaningful benefit.
Why it matters
Independent convergence across four distinct design decisions is a meaningful signal. When one lab makes a choice, it could be a bet. When two labs working separately land on the same four choices, it looks more like a proof. These techniques, specifically hybrid linear-full attention at 3:1, sparse context selection capped at 2048 tokens, multi-stream residuals, and Muon with split matrices, are likely to appear in a growing share of large open-weight models over the next year.
For businesses evaluating open-weight models, this matters because the efficiency gains are substantial. Z.ai reports the Flash architecture cuts attention compute by roughly 3x and KV cache size by 4.4x compared to the full GLM-5.3, while nearly halving active parameters (18B vs 32B) and layer count (45 vs 92). Qwen3.8-Flash-Next required about one-ninth the compute of Qwen3.7-Plus to train. Cheaper to run and cheaper to fine-tune are both real advantages for deployment. You can follow coverage of models like these in our AI news section.
Our take
The convergence story here is genuinely interesting, and the source is careful to note that one lab dissents from at least one point (the article cuts off before naming them). That caveat aside, the pattern is clear: the most capable open-weight labs are moving toward the same efficiency stack. For anyone planning to build on top of open models through an AI integration project, this is the architecture family worth understanding. GLM-5.3-Flash’s MIT license and $0.15 input price make it worth a practical test now. Qwen3.8-Flash-Next’s role as an architecture preview means the production Qwen4 series is probably not far off. Watch both.
What to do about it
- Test GLM-5.3-Flash via OpenRouter or Hugging Face on your actual coding or agentic workload. The MIT license means no legal friction for commercial use.
- Read the Qwen team’s technical report (“On the Design of Qwen3.8-Next Architecture”) if you evaluate models for deployment. The efficiency ablations are unusually detailed.
- If you are running long-context tasks (over 100K tokens), benchmark both models on your specific task. The 4.9x decoding speedup Qwen claims at 1M tokens is worth verifying on your own hardware.
- Watch for Qwen4 production releases. Qwen3.8-Flash-Next is explicitly a preview of that architecture family.
The practical takeaway: if you are choosing an open-weight model for a long-context or agentic deployment in the next quarter, these two are the ones to benchmark first.
Frequently asked questions
What is GLM-5.3-Flash and how much does it cost?
GLM-5.3-Flash is a 320B-parameter multimodal mixture-of-experts model from Z.ai with 18B active parameters per token, released under an MIT license. It costs $0.15 per million input tokens and $0.50 per million output tokens.
What is Qwen3.8-Flash-Next?
Qwen3.8-Flash-Next is a model from Alibaba's Qwen team that previews the Qwen4 architecture. It has 125B main parameters plus a 51B n-gram embedding table, with 6B parameters active per token and a native context of 262,144 tokens, extensible to 1M via YaRN.
What is linear attention and why do these models use it?
Linear attention replaces the standard KV cache (which grows with context length) with a fixed-size recurrent state, keeping compute per token constant regardless of how long the context is. Both GLM-5.3-Flash and Qwen3.8-Flash-Next use linear attention for three out of every four layers to cut compute costs.
How much more efficient is the GLM-5.3-Flash architecture compared to full GLM-5.3?
According to Z.ai, the Flash architecture cuts attention compute by roughly 3x, reduces KV cache size by 4.4x, nearly halves active parameters (18B vs 32B), and halves the layer count (45 vs 92) compared to the full GLM-5.3 model.


