Short answer: Qwen4-35B-A3B is the first open-weights model in Alibaba’s Qwen4 family: a mixture-of-experts model with 35 billion parameters, about 3 billion active per token, a native 1 million token context window and an Apache 2.0 license. Unsloth says a 4-bit build fits a single 24 GB GPU or a 24 GB Mac, and Qwen Cloud serves it at $0.06 per million input tokens and $0.36 per million output tokens. The caveat: it trails the older Qwen3.8-Flash-Next on several coding and agent tests, and Artificial Analysis found it slow and very verbose per task.
For builders, this is the small sibling of the Qwen4-Max flagship we covered recently, and the one you can actually run at home. The Hugging Face release reached more than 750 points on Hacker News within a day, with llama.cpp, Ollama, Unsloth and MLX support ready at launch. If you run a local coding agent or a self-hosted assistant, this is the model to test this week.
Key points
- Size: 35B parameters with 3B active, plus a 20B n-gram embedding table and a 2B multi-token prediction module. Artificial Analysis counts 57B total.
- Context: 1,048,576 tokens natively. Input: text, images and video. Output: text.
- License: Apache 2.0, so commercial use, fine-tuning and redistribution are allowed without a revenue cap.
- Thinking control: four reasoning effort levels (xhigh, high, low, off), with high as the default.
- Qwen Cloud API (model name
qwen4-35b-a3b): $0.06 input, $0.36 output and $0.003 for cached input, per million tokens, with up to 128K output tokens (256K in thinking mode). - Artificial Analysis Intelligence Index: 25, and a 79.56% non-hallucination rate on its AA-Omniscience test.
- Local: Unsloth lists 21 to 25 GB of memory for 4-bit and 17 to 19 GB for 3-bit, with part of the model kept on SSD.
What Qwen4-35B-A3B actually ships
The model reuses the hybrid architecture Qwen introduced with Qwen3.8-Flash-Next. Three out of every four layers use Gated DeltaNet linear attention and the fourth uses Qwen Sparse Attention, which keeps the memory cache small on long prompts. Each layer routes tokens to 8 of 256 experts plus one shared expert. That is why only about 3B parameters do work on any token, and why it generates fast on consumer hardware.
The unusual part is the n-gram embedding, which Unsloth calls the engram. It is a 20B lookup table of common word pairs and triples that improves quality without adding compute. Think of it like a phrasebook on the shelf: the model looks things up instead of working them out, and the book can live on your SSD instead of in GPU memory. Unsloth says about 30% of a 4-bit download is this table, and its desktop app moves it into RAM when there is room.
Qwen also ships its own tokenizer implementation that needs tiktoken and trust_remote_code=True. A Jinja chat template is included for compatibility, but Qwen warns the token IDs it produces can differ from the reference tokenizer. If your serving stack depends on templates, test tool calls before you trust them.
Qwen4-35B-A3B benchmarks: a small model with a real gap
Qwen’s own table, republished by Unsloth, shows a mixed picture against its predecessor Qwen3.8-Flash-Next:
- Wins: DeepSWE v1.1 (61.8 vs 58.7), NL2Repo (51.7 vs 48.1) and AutomationBench-AA (57.9 vs 55.9).
- Losses: Terminal-Bench 4.1 (21.2 vs 24.2), FrontierCode-AA 2.0 (16.1 vs 27.1) and APEX Agents (59.0 vs 61.0).
- Against same-size models: it clearly beats Qwen3.8-27B and Thinking Machines’ Inkling 2 Mini on most coding and agent rows.
Artificial Analysis gives it an index score of 25, well above the median of 9 for open models in its size class. Its run also shows the cost: 175 million output tokens across the index versus a 95.9 million median, and 15.7 minutes per task versus 5.3 minutes. Cheap tokens do not help much if the model spends twice as many of them.
What it means for builders
- A real local coding model. Simon Willison reported about 84 tokens per second with the Unsloth Q4_K_S build on an M5 MacBook Pro, and another HN user saw over 100 tokens per second on a Radeon 7900 XTX. That is fast enough for an agent loop that runs on your own machine with no API bill.
- A safe license for products. Apache 2.0 is cleaner than the custom terms on releases like Amazon Ergo, which bans removing safety tuning. You can fine-tune Qwen4-35B-A3B, ship it inside a product and charge for it.
- One of the cheapest hosted options. At $0.06 and $0.36 per million tokens it undercuts most open models on rented APIs. If data residency matters more than price, compare it with the open models on the Hetzner Inference API in Europe.
- Lower effort is not always faster. Qwen notes that low reasoning effort can cause more failures and retries in multi-turn agent tasks, which can raise total time and tokens.
A simple test: run it next to your current local model on ten real tasks from your backlog at high effort, and log pass rate, wall-clock time and tokens per finished task. One HN commenter found the 4-bit build scored worse than Qwen3.8-27B on their own programming tests, so do not switch on benchmarks alone.
What to watch
- More Qwen4 sizes. HN users spotted Qwen4-27B and Qwen4-4B in the inference engine commits that added support for this model. A dense 27B could suit teams that prefer predictable quality over speed.
- Quantization quality. Several commenters suggest 3-bit and smaller builds lose more than the charts show on real work. Start at 4-bit if your hardware allows it.
- Fine-tunes. Qwen3.8-27B grew a large community of fine-tunes. Expect coding and agent variants of this model to appear quickly on Hugging Face.
- Security reviews. Some teams avoid Chinese-made models for code generation. Apache 2.0 weights you host yourself remove the data concern, but you should still review generated code the same way you would for any model.



