Alibaba’s Qwen team released Qwen4-35B-A3B on December 4, 2026, with downloadable weights, native text, image and video input, and a 1,000,000-token context window. Qwen’s official release entry confirms availability on Hugging Face Hub and ModelScope.
The Hugging Face repository contains post-trained weights and configuration files in Transformers format under Apache-2.0. Developers can download the model for self-hosting or fine-tuning without waiting for a managed API rollout.
The hardware qualification matters here. “35B” describes the main model, while a separate embedding table adds roughly 20.5 billion parameters. Its sparse architecture reduces the parameters used for each token, but that does not turn the download into a 3.8-billion-parameter model.
Qwen4’s Parameter Count Needs Two Numbers
Qwen4-35B-A3B has approximately 35 billion main parameters, 3.8 billion active parameters per token and 20.5 billion per-layer n-gram embedding parameters. Hugging Face’s launch explainer puts the combined count at roughly 56 billion parameters.
| Specification | Published description |
|---|---|
| Architecture | Native multimodal mixture-of-experts |
| Main parameters | Approximately 35 billion |
| Active parameters per token | Approximately 3.8 billion |
| Per-layer n-gram embeddings | Approximately 20.5 billion parameters |
| Combined parameters | Approximately 56 billion |
| Routed experts | 256 |
| Native context window | 1,000,000 tokens |
| Inputs | Text, images and video |
| Output | Text |
| License | Apache-2.0 |
A mixture-of-experts model selects part of its network for each token. Hugging Face describes eight selected experts plus a shared expert processing each input, allowing the model to draw on a larger parameter pool without activating all of it at every step.
The embedding table adds capacity through lookups based on nearby tokens. According to the architecture explainer, each token reads 16 rows that encode two-token and three-token patterns. That is different from running every parameter in a dense network.
The practical distinction is compute versus storage. The repository’s BF16 Safetensors metadata lists approximately 113.6 GB of tensor files. That is weight storage, before runtime working memory, context state and serving overhead. Quantization and offloading can change the deployment requirements, but the active-parameter count alone is not a memory-sizing guide.
Alibaba Cloud’s documentation uses different accounting: it describes 35 billion total parameters and approximately 3 billion activated per step. That conflicts with Hugging Face’s fuller breakdown, particularly the separate embedding table. For planning a download, the actual checkpoint size is more useful than either shorthand label.
How Qwen4 Reaches a Native Million-Token Context
Qwen4-35B-A3B supports a native 1,000,000-token context through a hybrid decoder that repeats a four-layer pattern 10 times. Three layers use Gated DeltaNet, followed by one layer of Qwen Sparse Attention, according to Hugging Face’s architectural description.
Gated DeltaNet maintains a fixed-size memory as tokens arrive. Qwen Sparse Attention provides a different route back into the context: an indexer groups tokens into blocks of four, then selects up to 512 groups for a query. The attention layer reads up to 2,048 selected tokens, plus at most three tokens in the final unfinished group.
That design explains the long-context proposition. Most layers compress history, while periodic sparse-attention layers retrieve selected details. The model avoids performing full attention over every earlier token at every layer.
The tradeoff is selective access. A million-token capacity specifies how much material the model can accept; it does not measure whether the model will retrieve every relevant detail correctly. The supplied evidence contains no independently verified million-token retrieval evaluation, so applications should test their own document layouts and retrieval requirements.
Multimodal processing also has concrete boundaries. Hugging Face says the vision encoder divides images into 16-by-16-pixel patches and merges each two-by-two group into one visual token. For video, the documented processor samples two frames per second and groups consecutive sampled frames into pairs. This supports video understanding, but does not imply exhaustive inspection of every original frame. Output remains text.
Serving Qwen4 Locally and Fine-Tuning It
Qwen4-35B-A3B launched with support across Transformers, llama.cpp, MLX, vLLM and SGLang, alongside fine-tuning tooling. Hugging Face lists BF16, FP8, OMLX and GGUF checkpoint options, although developers still need a runtime and checkpoint combination that supports their intended workload.
| Deployment path | Documented role |
|---|---|
| Hugging Face Transformers | Python loading and multimodal inference |
| llama.cpp / Llama App | Local inference, including GGUF options |
| MLX | Apple-silicon deployment path |
| vLLM | Model serving |
| SGLang | Model serving |
| TRL | Fine-tuning workflows |
| Inference Providers / Endpoints | Hosted deployment integrations |
The breadth of support makes the release useful immediately: developers can choose between Python integration, local applications and server-oriented runtimes. Support for a model family, however, should not be read as a promise that every runtime offers identical multimodal handling, quantization or performance.
Qwen’s repository also documents a useful fallback for developers who cannot access Hugging Face Hub. Supported SGLang deployments can use SGLANG_USE_MODELSCOPE=true, while supported vLLM deployments can use VLLM_USE_MODELSCOPE=true to select ModelScope as the download source.
For teams comparing permissively licensed deployment options, Zeniteq’s coverage of Mellum2.1’s Apache-2.0 coding-agent release provides a narrower coding-focused reference. Qwen4’s release adds native image and video input to the deployment decision.
Managed Qwen4 Has Separate Limits and Prices
Alibaba Cloud lists Qwen4-35B-A3B with a 1,000,000-token context window, but its managed service caps input at 991,000 tokens without thinking and 983,000 tokens with thinking. Those are service-specific limits, separate from the downloadable checkpoint’s native context specification.
| Alibaba Cloud limit | Non-thinking mode | Thinking mode |
|---|---|---|
| Context window | 1,000,000 tokens | 1,000,000 tokens |
| Maximum input | 991,000 tokens | 983,000 tokens |
| Maximum output | 128,000 tokens | 256,000 tokens |
| Maximum chain of thought | Not specified for this mode | 256,000 tokens |
Alibaba explicitly says input and output cannot both reach their maximum lengths in one request. The listed output ceilings therefore should not be added to the maximum input. Applications that ingest very large document sets must leave room for the response and, where applicable, reasoning.
The same Alibaba Cloud model page publishes regional API prices, excluding temporary promotions:
| Service region | Input per 1 million tokens | Output per 1 million tokens | Cache-hit input per 1 million tokens |
|---|---|---|---|
| China, Beijing | CNY 0.40 | CNY 2.40 | CNY 0.02 |
| Singapore | CNY 0.438 | CNY 2.625 | CNY 0.022 |
| Frankfurt, Virginia, Tokyo and Hong Kong | CNY 0.40 | CNY 2.40 | CNY 0.02 |
Paid API access and open weights are separate products. Apache-2.0 licensing does not cover the cost of running the model, and published cloud prices do not guarantee that every account can use every region or feature. Alibaba lists batch inference and Batch Chat as available only in Beijing.
Qwen’s repository advertises QwenCloud support, while Alibaba’s documentation describes Model Studio. Developers should verify the specific service, region and account access before integrating. For ongoing comparisons, Zeniteq’s AI Model API Pricing Tracker provides a separate pricing reference.
Qwen4 Benchmarks Need Their Test Conditions
Qwen4-35B-A3B’s model repository lists scores of 61.8 on DeepSWE v1.1 and 86.9 on GPQA Diamond. It also records a 21.2 Terminal-Bench 4.1 result attributed to Artificial Analysis, with a different evaluation setup.
| Benchmark | Listed score | Attribution and conditions |
|---|---|---|
| DeepSWE v1.1 | 61.8 | Model-card result, vendor-reported |
| GPQA Diamond | 86.9 | Model-card result, vendor-reported |
| Terminal-Bench 4.1 | 21.2 | Attributed to Artificial Analysis; Xhigh reasoning, mini-swe-agent, 66 tasks, pass@1 averaged over three repeats |
The repository’s evaluation metadata identifies Artificial Analysis as an external evaluator, but marks these entries as unverified. The underlying external report was not among the opened sources, so that result is an attributed third-party measurement, not a separately cross-checked finding here.
These scores also measure different tasks. The numerical gap between GPQA and Terminal-Bench cannot establish a performance contradiction or a general reliability rate.

Qwen4-35B-A3B is worth evaluating for teams that need self-hosted multimodal input, permissive weights and unusually long context. Teams seeking a tiny local model should look elsewhere: the BF16 checkpoint is substantial. Buyers choosing on coding or agent benchmarks alone should first run a like-for-like evaluation with their intended harness, reasoning setting and deployment format.
Frequently Asked Questions
3 questions
1Is Qwen4-35B-A3B Available Under Apache-2.0?
Yes. Qwen’s official repository dates availability on Hugging Face Hub and ModelScope to December 4, 2026. The Hugging Face repository lists Apache-2.0 and contains post-trained weights and configuration files. Downloadable availability is separate from access to a particular managed API or cloud region.
2Can Qwen4 Accept a Full Million-Token Prompt?
The model has a native 1,000,000-token context, but Alibaba Cloud’s managed service lists lower maximum inputs: 991,000 tokens without thinking and 983,000 with thinking. Input and output cannot simultaneously reach their published maxima. Self-hosted deployments also need sufficient memory and appropriate runtime configuration.
3Are Qwen4’s Benchmarks Independently Verified?
The opened evidence does not independently verify the published scores. DeepSWE and GPQA figures are vendor-reported. The model repository attributes its Terminal-Bench 4.1 result to Artificial Analysis and provides test conditions, but the repository’s evaluation metadata marks the entries as unverified. These different benchmarks should not be compared as equivalent tests.
Sources (4)
- 01github.comQwen’s official release entry (opens in a new tab)
- 02huggingface.coHugging Face repository (opens in a new tab)
- 03huggingface.coHugging Face’s launch explainer (opens in a new tab)
- 04help.aliyun.com35 billion total parameters and approximately 3 billion activated per step (opens in a new tab)