Alibaba released Qwen4-35B-A3B on December 4, 2026: the first open-weight Qwen4 model, an Apache-2.0 multimodal MoE with about 3B active parameters and a 1M-token context. The Hugging Face launch post, written with the Qwen team, walks through the new architecture, day-0 support in llama.cpp, vLLM, SGLang, MLX and transformers, and a reinforcement learning recipe for fine-tuning it. This guide puts that announcement next to the official model card, the first independent benchmarks, measured speeds on real hardware and the first day of community testing, to answer the questions people are actually asking: what it is, how good it is, and what you need to run it.
TLDR
Qwen4-35B-A3B is a 35B-parameter Mixture-of-Experts model that activates about 3B parameters per token, takes text, image and video input, and ships under Apache-2.0 with a native 1M-token context. Its download is bigger than the name suggests (about 57B parameters, 114 GB in BF16) because of a 20.5B-parameter n-gram lookup table, but that table can sit in system RAM or on an SSD, so a 4-bit build runs on a 24 GB GPU or Mac. Independent testing puts it at the top of its size class but below Alibaba’s larger Qwen3.8-Flash-Next, and it uses a lot of tokens. Early users love the speed and are split on quality, with language mixing in non-English answers the clearest early bug.
Thoughts
The number in the name is the least useful thing to know about this model. Qwen4-35B-A3B holds about 57B parameters on disk, but 20.5B of them sit in a per-layer n-gram embedding table that each token reads just 16 rows from. That table behaves like a dictionary, not like compute, so it does not need fast memory. One Hacker News tester measured 79 tokens per second with it on disk against 81 with it in RAM, and a DGX Spark benchmark lost about 1.4% by moving it to SSD. That is why Unsloth can quote 21 to 25 GB of RAM plus VRAM for a 4-bit build whose download is 32 to 37 GB. For anyone buying hardware, the question changes from “how many parameters” to “how big is the part that has to be in fast memory.” The Qwen4 GitHub README says the model shares the architecture of the flagship Qwen4-Max, so expect the lookup table, and where you put it, to become a standard line in every Qwen4 spec sheet.
Judged as a frontier contender it is a modest step. Judged per gigabyte, nothing else in its class beats it yet. Qwen’s own chart, as transcribed by Maccus and Cellcog, has it winning six tests and losing six against the far larger Qwen3.8-Flash-Next, while beating the dense Qwen3.8-27B badly on agentic work (21.2 against 5.6 on Terminal Bench 4.1). Artificial Analysis scores it 25 on its Intelligence Index, first of 17 open-weight models in the 4B to 40B range, where the median is 11, but behind Flash-Next’s 28. The catch is verbosity. At xhigh reasoning it generated 175M output tokens across the index, against a median of 95.9M for comparable models, so its $0.36 per million output tokens works out to about $0.55 per task. Run locally, that cost shows up as waiting time instead of dollars, which is why the speed results matter as much as the scores.
This release was engineered for local machines in a way most launches are not. Hugging Face calls it “a high-quality mid-sized model for local setups”, and the day-0 list backs that up: official GGUFs with a multi-token-prediction drafter, oMLX kernels that can push the lookup table to SSD, an Ollama library entry, a vLLM recipe that fits the model and a full 1M context on one GPU, and 318 community quantizations linked from the model card within a day. Real numbers arrived within hours: about 84 tokens per second on an M5 MacBook Pro for Simon Willison, 142.7 on a 48 GB M4 Max under oMLX, and 45.7 on a 12 GB laptop GPU backed by 32 GB of RAM. Compare that with Qwen4-Max, which stays API-only at $1.50 and $4.50 per million tokens. Alibaba is giving away the model people can run at home and selling the one they cannot.
The 1M-token context is unusually real here, and the limit has moved from memory to patience. Only 10 of the 40 layers keep a KV cache. The other 30 are Gated DeltaNet layers with a fixed-size state, and the sparse attention layers read at most 2,048 selected tokens per query. vLLM puts a full 1M-token context at 8 GiB of NVFP4 cache. On a single 48 GB Radeon PRO W7800, one lab found its test needle exactly at 188k, 491k and 939k tokens, but the 939k prompt took 3,242 seconds to process. A model that can hold a whole codebase is not one you want to wait 54 minutes on every time, so prompt caching and retrieval will still matter more than the raw window for most people.
The early rough edges are specific enough to plan around. Users report English or Chinese words dropped into Japanese and German answers, reproduced across GPUs, engines and both BF16 and FP8, while Qwen3.6-35B-A3B produced none on the same German prompts. One Hacker News user reported it replacing “Taiwan” with “China.” The tokenizer requires trust_remote_code. Hugging Face’s own fine-tuning demo is a useful warning too: the update-100 adapter passed 3 of 12 held-out tasks, worse than the 6 of 12 checkpoint before it, even as training reward kept rising. The sensible reading is a fast, capable local workhorse for English coding and document work. Test it on your own language and task before shipping it, and keep a bigger model on call for long agent runs: one tester had to bring in GLM-5.3 to break it out of a loop.
Key Takeaways
- Qwen4-35B-A3B was published on Hugging Face and ModelScope on December 4, 2026. It is the first open-weight model in the Qwen4 family and is licensed under Apache-2.0, which allows commercial use.
- It is a Mixture-of-Experts model with 256 routed experts, 8 selected per token plus one shared expert. The model card counts 3B active parameters, while the Hugging Face blog says about 3.8B.
- Total size is about 57B parameters (114 GB in BF16): a roughly 35B core, a 20.5B n-gram embedding table (the “PLE” or “engram”) and a 2B multi-token prediction module.
- The lookup table can be kept off the GPU, in system RAM or on an SSD, at little cost to speed. Testers measured 1.4% to 2.5% slowdowns.
- Unsloth’s guidance is 4-bit UD-IQ4_XS on a 24 GB GPU or 24 GB Mac, 3-bit on 18 GB, and 2-bit or 3-bit on a 16 GB GPU, with the lookup table on SSD.
- It takes text, image and video in and produces text. The native context is 1,048,576 tokens, and only 10 of its 40 layers need a KV cache.
- Reasoning effort has four settings: xhigh, high (the default), low and off.
- Artificial Analysis scores it 25 on its Intelligence Index, first among 17 open models in its size range, against 28 for Qwen3.8-Flash-Next and 43 for the closed Qwen4-Max.
- The model card’s text scores are 61.8 on DeepSWE v1.1, 86.9 on GPQA Diamond and 21.2 on Terminal Bench 4.1.
- API pricing is $0.06 per million input tokens and $0.36 per million output tokens through Qwen Cloud and OpenRouter, about 25 times cheaper on input than Qwen4-Max.
- Speculative decoding with the built-in MTP head gave Hugging Face a 22% generation speedup on an Apple M5 at Q4, and an AMD W7800 user saw about 60%.
- The clearest early bug is language mixing: stray English or Chinese words in Japanese, Chinese and German answers, reproduced across engines and checkpoints.
- The weights, config and tokenizer are open, but no training data or training code was released, so it is open weights rather than open source.
- Alibaba has not announced other open Qwen4 sizes. Hacker News commenters say 27B and 4B variants are mentioned in code that landed with this release, which is not confirmed.
Detailed Summary
What Qwen4-35B-A3B Is, and What It Is Not
Qwen4-35B-A3B is the production version of the hybrid design Alibaba previewed in August with Qwen3.8-Flash-Next. It is the only open-weight Qwen4 model so far. The flagship Qwen4-Max launched on November 16, 2026 as a closed, API-only model, so “Qwen4 is open source” is only true of this mid-sized release. The weights ship in BF16 and an official FP8 build, with GGUF and MLX builds from ggml-org, Unsloth, LM Studio and mlx-community. Hugging Face and nine named contributors wrote the launch post with the Qwen team. The model card’s main benchmark table is an image, and no Qwen4 technical report has been published. The card instead cites an August 2026 architecture paper on Qwen3.8-Next.
Architecture: Gated DeltaNet, Qwen Sparse Attention and the Engram
The text decoder repeats one four-layer pattern ten times. Three layers use Gated DeltaNet, which updates a fixed-size memory as it reads, and the fourth uses Qwen Sparse Attention (QSA). In QSA a small indexer averages keys over groups of four tokens and picks up to 512 groups per query, so attention reads at most 2,048 tokens plus up to three from the last unfinished group. Each token carries four residual streams of 2,048 dimensions, mixed by learned gates before every attention or MoE block. The second layer holds the 20.5B-parameter n-gram table: each token looks up eight rows for the last two tokens and eight for the last three, which are then gated into the streams. A vision transformer cuts images into 16 by 16 patches and merges each 2 by 2 group into one token, and video is sampled at 2 frames per second in frame pairs.
Benchmarks: Qwen’s Numbers Against Independent Tests
Hugging Face’s post says the model “is comparable to the much larger Qwen 3.8 Flash Next, or even better in some tasks.” The figures below come from Qwen’s chart as transcribed by Maccus and Cellcog, with the first three rows confirmed by the model card’s own metadata. Terminal Bench 4.1, FrontierCode-AA 2.0, AA-Briefcase and AutomationBench-AA are cited from Artificial Analysis, APEX-Agents from the Mercor leaderboard, and Work360 is Alibaba’s in-house test. Maccus counts six wins and six losses against Flash-Next. The biggest win is HealthBench Professional (47.4 against 34.8) and the biggest loss is FrontierCode-AA 2.0 (16.1 against 27.1).
| Benchmark | Qwen4-35B-A3B | Qwen3.8-Flash-Next | Qwen3.8-27B | Inkling2 Mini |
|---|---|---|---|---|
| DeepSWE v1.1 | 61.8 | 58.7 | 42.2 | 48.2 |
| GPQA Diamond | 86.9 | 91.7 | 89.2 | 86.9 |
| Terminal Bench 4.1 | 21.2 | 24.2 | 5.6 | 5.6 |
| FrontierCode-AA 2.0 | 16.1 | 27.1 | 14.9 | 15.1 |
| NL2Repo | 51.7 | 48.1 | 42.3 | 41.8 |
| APEX-Agents v1.1 | 59.0 | 61.0 | 47.5 | 50.9 |
| AutomationBench-AA | 57.9 | 55.9 | 48.2 | 41.8 |
| Work360 (Alibaba internal) | 42.9 | 43.7 | 37.1 | 30.4 |
Independently, Artificial Analysis gives it 25 on Intelligence Index v5.0.2, run at xhigh effort, against 26 for Mistral Large 4 and 28 for Flash-Next. It measured 218 output tokens per second and 14.65 seconds to first answer token on Alibaba’s API, with a 984k context. One developer’s code-audit benchmark on a 48 GB M5 MacBook Pro scored Inkling 2 Mini 233, Qwen4-35B-A3B 229 and Qwen3.8-27B 226, but Qwen4 finished each audit in 7 minutes against 17 for Inkling.
Hardware Requirements by Quantization
Neither the blog nor the model card lists hardware requirements. The table below combines actual file sizes on Hugging Face, vLLM’s published memory split and Unsloth’s memory guide. “Memory needed” assumes the lookup table is kept off the GPU or on SSD, which every major runtime now supports. The hardware column is our mapping from those figures, not a measurement.
| Format | Download size | Memory needed | Typical hardware |
|---|---|---|---|
| BF16 | about 114 GB | 72.7 GB on GPU plus 41 GB host RAM (vLLM) | One H200 or B200, or a 96 GB card with the table in RAM |
| FP8 (official) | 60.2 GB | 39.7 GB on GPU plus 20.5 GB host RAM (vLLM) | One 80 GB H100, an RTX PRO 6000, a DGX Spark |
| Q8_0 | 49 to 62 GB | about 41 GB (Unsloth) | 48 GB GPU, 64 GB or larger Mac |
| Q6_K | 51 to 53 GB | 29 to 31 GB (Unsloth) | 32 GB GPU, 48 to 64 GB Mac |
| Q5_K_M | about 42 to 43 GB | 26 to 28 GB (Unsloth) | 32 GB GPU (RTX 5090), 48 GB Mac |
| Q4 (IQ4_XS to Q4_K_XL) | 32 to 37 GB | 21 to 25 GB (Unsloth) | 24 GB GPU (RTX 3090, 4090, RX 7900 XTX), 24 GB Mac |
| 3-bit | 29 to 31 GB | 17 to 19 GB (Unsloth) | 18 GB Mac with short context |
| 2-bit | 23 to 28 GB | 12 to 16 GB (Unsloth) | 16 GB GPU (RTX 5080, RX 9070 XT) |
| 1-bit | 21 to 22 GB | 10 to 11 GB (Unsloth) | 12 GB GPU, with quality loss and looping risk |
Unsloth says about 30% of a 4-bit file is the lookup table, which is why downloads run so far above memory needs. Context adds little. Only the 10 attention layers keep a KV cache, at about 20 KB per token in BF16, roughly 2.7 GB at 128k tokens and 21.5 GB at the full 1M (our arithmetic from the config, matching canirun.dev). vLLM’s NVFP4 cache, which the model was trained for, cuts 1M tokens to 8 GiB. Discrete GPUs also need enough system RAM to hold whatever is offloaded; 32 GB is the practical floor reported by 12 GB and 16 GB GPU users.
Measured Speeds on Real Hardware
Every figure below is a single report from the person or project named, measured with different engines, contexts and speculative decoding settings, so treat them as a range rather than a ranking.
| Hardware | Setup | Decode speed | Reported by |
|---|---|---|---|
| NVIDIA B300 | vLLM, FP8, MTP 3 tokens | 514 tok/s per request (336 at 4 requests) | vLLM blog |
| RTX 6000 Max-Q 96 GB | NVFP4 + DFlash2, 4 parallel lanes, 1M context | 438 tok/s total | Hacker News user gmerc |
| RTX 5090 32 GB | SGLang, NVFP4, table in host RAM | 248.7 tok/s | SGLang cookbook |
| 24 GB GPU | Unsloth MoE cache | 131 to 138 tok/s | Unsloth |
| 16 GB / 8 GB GPU | Unsloth MoE cache | 127 / 95 tok/s | Unsloth |
| Apple M4 Max 48 GB | oMLX 4-bit with MTP, 1K context | 142.7 tok/s | oMLX benchmarks |
| Apple M5 MacBook Pro | llama-server, Unsloth Q4_K_S | about 84 tok/s | Simon Willison |
| Radeon PRO W7800 48 GB | llama.cpp Vulkan, Q8_0, table in RAM | 73.5 tok/s, about 115 with MTP | NOBAExperts |
| Radeon RX 7900 XTX 24 GB | llama.cpp, Q4 | 35 to 100+ tok/s | Hacker News users badsectoracula, jakswa |
| Strix Halo 128 GB | Q6, 1M context | 45 tok/s | Hacker News user nolok |
| NVIDIA DGX Spark | FP8, MTP, table on SSD | 42.2 tok/s (102 at 4 streams) | Tech2Wild |
| RTX 4080 Mobile 12 GB + 32 GB RAM | ik_llama.cpp fork, UD-IQ4_XS | 45.7 tok/s | Hugging Face user el4 |
How to Run Qwen4 Locally: llama.cpp, Ollama, LM Studio and MLX
llama.cpp merged Qwen4 support on December 3, so older builds fail with an unknown pre-tokenizer error and need updating. The official ggml-org GGUFs run with one command, and adding the MTP drafter is what gave Hugging Face its 22% speedup:
llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q4_K_M --spec-type draft-mtp --spec-draft-n-max 3
To keep the lookup table on SSD with Unsloth’s quants, add --load-mode mmap --lazy-mode on -ot per_layer_token_embd=CPU. Ollama lists qwen4:35b-a3b (36 to 37 GB) plus BF16, MLX BF16 and NVFP4 tags, all with 1M context, and ollama run qwen4 pulls the default. LM Studio users can load the lmstudio-community GGUFs (Q4_K_M 36.1 GB, Q6_K 51.3 GB, Q8_0 60 GB). On a Mac, oMLX supports image input, MTP and SSD offload, while the mlx-community 4-bit text build needs an unreleased mlx-lm branch for now and leaves out the vision encoder and MTP head. In transformers, the model loads through the image-text-to-text pipeline or AutoModelForMultimodalLM, and the tokenizer needs trust_remote_code=True and the tiktoken package.
Production Serving and API Pricing
The vLLM team supports the model on day 0 on NVIDIA Blackwell and Hopper, AMD MI350X and MI355X, and Alibaba’s T-Head Zhenwu chips, with dedicated vllm/vllm-openai:qwen4 images and qwen4 tool-call and reasoning parsers. Its recipe runs the FP8 checkpoint on a single GPU with an NVFP4 KV cache and three-token MTP. SGLang and TokenSpeed are also recommended on the model card. Hosted access costs $0.06 per million input tokens, $0.36 per million output tokens and $0.003 for cached input on Qwen Cloud, the same list price shown on OpenRouter through Alibaba Cloud, Morph and Prime Intellect, and on Hugging Face Inference Providers. Self-hosting on a rented H100 runs about $2.69 to $4.89 an hour on RunPod and Lambda, which only beats the API at heavy, steady volume.
Settings, Reasoning Effort and Fine-Tuning
The model runs in thinking mode at high effort by default, with preserve_thinking on, and the reasoning_effort setting takes xhigh, high, low or off. Qwen recommends temperature 1.0, top_p 0.95 and top_k 20 for thinking mode, and temperature 0.7, top_p 0.8, top_k 20 and presence_penalty 1.5 for non-thinking mode. Output can run to 262,144 reasoning tokens and 131,072 answer tokens. The card warns that “In multi-turn agentic tasks, lower reasoning effort does not always reduce overall task completion time.” TRL supports the model on day 0, and Hugging Face’s demo trains LoRA adapters with AsyncGRPOTrainer to triage security alerts on a two-GPU H200 job. Unsloth publishes an attention-only LoRA recipe that freezes the experts, vision layers and lookup table, and the ms-swift team announced support in the model’s discussions.
Known Issues and What the Community Is Saying
The Hacker News launch thread reached 843 points and 207 comments on day one. Praise centers on speed and size (“Absolutely a new best-in-class for this size of model”), and reviews include a pull-request review that matched Claude Opus 5.5’s conclusions and an Android port completed mostly unaided with the Pi agent. Critics say it trails Flash-Next on prompt adherence, that Q4 quants did worse than Qwen3.8-27B on one developer’s programming benchmark, and that tool use was weak in an image-to-HTML test. Known bugs include the language mixing documented in model discussion 45, a llama.cpp CUDA crash with MTP draft depth of 2 or more and multiple slots, an HTTP 500 when sending reasoning_effort: "off" to llama-server, and looping on Unsloth’s smallest 1-bit and 2-bit quants, where it recommends min_p 0.01 and presence_penalty 1.5.
Qwen4-Max, Licensing and What Comes Next
Qwen4-Max, launched November 16, costs $1.50 per million input tokens and $4.50 per million output tokens on Alibaba Cloud and scores 43 on the Artificial Analysis Intelligence Index, so the open model sits well below the flagship. Apache-2.0 is a notable choice: Alibaba attached commercial restrictions to its open-weight Qwen3.8-Max, while this release carries none beyond the standard license terms. The most common request in the model’s discussions is for smaller and larger sizes, from a phone-sized 4B to a 27B and a Flash model, and Alibaba has only said more open Qwen4 models are on the way, with no names or dates. The release also lands while Washington is weighing restrictions on Chinese AI models. US civilian agencies were ordered to remove DeepSeek in October, but no Qwen-specific ban has been reported, and downloadable weights are hard to restrict once published.
Frequently Asked Questions
Can I run Qwen4-35B-A3B on a 16 GB or 24 GB GPU?
Yes, if the lookup table goes to system RAM or SSD. Unsloth recommends 4-bit UD-IQ4_XS on 24 GB cards such as the RTX 4090 or RX 7900 XTX, and 2-bit or 3-bit quants on 16 GB cards. Plan on at least 32 GB of system RAM. A 12 GB laptop GPU with 32 GB of DDR5 reached 45.7 tokens per second on a community fork.
Will it run on a Mac?
Yes. A 4-bit build fits a 24 GB Mac with the lookup table on SSD, a 32 GB MacBook Air runs it “at a decent speed” by one user’s account, and 48 GB or more gives room for higher quants and long context. Use oMLX, Ollama, LM Studio or llama.cpp’s Metal build.
Is Qwen4 free for commercial use?
Qwen4-35B-A3B is Apache-2.0, which permits commercial use, modification and redistribution with attribution and the license notice. Qwen4-Max is closed and only available as a paid API.
Why does a “35B” model download as 114 GB?
The 35B counts the Mixture-of-Experts core. The checkpoint also holds a 20.5B n-gram embedding table and a 2B multi-token prediction module, about 57B parameters in all, at two bytes each in BF16.
Does the 1M-token context actually work?
Early tests say retrieval works. One user found a needle exactly at 939k tokens on a single 48 GB card. Processing a prompt that long took about 54 minutes on that hardware, though, and commenters expect quality to fall off well before the limit in real work.
Can I turn thinking off?
Yes. Set reasoning_effort to “off” (equivalent to the older enable_thinking=False), or use “low” for shorter reasoning. In mlx-lm, pass --chat-template-config '{"reasoning_effort": "low"}'.
Is it better than Qwen3.8-27B or Qwen3.8-Flash-Next?
It beats the dense 27B on most of Qwen’s charted tests and runs much faster, though some users found Q4 builds weaker on their own coding benchmarks. It roughly ties the much larger Flash-Next on Qwen’s chart and trails it by three points on the Artificial Analysis index.
Is there a smaller Qwen4, like a 4B or 27B?
Not yet. Alibaba says more open Qwen4 models are coming but has named none. Community members point to references to 27B and 4B sizes in code, which Alibaba has not confirmed.
Notable Quotes
“Qwen4-35B-A3B punches way above its size and class across various benchmarks.”
Hugging Face and the Qwen team, in the launch post
“We are very glad to partner with the Qwen team to ship Qwen4-35B-A3B, a high-quality mid-sized model for local setups.”
Hugging Face, closing the launch post
“The earlier checkpoint performed best on this sample, even as the overall training reward trended upward.”
Hugging Face, on its cyber-defense reinforcement learning demo
“This model feels really fast.”
Simon Willison on Hacker News, running a Q4 build on an M5 MacBook Pro
“I was hoping for more, a bigger “magical” increase. Perhaps they’ve hit the limit as to what they can do at this model size? Still, it is free, so can’t complain.”
Hacker News user RachelF, on the size of the jump
“This is a model you can run at a decent speed alongside other applications on a MacBook Air with 32 GB RAM.”
Hacker News user wizee, on who the model is for
“The limiting factor is now time: a full ~1M prompt takes just under an hour of prompt processing with Vulkan.”
NOBAExperts, after a needle test at 939k tokens on a Radeon PRO W7800
Read the full Hugging Face announcement here.
More on PJFP: Thinking Machines Lab’s Inkling open-weights release, how Amazon’s Ergo coding model stacks up and our earlier look at Qwen2.5-Coder.
Related Reading
- Qwen4-35B-A3B model card the official specs, sampling settings and serving instructions.
- Unsloth’s Qwen4 guide memory requirements by quant, engram placement and a LoRA fine-tuning recipe.
- vLLM’s day-0 Qwen4 post how the model and a 1M-token context fit on a single GPU.
- Artificial Analysis on Qwen4-35B-A3B independent intelligence, speed, verbosity and price measurements.
- Qwen (Wikipedia) the history of Alibaba’s model family from Tongyi Qianwen to Qwen4.