Alibaba's Qwen Team released Qwen4-35B-A3B, a 35B-parameter causal language model with vision encoder that activates only 3B parameters via a hybrid sparse architecture combining Gated DeltaNet linear attention and Qwen Sparse Attention, enabling a native 1,048,576-token context window. The model employs 40 layers arranged in 10 blocks of three Gated DeltaNet+MoE layers followed by one Qwen Sparse Attention+MoE layer. Gated DeltaNet uses 32 V heads and 16 QK heads at 128-dimension, while Sparse Attention uses 16 Q heads and 2 KV heads at 256-dimension with a 512-block (2048-token) budget. The MoE layer contains 256 experts (512 intermediate dim) with 8 routed plus 1 shared activated per token, complemented by 20B n-gram embeddings (10M bigrams/trigrams at layer 2) and a 2B single-layer MTP module. Benchmarks cite Terminal Bench 4.1, FrontierCode-AA 2.0, AA-Briefcase v1.1, AutomationBench-AA (Artificial Analysis), APEX-Agents v1.1 (Mercor), plus proprietary Work360 and ChartoGraphy (min_pixels 4096×32×32). Deployment supports vLLM, SGLang, TokenSpeed, llama.cpp, ollama, unsloth, mlx-vlm, and LiteRT-LM. Recommended sampling: thinking mode (temp=1.0, top_p=0.95, top_k=20) or non-thinking (temp=0.7, top_p=0.80, presence_penalty=1.5). Reasoning effort levels (xhigh, high, low, off) control thinking behavior. For agentic tasks, allocate 262,144 tokens for reasoning and 131,072 for final response within the 1M context. Video preprocessing recommends longest_edge=469,762,048 for hour-scale content.

Read original