
Every few months a new open model shows up and the internet loses its mind for a day. Most of the noise is about size. Bigger number, bigger headline. Qwen4-35B-A3B is a little different, because the interesting part is how little of it actually works at any given moment.
I went through the official Hugging Face model card line by line. In this article I'll explain what this model is, how it's built, and how you can run it yourself. I'll keep the words simple. If you know what a chatbot is, you can follow along.
So, what is Qwen4-35B-A3B?
It's an open-weight model from the Qwen team at Alibaba. The license is Apache 2.0, which means you can use it in commercial work without asking for special permission. It takes text, images and video as input, and it writes text back. Hugging Face tags it as an image-text-to-text model, and the usage examples on the page include image and video questions.
It belongs to the new Qwen4 family. The flagship of that family is Qwen4-Max, a very sparse model made for long, multi-step agent work. The model we're looking at uses the same architecture and training ideas, but in a size that regular people and small teams can run on their own. The card also says the community started building on this architecture after Qwen3.8-Flash-Next came out, mostly for local and self-hosted use.
How to read the name
The name looks like a code, but it's easy once you split it.
35B means about 35 billion parameters in the language model. Parameters are the numbers a model adjusts while it learns. More of them usually means more stored knowledge.
A3B means "active 3 billion". For every token the model produces, only around 3 billion of those 35 billion are doing the work. So you get the knowledge of a big model, but the running cost is closer to a small one.
You might notice that Hugging Face shows 57B params on the page and wonder if something is wrong. Nothing is wrong. The card lists the extras separately: 35B for the main model, plus a 20B n-gram embedding table and a 2B helper for multi-token prediction. Add them up and you get 57B. Only the 3B active part matters for speed.
The big idea: Mixture of Experts
This is the part most beginners find confusing, so let me use a simple picture.
Think of a big hospital. It has hundreds of doctors, but when you walk in with a sore throat, you don't see all of them. A front desk sends you to the few who know your problem. The hospital is large, but your visit is quick.
A Mixture of Experts (MoE) model works the same way. In Qwen4-35B-A3B, each MoE layer has 256 experts. For every token, a small router picks 8 of them, and one shared expert is always on. The other experts sit idle for that token. That's how 35 billion parameters turn into roughly 3 billion of active work.
There's one catch you should know about. The whole model still has to be loaded into memory, even though only a small piece runs each time. So it's fast, but it isn't tiny. Think of it as quick to run, not light to store. Quantized versions help with this, and the page already lists 14 of them as of my visit.
How it reads a million tokens
When a model reads your text, it uses something called attention to look back at earlier words. Classic attention gets expensive as the text grows. It needs more compute, and it also keeps a growing memory of everything it saw, called the cache. With very long documents, this becomes the main bottleneck.
Qwen4 handles it by mixing two styles of attention. The model has 40 layers, arranged in a repeating block that runs 10 times. Each block has three layers of Gated DeltaNet followed by one layer of Qwen Sparse Attention, and every layer is paired with an MoE.
Here's a way to picture it. Imagine you're reading a thick book. Gated DeltaNet is like keeping a short running summary in your head as you go. Qwen Sparse Attention is like flipping back to the few pages that really matter instead of rereading everything. In the card's numbers, the sparse layer picks from a budget of 512 blocks or 2,048 tokens.
The result is that the model handles a native context of 1,048,576 tokens, which is about a million. That's enough room for several long books, or a big chunk of a codebase. The card says this design gives faster inference and a much smaller cache for long inputs.
A few other design pieces
The model card mentions three more parts. I'll keep each one short.
N-gram embeddings. The model has a lookup table of 10 million common two-word and three-word patterns, added at layer 2. The card says this raises quality without extra compute or extra accelerator memory.
Multi-token prediction (MTP). One extra layer trained to guess more than one token ahead. Setups like this are often used to speed up generation, though the card doesn't go into how you should use it.
Gated residual. A way of passing information between layers with 4 branches. It's a training and stability detail, and you don't need to think about it as a user.
What is it good at?
The Qwen team points to three strengths.
Long, multi-step work. They say they studied real knowledge-work flows and trained the model for tasks that take a long time and many steps to finish. The goal is a useful work assistant, not just a chat partner. They also mention stronger results in coding for visual and creative output, like frontend work, 3D modeling and game development with professional tools.
Fewer tokens for the same job. The card says tasks need fewer back-and-forth rounds, and the thinking inside each round is shorter. Combined with the faster architecture, jobs should finish sooner and cost less.
Efficiency at long length. This is the attention design I described above.
On benchmarks, the card shows a chart with Terminal Bench 4.1, FrontierCode-AA 2.0, AA-Briefcase v1.1, AutomationBench-AA, APEX-Agents v1.1, Work360 and ChartoGraphy. Some scores come from Artificial Analysis and the Mercor leaderboard. Work360 is Qwen's own internal benchmark. The scores are inside an image, so I won't repeat numbers from memory. Open the chart on the model page and look for yourself, and treat any self-made benchmark with the usual care.
Benchmark Results
The chart below compares Qwen4-35B-A3B with Qwen3.8-Flash-Next, Qwen3.8-27B and Inkling2 Mini across twelve benchmarks.

Controlling how much it thinks
Qwen4 lets you decide how hard the model should think, using a setting called reasoning_effort. The levels are:
xhighfor hard tasks where quality matters mosthighfor everyday tasks, and this is the defaultlowfor quick answers with little thinkingoffto turn thinking off completely
There's also preserve_thinking, which is on by default and keeps earlier reasoning in the conversation. The older enable_thinking=False switch still works and means the same as off.
One tip from the card is worth remembering. In multi-step agent tasks, a lower effort level doesn't always finish faster overall. Each reply may come quicker, but the model can miss things, fail, and retry, and that can cost you more time and tokens in the end.
How to run it
You have a few routes, depending on what you're doing.
For production serving, the card recommends SGLang, vLLM or TokenSpeed, and it links a recipe for each. With vLLM, the basic start is two commands:
pip install vllm
vllm serve "Qwen/Qwen4-35B-A3B"SGLang has a similar launch command. Both give you an OpenAI-compatible API, so most existing apps can talk to them without changes.
For local use, the Qwen4 architecture is supported in llama.cpp, Ollama, Unsloth, mlx-vlm and LiteRT-LM. The page also points to quantized versions that work with LM Studio and Jan. Use the latest version of whichever tool you pick, because support for new architectures improves fast.
For managed use, Qwen Cloud is the official API service. The card says this model will be served there under the name qwen4-35b-a3b, with extras like built-in tools, and that the API would be available soon. Check Qwen Cloud for the current status before you plan around it.
Once a server is running, calling it from Python looks like this:
from openai import OpenAI
client = OpenAI() # uses OPENAI_BASE_URL and OPENAI_API_KEY
reply = client.chat.completions.create(
model="Qwen/Qwen4-35B-A3B",
messages=[{"role": "user",
"content": "Write a Python function to merge two sorted linked lists."}],
extra_body={"chat_template_kwargs": {"reasoning_effort": "high"}},
)If you use the Hugging Face tokenizer, note that it needs tiktoken and trust_remote_code=True. A Jinja chat template is included too, but only for older tools. The card says it makes the same text with different token IDs, so the reference tokenizer is the better choice.
Settings the Qwen team recommends
These come straight from the card.
Thinking mode: temperature 1.0, top_p 0.95, top_k 20, min_p 0.0, presence_penalty 0.0, repetition_penalty 1.0.
Non-thinking mode: temperature 0.7, top_p 0.80, top_k 20, min_p 0.0, presence_penalty 1.5, repetition_penalty 1.0.
Output length: for agent tasks, give the model room. The card suggests up to 262,144 tokens for reasoning and 131,072 for the final answer, inside the 1M context.
Repetition: if the model starts looping, raise
presence_penaltysomewhere between 0 and 2. A high value can sometimes mix languages and slightly lower quality.
For long videos, the default video settings are cautious. The card suggests setting longest_edge to 469,762,048, which equals about 224k video tokens, so hour-long videos can be sampled at a higher frame rate. In vLLM, you can also change the frame rate through mm_processor_kwargs. The default is 2 frames per second.
Who should care about this model?
Here's my honest view after reading everything.
If you build AI agents, coding tools or document workflows, this model is worth a test. The mix of low active compute, a million-token window and controllable thinking fits those jobs well. Teams that need to keep data on their own servers also get a serious option under Apache 2.0.
If you're a student or hobbyist with a small laptop, be careful. Only 3B parameters are active, but the full weights still need space. Start with a quantized build and see how it feels before you commit.
And a few things are still open. I haven't run the benchmarks myself. The Qwen Cloud API was marked as coming soon on the card. Real speed and memory use will depend on your hardware and your serving tool. Test it on your own tasks before you decide.
Final thoughts
Qwen4-35B-A3B shows where open models are heading. Instead of making everything bigger, the team made it smarter about what to use and when. Experts that wake up only when needed, attention that stays cheap over very long text, and thinking you can turn up or down.
If you've been waiting for an open model that feels built for real work, give this one an afternoon. Try it on a task you already know well, so you can judge it fairly.

Join the conversation! Your thoughts help the community grow.