Alibaba's Qwen4-35B-A3B Packs a 1M-Token Window Into One GPU
Alibaba's new Qwen4 open-weight MoE packs 35B parameters with only 3B active, native multimodal input, and a 1M-token context under Apache 2.0.
Takeaways
- Alibaba released Qwen4-35B-A3B, an Apache 2.0 multimodal MoE with 35B total and 3B active parameters.
- Native 1,048,576-token context via hybrid Gated DeltaNet linear attention plus Qwen Sparse Attention.
- 256 experts with top-8 routing plus 1 shared expert, 40 layers, hidden size 2048.
- Claims to beat dense Qwen3.8-27B and match Qwen3.8-Flash-Next at one third the size.
- Four-level reasoning_effort control (xhigh, high, low, off) replaces the usual on/off thinking switch.
- Runs on a single GPU when quantized, with day-one support in vLLM, SGLang, and llama.cpp.
Alibaba’s Qwen team has released Qwen4-35B-A3B, the first open-weight checkpoint in the Qwen4 series. The native multimodal Mixture-of-Experts model has 35 billion parameters, activates about 3 billion per token, accepts up to 1,048,576 tokens, and carries an Apache 2.0 license. Weights are available through the model card on Hugging Face and through ModelScope.
| Specification | Qwen4-35B-A3B |
|---|---|
| Total parameters | 35B, plus separately listed auxiliary components |
| Active parameters | About 3B per token |
| Context window | 1,048,576 tokens |
| Modalities | Text, images, and video |
| License | Apache 2.0 |
| Deployment claim | One GPU after quantization, subject to format, hardware, and context length |
Alibaba says in its announcement that the model outperforms dense Qwen3.8-27B and approaches Qwen3.8-Flash-Next at roughly one-third of the size. Those comparisons are vendor-reported, so replacement decisions still require tests with the intended quantization, prompts, tools, and runtime.
A 35B checkpoint with a 3B path
Mixture-of-Experts models route each token through a subset of specialized feed-forward networks. Qwen4-35B-A3B gives every token access to 256 routed experts, selects eight of them, and also activates one shared expert. Servers therefore execute about 3B parameters per token while retaining access to the full checkpoint.
| Component | Configuration |
|---|---|
| Layer stack | 40 layers in 10 repeats: three Gated DeltaNet MoE layers followed by one sparse-attention MoE layer |
| Expert routing | 256 routed experts, top-eight routing, and one shared expert |
| Hidden dimensions | 2,048 hidden size and 512 moe_intermediate_size |
| Sparse-attention budget | 512 blocks, representing 2,048 selected tokens |
| Auxiliary components | A 20B-parameter n-gram embedding and a 2B multi-token prediction head |
| Vision | An integrated encoder for image and video input |
The n-gram embedding adds learned representations of recent token sequences, while the multi-token prediction head predicts several future tokens rather than only the next one. Because the repository lists these components separately from the 35B figure, checkpoint files provide the authoritative download and memory requirements.
Hybrid attention stretches the window
Gated DeltaNet replaces full pairwise token comparisons with a recurrent linear-attention update, avoiding the quadratic attention matrix used by standard transformers. Every fourth layer applies Qwen Sparse Attention, whose multi-query-attention-style indexer selects earlier tokens for broader context. The combination reduces cache growth while preserving periodic access to distant information.
A full 1M-token request still carries substantial prefill time, activation memory, and input-processing cost. The advertised window describes the maximum accepted sequence length; practical limits depend on the server’s configured context, available memory, quantization method, concurrent requests, and multimodal inputs.
Reasoning becomes a runtime budget
The server-facing reasoning_effort setting lets applications adjust inference behavior without switching checkpoints. Four supported values cover different latency and quality targets:
| Value | Intended use |
|---|---|
xhigh |
Complex tasks with the largest reasoning budget |
high |
Default setting for general workloads |
low |
Faster responses with a smaller reasoning budget |
off |
Disables explicit reasoning |
Lower effort can shorten an individual response while increasing retries in multi-turn agents, which may raise end-to-end latency and token use. Alibaba suggests ceilings of roughly 262,000 reasoning tokens and 131,000 output tokens for unusually hard tasks. Applications should set smaller limits around their latency targets and leave room for prompts, retrieved documents, tool results, images, and video within the context window.
One-GPU claims meet memory math
The model card lists support across vLLM, SGLang, llama.cpp, Ollama, LM Studio, and mlx-vlm. A minimal vLLM launch looks like this, using a release that explicitly supports the Qwen4 architecture:
python -m pip install -U vllm
vllm serve Qwen/Qwen4-35B-A3B
Parameter activation determines much of the per-token arithmetic, while total weight count drives storage and memory residency. Approximate raw storage for a 35B-parameter payload is:
| Weight precision | Raw weight storage |
|---|---|
| 16-bit | About 70 GB |
| 8-bit | About 35 GB |
| 4-bit | About 17.5 GB |
Quantization metadata, auxiliary components, runtime buffers, the vision encoder, and caches add to those estimates. A one-GPU deployment therefore depends on the exact checkpoint format and GPU capacity. Throughput also depends on optimized MoE kernels and weight bandwidth; CPU or storage offloading can reduce memory pressure while adding latency.
OpenAI-compatible servers accept multimodal messages through image_url and video_url content types when the selected backend implements them. For hour-scale video, Alibaba recommends increasing longest_edge to target roughly 224,000 video tokens. Preprocessors may express that limit in pixels or another unit, so developers should verify the runtime’s schema before applying the setting.
The benchmark gap remains self-reported
Alibaba positions the closed Qwen4-Max as its flagship for long-running agent workloads and describes Qwen4-35B-A3B as an open, lower-compute option informed by Qwen3.8-Flash-Next and Qwen4-Max. A dense Qwen4-27B variant has also been previewed, although the 35B-A3B checkpoint is the available open-weight release.
Published results place Qwen4-35B-A3B ahead of Qwen3.8-27B on Terminal Bench, FrontierCode, AA-Briefcase, and APEX-Agents, with performance near Qwen3.8-Flash-Next on agentic workflows. Useful evaluation requires matching prompt templates, reasoning settings, context lengths, tool environments, quantization, and output limits because each can materially change the result.
Where the model earns a trial
Qwen4-35B-A3B targets teams that need local or controlled deployment for long-document retrieval, enterprise knowledge systems, coding agents, and multimodal analysis. Apache 2.0 permits commercial use, modification, and redistribution under its license conditions, making fine-tuning and derivative checkpoints possible.
A production evaluation should measure:
- Quality at representative context lengths, including retrieval from distant parts of the prompt
- Accuracy loss from the intended 8-bit or 4-bit quantization
- Prefill latency, decode speed, and peak memory under realistic concurrency
- Tool-call validity and task completion across multi-turn agent runs
- Image and video preprocessing costs in the chosen serving stack
- Runtime stability near the configured context and output limits
For teams currently serving Qwen3.8-27B or a similar dense model, Qwen4-35B-A3B offers a plausible reduction in per-token compute together with a much larger context window and native multimodal input. The practical gain will depend on checkpoint memory, kernel support, quantization quality, and performance on the application’s own workload.