Arab AI
3D translucent purple and white Qwen geometric emblem next to bold white Qwen4-35B-A3B text over glowing blue light waves on a dark background

Alibaba Releases Qwen4-35B-A3B: Open-Weight AI Model with 1 Million-Token Context

December 4, 2026
6 minutes

Alibaba has released Qwen4-35B-A3B, the first open-weight model from its fourth-generation Qwen family, enabling developers and researchers to run a multimodal model with a one-million-token context window and a mixture-of-experts architecture that lowers inference costs.

Qwen4-35B-A3B is open-weight under Apache 2.0, ready to tackle your real-world tasks! 🎉
⚡ Qwen4-35B-A3B:
– A native multimodal MoE model (35B total, 3B activated), 1M-token native context.
– Outperforms dense Qwen3.8-27B, and matches Qwen3.8-Flash-Next at ~1/3 the size.
-… pic.twitter.com/gecz8qTvFZ

– Qwen (@Alibaba_Qwen) December 4, 2026

Built on a 35-billion-parameter backbone, the model activates 3 billion parameters per token. It ships under the Apache 2.0 license for the model weights, permitting research and commercial use, modification, and redistribution, while training data and training code remain closed.

Advertisement

Alibaba distributes the model through its official Hugging Face repository, including full BF16 weights and an official FP8 release, alongside support for inference frameworks such as vLLM, SGLang, and Transformers. Local deployment integrations are also available across llama.cpp, Ollama, Unsloth, MLX-VLM, and Docker.

Technical SpecificationValueAdditional Details
Core Parameters35B parameters (3B active)256 experts (8 routed + 1 shared per token)
Additional Components20B (N-gram) + 2B (MTP)57B total stored parameters
Architecture & Layers40 hybrid layers10 groups × (3 Gated DeltaNet layers + 1 Sparse Attention layer)
Context Window1,048,576 tokens (native)262,144 max reasoning tokens; 131,072 max output tokens
Repository Size114 GB (BF16)35.18 GB for quantized UD-Q4_K_M release
LicenseApache 2.0Covers model weights for research and commercial use

Mixture-of-Experts (MoE) Architecture and Hybrid Attention

Qwen4-35B-A3B uses a Mixture-of-Experts (MoE) architecture that partitions the network into specialized experts and routes each token through a narrow subset rather than activating the entire model at every step.

Across the 256 experts in the backbone, eight routed experts and one shared expert are activated per token. This design keeps inference compute far below the model’s total parameter count without sacrificing representational capacity inside the weights.

Advertisement

Forty decoder layers are arranged into ten repeated groups, each pairing three Gated DeltaNet linear attention layers with one Qwen Sparse Attention layer. Four residual streams of dimension 2048 are combined through learned gates prior to each block to improve cross-layer information flow, replacing uniform full attention across every layer.

Qwen Sparse Attention uses an indexing mechanism to select the most relevant context blocks, operating within a budget of up to 512 blocks or 2,048 tokens. This cuts the compute overhead of long sequences while retaining critical task information.

One-Million-Token Context Window and 20B-Parameter N-gram Memory

Native support for a 1,048,576-token context window allows a single session to hold up to 262,144 internal reasoning tokens and 131,072 output tokens. Developers can process lengthy documents, large code repositories, and multi-file collections without splitting inputs into smaller chunks.

Alongside hybrid attention, the reasoning_effort parameter exposes four control levels (xhigh, high, low, and off) to balance reasoning depth against response latency. A Per-Layer N-gram Embedding component adds 20 billion parameters backed by a 10-million-entry table for bigram and trigram representations at the second layer.

By performing 16 embedding table lookups per token rather than loading all auxiliary representations directly into accelerator memory, this module captures local token patterns while reducing repetitive computation in the main network.

Native Multimodal Capabilities for Images and Video

Equipped with a dedicated vision encoder, Qwen4-35B-A3B processes text, images, and video as inputs and generates text outputs.

Visual capabilities span image description, scene question answering, and video analysis via frame sampling. Under the default vLLM configuration, video inputs are sampled at two frames per second and processed in consecutive pairs, with sampling rates adjustable per workload. Combining multimodal inputs with the million-token context window enables long-form video analysis, visual document review, and mixed text-image workflows.

Accelerating Inference via Multi-Token Prediction (MTP)

A single-layer Multi-Token Prediction (MTP) module accelerates text generation by predicting multiple upcoming tokens in an auxiliary stage rather than generating strictly one token at a time.

Operating within a speculative decoding pipeline, the MTP head proposes candidate tokens that the main model verifies in parallel. In Hugging Face benchmarks on an Apple Silicon M5 chip running the Q4_K_M quant, enabling MTP with three draft tokens increased generation speed by 22%.

Coding and Agentic Benchmark Results by the Numbers

Alibaba positions Qwen4 around software engineering, agentic execution, reasoning, and multimodal comprehension. On overall capability, the model scored 25 points on the Artificial Analysis Intelligence Index, surpassing the open-weight average in the 40B to 150B parameter class. Official launch benchmarks show it outperforming the larger Qwen3.8-Flash-Next on software engineering and repository construction (DeepSWE v1.1 and NL2Repo) as well as workflow automation (AutomationBench-AA), while delivering nearly a fourfold jump over Qwen3.8-27B on Terminal Bench 4.1. Conversely, Qwen3.8-Flash-Next retained a clear lead on the FrontierCode-AA 2.0 coding evaluation.

Artificial Analysis Intelligence Index bar chart showing Qwen4-35B-A3B scoring 25 points ahead of Qwen3.8-27B
Qwen4-35B-A3B scores 25 points on the Artificial Analysis Intelligence Index v5.0.2 – Source: Artificial Analysis

Benchmark / MetricQwen4-35B-A3BQwen3.8-Flash-NextQwen3.8-27BInkling2 MiniEvaluation Domain
DeepSWE v1.161.858.742.248.2Software Engineering
APEX Agents v1.159.061.047.550.9Multi-Step Agentic Tasks
AutomationBench-AA57.955.948.241.8Workflow Automation
NL2Repo51.748.142.341.8Repository Construction
Work36042.943.737.130.4Professional & Enterprise Tasks
Terminal Bench 4.121.224.25.65.6Terminal Command Execution
FrontierCode-AA 2.016.127.114.915.1Advanced Coding
AA-Briefcase v1.1 (Elo)1486156713911263Document & Business Analysis
GPQA86.9–89.286.9Advanced Scientific Reasoning
HealthBench Pro47.451.444.045.7Specialized Medical Reasoning

Local Deployment Requirements and Quantized File Sizes

Running Qwen4-35B-A3B locally requires substantially more memory than a 3-billion-parameter dense model. The 35-billion figure accounts only for the MoE backbone, whereas the N-gram component adds 20 billion parameters and the MTP module adds 2 billion, bringing total stored parameters to 57 billion.

Artificial Analysis scatter plots comparing Qwen4-35B-A3B performance across 3B active parameters and total stored parameters
Qwen4-35B-A3B position on the efficiency frontier across active parameters (3B) and total stored parameters (57B) – Source: Artificial Analysis

In BF16 precision, the full checkpoint spans 114 GB across 33 Safetensors files, supplemented by an official FP8 release and quantized builds that reduce disk and memory footprints.

Quantized options include the Unsloth UD-Q4_K_M release at 35.18 GB, UD-Q3_K_XL at 30.88 GB, and standard Q4_K_M variants reaching 36 GB. On Mac systems, the oMLX runtime offloads embedding tables to SSD storage to reduce unified memory pressure, and Docker supports direct execution via docker model run hf.co/Qwen/Qwen4-35B-A3B.

For production environments and high-throughput workloads, Alibaba recommends SGLang, vLLM, and TokenSpeed, alongside llama.cpp and Ollama for local workstation setups.

API Pricing and Cloud Deployment Options

Developers opting for managed inference can call the model on QwenCloud using the identifier qwen4-35b-a3b, with full support for text, image, and video inputs, streaming, function calling, structured outputs, and reasoning controls.

Under QwenCloud’s international pricing schedule, input tokens cost $0.06 per million and output tokens cost $0.48 per million-making input processing 25 times cheaper than the closed flagship Qwen4-Max. Cached input tokens are billed at $0.003 per million, and batch inference applies a flat 50% discount to standard rates.

Pricing Tier (per 1M Tokens)Qwen4-35B-A3B (Standard)Qwen4-35B-A3B (Batch)Qwen4-Max (Closed Flagship)
Input Tokens$0.06$0.03 (50% discount)$1.50
Output Tokens$0.48$0.24 (50% discount)$4.50
Cached Input (Cache)$0.003––
Weights AvailabilityOpen (Apache 2.0)Open (Apache 2.0)Closed (API only)

Comparison with Qwen4-Max and Competing Open-Weight Models

Arriving two weeks after the closed flagship Qwen4-Max, Qwen4-35B-A3B serves as the open-weight entry in the fourth-generation Qwen lineup. While Qwen4-Max targets heavy cloud workloads strictly via API, Qwen4-35B-A3B prioritizes deployment flexibility and low inference cost while preserving the one-million-token context window and multimodal processing.

Outside the Qwen ecosystem, the release competes directly with DeepSeek’s MoE models and Meta’s Llama family. Whereas mid-sized Llama models rely on dense architectures that demand higher memory bandwidth and compute per generated token, Qwen4-35B-A3B matches DeepSeek’s sparse routing efficiency with just 3 billion active parameters per token while bundling native million-token context and image-video understanding into a single locally deployable package.

Related Articles

Comments

No Comments Yet

Be the first to comment on this content.