model releaseAlibaba / Qwen

Qwen4-35B-A3B-FP8 released: 35B parameters, 3B active, 1,048,576-token native context

TL;DR

Qwen has published FP8-quantized weights for Qwen4-35B-A3B, a mixture-of-experts model with 35B total and 3B activated parameters. It uses a hybrid of linear and sparse attention and supports a native context length of 1,048,576 tokens.

4 min read
0

Qwen has released Qwen4-35B-A3B-FP8, the FP8-quantized version of its post-trained Qwen4-35B-A3B model, on Hugging Face. The model has 35B total parameters with 3B activated, and supports a native context length of 1,048,576 tokens. The weights are in Hugging Face Transformers format and are compatible with Transformers, vLLM, SGLang and TokenSpeed.

Architecture

Qwen4 is built on a hybrid of linear attention and sparse attention. Qwen says this delivers faster inference and a drastically reduced cache footprint in long-sequence scenarios. The company also says n-gram embeddings improve model quality without extra compute or accelerator memory overhead.

The model card lists these specifications:

  • Type: Causal Language Model with Vision Encoder
  • Parameters: 35B with 3B activated, plus 20B n-gram embedding and 2B MTP
  • Layers: 40, laid out as 10 × (3 × (Gated DeltaNet → MoE) → 1 × (Qwen Sparse Attention → MoE))
  • Hidden dimension: 2048
  • Experts: 256, with 8 routed plus 1 shared expert activated; expert intermediate dimension 512
  • Gated DeltaNet: 32 linear attention heads for V and 16 for QK, head dimension 128
  • Qwen Sparse Attention: 16 Q heads and 2 KV heads, head dimension 256, with an MQA indexer (4 query heads, 1 shared key head, head dimension 128) and a budget of 512 blocks or 2048 tokens
  • N-gram embedding: 10,000,000 (bigrams/trigrams at layer 2)
  • MTP: 1 layer, trained with multi-steps
  • Vocabulary: 248,320 (padded)

Positioning within Qwen4

Qwen describes Qwen4-Max as the flagship of the Qwen4 series: an ultra-sparse model designed for long-horizon agentic applications. The open Qwen4 series is built on the same architecture and training techniques. The card says the community has adopted the Qwen4 architecture, especially for local, self-hosted deployment, since the release of Qwen3.8-Flash-Next.

Qwen claims Qwen4 improves long-horizon agentic work, coding for visual and creative deliverables (frontend development, 3D modeling, game development), and token efficiency. It says tasks need fewer interaction rounds and that thinking is more concise at all effort levels, with the levels now better separated.

Benchmarks

The model card cites results on Terminal Bench 4.1, FrontierCode-AA 2.0, AA-Briefcase v1.1 and AutomationBench-AA, with scores taken from Artificial Analysis. APEX-Agents v1.1 scores come from the Mercor leaderboard. Work360 is Qwen's own benchmark for industrial and professional workflows. ChartoGraphy scores were obtained with min_pixels set to 4096×32×32.

Thinking control and serving

Qwen4 supports reasoning_effort and preserve_thinking. The default is thinking mode with reasoning_effort="high" and preserved thinking. The levels are:

  • xhigh: complex tasks where quality matters most
  • high: common tasks (default)
  • low: fast responses with minimal thinking
  • off: disables thinking; enable_thinking=False is equivalent

Qwen notes that in multi-turn agentic tasks, lower reasoning effort does not always cut total completion time. It can cause insufficient analysis, more failures and repeated retries, which may raise latency and token consumption.

Recommended sampling for thinking mode is temperature 1.0, top_p 0.95, top_k 20. For non-thinking mode it is temperature 0.7, top_p 0.80, top_k 20, presence_penalty 1.5.

For local deployment, the card says the architecture is supported by llama.cpp, ollama, unsloth, mlx-vlm and LiteRT-LM. Managed access is through Qwen Cloud under the model name qwen4-35b-a3b, with official built-in tools. API pricing is not yet disclosed.

The release includes a reference Qwen4 Tokenizer/Processor that requires tiktoken and trust_remote_code=True. A Jinja chat template is included in tokenizer-compat/ for backward compatibility only. It produces the same formatted text but can yield different token IDs, because the reference implementation distinguishes control tokens from regular tokens at the ID level.

What this means

The 3B active parameter count against 35B total puts per-token compute well below what the total size implies, though all expert weights still need to be stored. The FP8 checkpoint and the day-one framework support listed on the card target self-hosted use directly. The hybrid attention design and the 1,048,576-token native context are aimed at long agentic sessions, where cache size is usually the constraint. Qwen's own guidance that low reasoning effort can raise total latency in multi-turn agent loops is a practical reason to test effort levels per workload rather than defaulting to the lowest setting. The benchmark scores sit in the card's tables and are drawn partly from third-party sources, so teams evaluating the model should check those results against their own tasks.

Related Articles

model release

Qwen releases Qwen4-35B-A3B: 35B total, 3B active parameters, 1,048,576-token native context

Qwen has published Qwen4-35B-A3B on Hugging Face, a mixture-of-experts model with 35B total and 3B activated parameters and a native 1,048,576-token context window. It uses a hybrid of Gated DeltaNet linear attention and Qwen Sparse Attention. The Qwen Cloud API is listed as coming soon.

model release

Shanghai AI Laboratory releases Sage-Evolve-35B, a 35B MoE with 3B active parameters, under MIT license

Shanghai Artificial Intelligence Laboratory has released Sage-Evolve-35B, a Mixture-of-Experts model with 35B total and 3B active parameters, under the MIT License. The lab claims it ranks first among comparable-scale models on 9 of 13 benchmarks, with the largest gains in long-context comprehension.

model release

Unsloth releases Qwen4-35B-A3B GGUFs: 3-bit quant runs on 18GB RAM using SSD-backed Engram

Unsloth has published Dynamic GGUF quantizations of Qwen4-35B-A3B, a 35B-parameter mixture-of-experts model with 3B activated. According to Unsloth, Engram offloading to SSD lets a 3-bit GGUF run on 18GB RAM. The model has a native 1,048,576-token context window.

model release

Salesforce releases SOV-Omni-1-Mini, a 31.4B open-weight speech-to-action model under Apache 2.0

Salesforce released SOV-Omni-1-Mini, a 31.4 billion-parameter open-weight model that combines speech recognition, reasoning and agentic tool use. It is available on Hugging Face under Apache 2.0. Salesforce claims it ranks first among open-weight models on three benchmarks and second on a fourth.

Comments

Loading...