Alibaba has released the multimodal MoE model Qwen3.8-Flash-Next. This release serves as a technological preview of the architecture that will underpin the upcoming flagship Qwen 4 — much like Qwen3-Next previously set the hybrid attention standard for the Qwen3.5–3.8 product lines.
Key Innovations in the Qwen 4 Architecture
At the core of the model lies a Mixture-of-Experts (MoE) design optimized for efficient local execution and ultra-long context handling (262K natively and up to 1 million tokens via YaRN):
Low active parameter count with a massive knowledge base: The model comprises approximately 180 billion weights in total (125B in the MoE graph, 51B in N-gram tables, and 4B in the MTP block). However, only 6 billion parameters are activated per token (10 routed experts out of 512 plus 1 shared expert). This delivers the inference speed of lightweight 6B models alongside the knowledge depth of heavy 70B+ class systems.
51B-parameter N-gram memory with offloading: A dedicated embedding layer stores 20 million n-grams (bigrams and trigrams). Because keys are deterministic hashes, lookup locations are known in advance. This allows the entire 51B layer to be offloaded to standard system RAM or fast NVMe SSDs via
mmapwith asynchronous prefetching, freeing up valuable VRAM without sacrificing accuracy.Hybrid GDN + QSA mechanism: The model consists of 48 layers. Of these, 36 layers utilize Gated DeltaNet (GDN), compressing history into a fixed recurrent state and bounding KV-cache growth. The remaining 12 layers rely on Qwen Sparse Attention (QSA) — a sparse attention algorithm that processes history in micro-blocks and accelerates the prefill phase by up to 8.6x on 1-million-token contexts.
4-stream Gated Residual and MTP block: This mechanism splits the residual stream into 4 independent branches in FP8 format (one serving as a highway to stabilize training). An additional Multi-Token Prediction (MTP) layer predicts multiple tokens ahead, speeding up generation via speculative decoding.
Feature Comparison
| Parameter | Qwen 3.8 27B (Dense) | Qwen3.8-Flash-Next (Qwen 4 MoE) |
|---|---|---|
| Architecture Type | Dense | MoE + N-gram memory |
| Total Parameters | 27B | ~180B (125B MoE + 51B N-gram + 4B MTP) |
| Active Parameters per Token | 27B | 6B |
| Attention Mechanism | GDN + Gated Attention | GDN + QSA (Sparse Attention) |
| N-gram Memory | None | 51B parameters (mmap support) |
| Residual Connections | Single stream | 4-stream Gated Residual |
| Native Context | 262K | 262K (up to 1M via YaRN) |
Benchmark Results
Even though Qwen3.8-Flash-Next requires 4.5 times less active computation than the dense 27B version, it significantly outperforms it in agentic workflows and coding tasks:
| Benchmark | Qwen3.8-Flash-Next | Qwen3.8-27B | Difference |
|---|---|---|---|
| DeepSWE 1.1 (Agentic Coding) | 58.7 | 42.2 | +16.5 |
| SWE-bench Pro | 62.5 | 61.7 | +0.8 |
| SWE-bench Multilingual | 81.0 | 73.8 | +7.2 |
| NL2Repo-Bench | 48.1 | 42.3 | +5.8 |
| CoWorkBench | 73.9 | 70.7 | +3.2 |
| JobBench | 55.7 | 33.4 | +22.3 |
| Agents’ Last Exam (Score / Pass@1) | 51.2 / 24.3 | 42.9 / 20.4 | +8.3 / +3.9 |
| Toolathlon Verified (Pass@1) | 73.5 | 67.1 | +6.4 |
| IFBench | 81.3 | 79.5 | +1.8 |
| GPQA Diamond | 91.7 | 89.2 | +2.5 |
| HLE (GPT-4o judge) | 35.9 | 30.8 | +5.1 |
| LiveCodeBench v6 | 91.9 | 90.3 | +1.6 |
Local Deployment on 128 GB RAM
The ability to offload massive N-gram tables to system memory via mmap makes running a 180B model viable on standard workstations without large GPU clusters:
Memory footprint: 4-bit quantized builds (formats like
UD-Q4_K_XLandUD-IQ4_XSfor GGUF / llama.cpp / Unsloth) require around 85–110 GB of Unified Memory or RAM.Performance: Generation speeds on PCs and Macs with 128 GB of memory reach 20–30 tokens per second when paired with a discrete accelerator.
Hybrid reasoning: Supports flexible reasoning depth control (via the
reasoning_effortparameter) and preserves chain-of-thought context across dialogue turns.
This new architecture sets a practical benchmark for deploying intelligent local agents, combining flagship-level quality with accessible hardware requirements.
Comments
to leave a comment.
No comments yet.