Alibaba’s Qwen Team has released Qwen4-35B-A3B, the first open model built on its full Qwen4 architecture. It reads text, images and video, writes text, handles a native context window of about one million tokens and ships under the Apache-2.0 license. That license matters if you want to build products on top of it without legal headaches.
What caught my attention is not the benchmark chart but the memory numbers. With the right quantization, this model fits on a well-equipped Mac. Below I go through what it is, what you need to run it, and the one caveat about the reasoning settings that is easy to miss.
What Qwen4-35B-A3B actually is
It is a Mixture-of-Experts (MoE) model. Instead of using every parameter for every token, it routes each token through a small subset of 256 experts: eight routed experts plus one shared expert. The headline figures are about 35 billion main parameters, of which only a few billion are active per token.

How many exactly depends on where you look. The Hugging Face launch post says roughly 3.8B active parameters, while the official model card lists “35B with 3B activated”. The name “A3B” follows the rounder number. Either way, the per-token compute is small compared with the total size.
On top of that sits an unusual component: a per-layer n-gram embedding table of about 20.5 billion parameters (the model card rounds it to 20B and adds a separate 2B multi-token prediction module). Together, Hugging Face counts about 56B parameters in total.
The architecture, in plain terms
The text decoder has 40 layers arranged as ten repeats of the same four-layer block:
- Three Gated DeltaNet layers. These keep a fixed-size memory that gets updated as each token arrives, so their cost does not balloon with context length.
- One Qwen Sparse Attention layer. This lets a token look back at specific earlier tokens anywhere in the context. A small indexer groups tokens in blocks of four, picks up to 512 blocks, and attends to roughly 2,048 tokens per query.
This mix of linear and sparse attention is what makes the one-million-token window practical. According to the Qwen Team, it means faster inference and a much smaller cache than full attention would need.
The n-gram table lives in the second layer. For each token, the model does 16 lookups covering two- and three-token patterns, then blends the result into its internal streams. The idea is to add knowledge without adding compute per token. The catch: those parameters still have to be stored somewhere.
For images, a vision transformer splits pictures into 16×16 patches and merges groups into visual tokens. Video is sampled at two frames per second, and consecutive frames are processed in pairs.
Hardware: can you run it at home?
This is the practical part. The GGUF repository for llama.cpp offers three quantizations. In llama.cpp’s default lazy mode, the n-gram table stays on disk and is read on demand rather than loaded into RAM, which keeps memory use far below the file size. As Unite.AI summarized from the repository, the numbers look like this:
- Q4_K_M (4-bit): 36.0 GB file, about 21.9 GB resident RAM, suited to a 32 GB Mac
- Q6_K (6-bit): 51.0 GB file, about 29.2 GB RAM, suited to a 48 GB Mac
- Q8_0 (8-bit): 59.4 GB file, about 37.6 GB RAM, suited to a 64 GB Mac
Note that disk space is still a real cost. Even the smallest option is a 36 GB download, and since the table is read from disk, a fast SSD will help.
Getting started with llama.cpp is a one-liner: llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q6_K. There is also an optional multi-token prediction drafter for speculative decoding, packaged separately so the base download stays smaller. Hugging Face reports a 22% generation speedup using three draft tokens with the Q4 quant on an Apple Silicon M5.
Mac users have a second route in oMLX, which adds custom Metal kernels for the sparse attention, supports image input and can offload the embedding table to SSD. Text-only support in mlx-lm is on its way to the official repository.
Day-one support also covers transformers, vLLM and SGLang. For production or high-throughput serving, the Qwen Team recommends dedicated engines like SGLang, vLLM or TokenSpeed rather than local tools. If you’d rather not host anything, the model is also available through Qwen Cloud’s API as qwen4-35b-a3b.
Reasoning effort: lower is not always faster
The model runs in thinking mode by default. You can set reasoning_effort to four levels: xhigh for hard tasks, high (the default), low for quick replies, and off to disable thinking completely. The model may also skip thinking on its own if it judges a task simple.
The Qwen Team adds a warning I’d take seriously if you build agents. In multi-turn agentic tasks, dropping the effort level can make each turn faster but lead to shallow analysis, more failures and repeated retries. The net result can be more total latency and more tokens spent, not fewer.
My takeaway: don’t flip to low just to save money. Measure full task completion time and token usage on your own workflow before deciding.
The model card also lists recommended sampling settings. For thinking mode: temperature 1.0, top_p 0.95, top_k 20. For non-thinking mode: temperature 0.7, top_p 0.80, top_k 20 and presence_penalty 1.5. If you see endless repetition, raising presence_penalty (between 0 and 2) can help, though higher values may cause language mixing.
A fine-tuning example with an honest result
Hugging Face included a reinforcement learning recipe with TRL that trains a LoRA adapter to triage security alerts and cite evidence. vLLM samples several replies per alert on one GPU. Each reply scores 1 if its label and citations match an analyst’s criteria, otherwise 0. TRL’s asynchronous GRPO trainer then updates the adapter on the second GPU.
The results are worth noting precisely because they are not a clean success story. On 12 held-out CyberDefense Bench tasks, the base model passed 4, the adapter after 50 updates passed 6, and the adapter after 100 updates passed only 3. Training reward kept rising, but held-out performance did not follow.
It is a small sample, so I wouldn’t read too much into the exact figures. The lesson is a familiar one: evaluate on data the model hasn’t seen, and keep earlier checkpoints, because the last one isn’t automatically the best.
Who should try it
If you have a Mac with 32 GB or more, or a decent GPU box, Qwen4-35B-A3B looks like one of the more interesting open models to run locally right now. It combines vision, video and very long context with a permissive license. Hugging Face says it compares well with the much larger Qwen3.8-Flash-Next and beats it on some tasks, though those are the team’s own published benchmarks.
Start with the Q4 quant, keep reasoning effort at the default, and check the official model card for the tokenizer notes. The reference tokenizer requires trust_remote_code=True, and the bundled Jinja template is there only for backward compatibility.


