Alibaba releases Qwen4-35B-A3B, an open AI model that reads 1M tokens
Unicorn News Desk ·
Key facts
- Maker
- Alibaba's Qwen team
- Licence
- Apache 2.0, open weights
- Size
- 35B total, 3B active per token (Qwen)
- Context window
- 1,000,000 tokens, native
- Input type (model card)
- Image-text-to-text
Alibaba’s Qwen team released Qwen4-35B-A3B on December 4 as an open-weight model under the Apache 2.0 licence. It is a natively multimodal mixture-of-experts model with 35 billion total parameters, of which 3 billion are active per token, and a native context of 1 million tokens. Qwen says it outperforms its own dense Qwen3.8-27B and matches Qwen3.8-Flash-Next at about a third of that model’s size.
This is the first open model in the Qwen4 series. It has day-one support in the main open-source inference tools, and Alibaba also offers a hosted version through its Qwen Cloud API.
What Alibaba’s Qwen team released
The weights are on Hugging Face and ModelScope. The Hugging Face repository is tagged Apache 2.0, is not gated, and holds the post-trained model in the Transformers format. The repository was created on December 3, and its last update is dated December 4.
The model card places this release within the wider Qwen4 family:
- Qwen3.8-Flash-Next was the first model to use the Qwen4 architecture. Qwen says the community has since adopted it widely, especially for local, self-hosted deployment.
- Qwen4-Max is the flagship of the series. Qwen describes it as an “ultra-sparse” model built for long-horizon agentic applications, meaning AI agents that work on multi-step tasks over long periods.
- The open Qwen4 models, starting with this one, use the same architecture and training techniques.
Qwen describes the “Qwen4 open model series” as “now on its way.” That suggests more open models will follow, though the sources do not name sizes or dates.
| Spec | Qwen4-35B-A3B |
|---|---|
| Architecture | Mixture-of-experts; hybrid linear and sparse attention |
| Parameters | 35B total, 3B activated (Qwen’s figures) |
| Context window | 1,000,000 tokens, native |
| Model card task | Image-text-to-text |
| Weight format | Safetensors, BF16, about 114 GB in total |
| Licence | Apache 2.0 |
| Hosted API name | qwen4-35b-a3b on Qwen Cloud |
What Qwen4-35B-A3B adds over the Qwen3.8 models
The main claim is efficiency. A mixture-of-experts (MoE) model routes each token through only a small subset of its weights. So Qwen4-35B-A3B stores 35 billion parameters but uses about 3 billion of them for any single token. Qwen compares it with two of its earlier models:
- Qwen3.8-27B is a dense model, meaning it uses all of its weights for every token. Qwen says the new model outperforms it.
- Qwen3.8-Flash-Next is larger. Qwen says the new model matches it at about a third of the size.
The sources do not give a per-benchmark table for either comparison, so the claims cannot be checked from them.
Qwen also says the model has stronger agentic capabilities for professional work. It names long-document analysis, enterprise knowledge bases and edge deployment as scenarios where the model does well. On the model card, Qwen says the series made substantial progress on tasks that require “sustained, long-term task delivery.” It also says Qwen4 performs better at coding visual and creative deliverables, such as frontend development.

How the 1M-token context works
Qwen credits the long context to its architecture. Qwen4 combines linear attention with sparse attention:
- Linear attention keeps compute from growing with the square of the sequence length.
- Sparse attention looks at only selected parts of the earlier text.
The model card says this design delivers “faster inference and a drastically reduced cache footprint,” which enables a native 1,000,000-token context window. The cache is the memory a model keeps about earlier tokens, and on long prompts it is usually the main limit on GPU memory.
The architecture also uses n-gram embeddings. Qwen says these improve model quality “without extra compute or accelerator memory overhead.”
Inputs and reasoning controls
The official model card lists the model as image-text-to-text and loads it through Transformers’ multimodal model class. Unsloth’s GGUF repackaging includes a chat template, which is the code that formats prompts for the model. That template accepts more input types than the official card lists:
- text
- images
- video
- audio
The official sources here do not confirm audio or video input, so builders should test those before relying on them.
The same template adds a reasoning-effort setting with four levels: xhigh, high, low and off. The default is high. By default it also keeps earlier reasoning in the conversation (preserve_thinking), and it has a built-in format for tool calls.
Benchmarks: Qwen’s numbers and Artificial Analysis
The Hugging Face model card lists three evaluation results:
- DeepSWE v1.1 (software engineering tasks): 61.8. The source is Qwen’s own model card.
- GPQA Diamond (graduate-level science questions): 86.9. The source is Qwen’s own model card.
- Terminal-Bench 4.1 (command-line agent tasks): 21.2. The card says this was scored by Artificial Analysis, not the model authors, using these settings:
- the model’s “Xhigh” reasoning setting
- the mini-swe-agent harness
- all 66 tasks
- pass@1, averaged over three repeats
Hugging Face’s results listing ranks the model first among models under 128B parameters on both DeepSWE and Terminal-Bench 4.1. Its overall positions are 17th on DeepSWE and 9th on Terminal-Bench. None of the three entries is marked as verified on the Hub.
Qwen also says the model is “the most intelligent under 150B,” citing an analysis by Artificial Analysis, an independent model-evaluation firm. The sources do not include Artificial Analysis’s own index scores or the list of models it compared. That ranking appears here only as Qwen’s summary of a third-party result.
Where to get Qwen4-35B-A3B and how to run it
Self-hosting. The model card says the weights work with Hugging Face Transformers, vLLM, SGLang and TokenSpeed. On launch day, Qwen thanked several tool makers on X for their support:
- the SGLang project, with the note “Run it locally and enjoy”
- Ollama
- an account named Llama_app, which Qwen also thanked for helping people run the model locally
- Hugging Face, which Qwen called a partner and said had published a blog post on the integration
- Unsloth
Quantized versions. Unsloth publishes GGUF versions, a compact file format used by local runtimes. The official repository is flagged as having quantized versions available. Qwen says the model “runs on a single GPU when quantized.” It does not name a GPU or a quantization level.
Download size. The full BF16 weights in the official repository total about 114 GB.
Hosted API. Teams that do not want to manage infrastructure can use Qwen Cloud, where the model runs under the name qwen4-35b-a3b. The model card says the hosted version adds “more production features,” such as official built-in tools.
What it means for builders, and the open questions
For teams that run models themselves, the useful combination is a permissive licence, a small active-parameter count and a long context. Apache 2.0 allows commercial use and modification. A model that uses about 3B parameters per token is generally cheaper to serve than a dense model of similar quality, if Qwen’s comparison holds. The 1M-token window fits Qwen’s suggested uses, including long-document analysis and knowledge-base assistants.
Several points are still unclear from the sources:
- Parameter count. Qwen describes the model as 35B total. The repository’s safetensors metadata counts about 56.8 billion stored BF16 parameters. The sources do not explain the gap. It may come from components such as the vision encoder or the n-gram embeddings, but that is not confirmed.
- Memory needs. Because of the about 114 GB BF16 checkpoint, the single-GPU claim depends on quantization. Qwen has not said how much quality a quantized version loses.
- Long-context quality. The 1M-token window is a stated capability. The sources contain no independent test of how well the model retrieves or reasons over that much text.
- Independent checks. Only the Terminal-Bench 4.1 score comes from a third party. The DeepSWE and GPQA figures are Qwen’s own, and no listed score is verified on the Hub.
- Supported inputs. The official card lists images and text, while Unsloth’s template also accepts video and audio. Builders should confirm which inputs the official weights handle well.
What to watch next
Qwen says more Qwen4 open models are coming. The next releases will show which sizes the series covers beyond this 35B-A3B model. Other things to watch:
- the full Artificial Analysis results behind the “most intelligent under 150B” claim
- independent long-context tests at the full 1M tokens
- community reports on how the quantized single-GPU builds perform in practice
- whether Qwen publishes the side-by-side numbers behind its comparisons with Qwen3.8-27B and Qwen3.8-Flash-Next
Frequently asked questions
Is Qwen4-35B-A3B open source?
The weights are open and released under the Apache 2.0 licence. They are on Hugging Face and ModelScope, and the Hugging Face repository is not gated.
How does Qwen4-35B-A3B compare with Qwen3.8-27B?
Qwen says it outperforms the dense Qwen3.8-27B. Qwen also says it matches Qwen3.8-Flash-Next at about a third of the size. No independent head-to-head comparison is in the sources.
What does 35B-A3B mean?
The model has 35 billion parameters in total. About 3 billion of them are active for each token, because it is a mixture-of-experts model that routes each token to a subset of its weights.
Can Qwen4-35B-A3B run on one GPU?
Qwen says it runs on a single GPU when quantized. The full BF16 weights in the official repository total about 114 GB. Unsloth publishes GGUF versions for local use.
Is there a hosted API for Qwen4-35B-A3B?
Yes. Qwen Cloud serves it under the model name qwen4-35b-a3b, with extra production features such as official built-in tools, according to the model card.