HAVE AI NEWS HAVE AI NEWS
Models

Qwen 4 Architectural Breakthrough: Inside the Qwen3.8-Flash-Next Model

Qwen 4 Architectural Breakthrough: Inside the Qwen3.8-Flash-Next Model

Alibaba has introduced Qwen3.8-Flash-Next, an architectural preview of the upcoming Qwen 4. The 180-billion-parameter model activates just 6 billion parameters per token and can run on 128 GB of system memory.

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 mmap with 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

ParameterQwen 3.8 27B (Dense)Qwen3.8-Flash-Next (Qwen 4 MoE)
Architecture TypeDenseMoE + N-gram memory
Total Parameters27B~180B (125B MoE + 51B N-gram + 4B MTP)
Active Parameters per Token27B6B
Attention MechanismGDN + Gated AttentionGDN + QSA (Sparse Attention)
N-gram MemoryNone51B parameters (mmap support)
Residual ConnectionsSingle stream4-stream Gated Residual
Native Context262K262K (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:

BenchmarkQwen3.8-Flash-NextQwen3.8-27BDifference
DeepSWE 1.1 (Agentic Coding)58.742.2+16.5
SWE-bench Pro62.561.7+0.8
SWE-bench Multilingual81.073.8+7.2
NL2Repo-Bench48.142.3+5.8
CoWorkBench73.970.7+3.2
JobBench55.733.4+22.3
Agents’ Last Exam (Score / Pass@1)51.2 / 24.342.9 / 20.4+8.3 / +3.9
Toolathlon Verified (Pass@1)73.567.1+6.4
IFBench81.379.5+1.8
GPQA Diamond91.789.2+2.5
HLE (GPT-4o judge)35.930.8+5.1
LiveCodeBench v691.990.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_XL and UD-IQ4_XS for 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_effort parameter) 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.

Author: ToxaBes3 часа назад

Source: habr.com

Comments

to leave a comment.

No comments yet.