
Qwen4-35B-A3B: Alibaba's 1M-Context Multimodal MoE Under Apache-2.0
By Ali Al-Montaser — Senior AI Technical Editor
Alibaba's Qwen Team has launched Qwen4-35B-A3B on Hugging Face, the first production model of the fourth generation. It is a natively multimodal MoE model with 35B total parameters, 3.8B active per token, and a 20.5B PLE table (56B overall), featuring a 1M-token context window and an Apache-2.0 license. Day-zero support spans transformers, llama.cpp, vLLM, SGLang, and MLX, with a 22% generation speedup on Apple Silicon M5 via MTP speculative decoding.
Executive Overview
Alibaba's Qwen Team has officially announced the release of Qwen4-35B-A3B on Hugging Face, marking the first production model of the fourth generation. This natively multimodal Mixture-of-Experts (MoE) model combines a 1M-token context window with an Apache-2.0 license, making it immediately accessible for local deployment and commercial use. With 35B total parameters, only 3.8B active per token, and a 20.5B-parameter Per-Layer N-gram Embedding (PLE) table (56B overall), the model delivers a 22% generation speedup on Apple Silicon M5 via MTP speculative decoding. Day-zero support spans transformers, llama.cpp, vLLM, SGLang, MLX, and Hugging Face Inference Endpoints.
📊 Official Technical Specifications & Data Sheet
| Technical Aspect | Confirmed Official Data |
|---|---|
| 💰 Pricing & Usage Cost | Completely free for download and self-hosting under the Apache-2.0 license (no token fees). Available via Hugging Face Inference Providers and Inference Endpoints with usage-based pricing on the platform. |
| 🌐 Platforms & Immediate Availability | Hugging Face Hub (BF16, FP8, OMLX, GGUF); transformers; llama.cpp / Llama App; vLLM; SGLang; MLX / mlx-lm; TRL; Inference Providers; Inference Endpoints; Apple Silicon (M5). |
| ⚡ Performance & Speed Benchmarks | 22% generation speedup on Apple Silicon M5 with Q4 quantization and 3 MTP draft tokens. Benchmark performance equivalent to or exceeding the larger Qwen 3.8 Flash Next on several tasks. |
| 🛡️ Security & Robustness | Apache-2.0 license with full weight transparency. RL training support via TRL and AsyncGRPOTrainer for cyber defense scenarios (CyberDefense Bench): base model 4/12, update-50 adapter achieved 6/12, and update-100 adapter achieved 3/12. |
| 🧠 Context Window | 1,000,000 tokens (1M) native context. QSA selects up to 512 groups × 4 tokens = 2,048 selected tokens maximum. |
| 🌍 Arabic & Regional Support | Native multilingual support within the Qwen model (including Arabic), with full download and self-hosting availability in the Arab region without geographic restrictions thanks to the Apache-2.0 license. |
Deep-Dive Features & Architecture
Qwen4-35B-A3B represents the production culmination of the architectural preview seen in Qwen3.8-Flash-Next, bringing the next-generation hybrid design into actual deployment. The model relies on 256 routed experts with 8 experts and one shared partner activated per token, totaling ~35B main parameters and only ~3.8B active parameters per token, making it practical for local execution. Additionally, a Per-Layer N-gram Embedding (PLE) table with 20.5B parameters is added at the second decoder layer, where each token reads only 16 rows (8 for the last two tokens and 8 for the last three) and then merges them via a short convolution.
The text decoder repeats a four-layer pattern ten times: three Gated DeltaNet layers update a fixed-size memory, and a fourth layer uses Qwen Sparse Attention (QSA), allowing the current token to attend to individual tokens from anywhere in the context. QSA relies on a small indexer that groups tokens into sets of four and selects up to 512 groups, reading up to 2,048 selected tokens. Each token also passes through four residual streams of 2,048-dimensional embeddings, merged via learned gates before each attention or MoE block.
On the visual perception level, the model uses a Vision Transformer that reads images in 16×16 patches and merges each 2×2 group into a single visual token. Video is sampled at 2 frames per second, and consecutive frames are paired so that each patch interacts with every other patch within the pair.
Benchmark & Competitive Performance
According to the official model card, Qwen4-35B-A3B significantly outperforms its size class and is directly compared to the larger Qwen 3.8 Flash Next, even surpassing it on some tasks. In practical performance, it achieved a 22% speedup in generation on Apple Silicon M5 using Q4 quantization with 3 MTP draft tokens. In the CyberDefense Bench across 12 held-out tasks, the base model scored 4/12, while the update-50 adapter achieved 6/12 and the update-100 adapter achieved 3/12, indicating that the earlier checkpoint performed best on this sample.
Industry Impact & Enterprise Adoption
The release of Qwen4-35B-A3B under the Apache-2.0 license signals a major shift toward open, commercially usable multimodal models with extremely long context. Enterprises can now self-host a 1M-token context model without token fees, enabling cost-effective processing of large documents, video archives, and complex multimodal workflows. The day-zero support across major inference frameworks—transformers, llama.cpp, vLLM, SGLang, and MLX—ensures immediate integration into existing MLOps pipelines. The 22% speedup on Apple Silicon M5 makes high-performance local inference feasible on consumer hardware, potentially accelerating adoption in edge computing and privacy-sensitive industries. The model's native multilingual support, including Arabic, further expands its accessibility across the Arab region without geographic restrictions.
Conclusion
Qwen4-35B-A3B sets a new benchmark for open-source multimodal MoE models by combining a 1M-token context, Apache-2.0 licensing, and efficient inference across diverse hardware. Its competitive performance against larger models and robust cyber defense capabilities underscore its production readiness. As enterprises seek scalable, cost-effective AI solutions, Qwen4-35B-A3B offers a compelling option for both research and commercial deployment.
Media Source: Hugging Face | Official Company Statement: Original Source | Fact Verification & Analysis: AI Tools Oasis
Frequently Asked Questions
Qwen4-35B-A3B is a multimodal MoE model with 35B total parameters, 3.8B active parameters per token, and a 20.5B-parameter Per-Layer N-gram Embedding (PLE) table, totaling approximately 56B parameters. It features 256 routed experts, a native 1M-token context window, and accepts text, image, and video inputs with text outputs.
The model is licensed under Apache-2.0, a permissive open-source license that allows commercial use, modification, and redistribution with attribution. It is available for free download from Hugging Face via the Alibaba Qwen Team repository.
It is available with day-zero support via transformers, llama.cpp, Llama App, vLLM, SGLang, MLX, Inference Providers, and Inference Endpoints. Quantized versions including BF16, FP8, OMLX, and GGUF (Q4_K_M, Q6_K, Q8_0) are available on Hugging Face Hub.
Using Multi-Token Prediction (MTP) speculative decoding with 3 draft tokens, generation speed increased by 22% on Apple Silicon M5 with Q4 quantization. It is enabled via the --spec-type and --spec-draft-n-max options in llama.cpp.
The model supports four levels: xhigh, high, low, and off, with high as the default when unspecified. It can be set via --chat-template-config '{"reasoning_effort": "low"}' in mlx-lm or directly through AutoProcessor in transformers.

AI Tools Oasis Team
Bringing you the latest news and analysis in the world of Artificial Intelligence with accuracy and credibility. Follow us for all updates.

