Alibaba’s Qwen team has released Qwen4-35B-A3B, a free open-weights model with a 1M-token context window, image and video input, and a hybrid reasoning switch. Hugging Face published its launch post on 4 December 2026, and the licence is Apache 2.0.
The model is a mixture-of-experts: about 35B main parameters with only around 3B active per token, plus a large 20B n-gram embedding table. That is why a 4-bit GGUF can run on a 32 GB Mac even though the full download is over 100 GB.
This guide gives the architecture, every independent benchmark number I could verify, the exact commands for vLLM, SGLang, llama.cpp, Ollama and MLX, file sizes for each quant, API pricing, and where the model falls short.
- What: Qwen4-35B-A3B, an Apache 2.0 multimodal MoE (text, image, video in; text out) with 1,048,576 tokens of native context and four reasoning-effort levels.
- Independent score: Artificial Analysis gives it an Intelligence Index of 25 at Xhigh effort, well above the 9 median it reports for open-weights models in the 40B to 150B class. Qwen4 Max scores 43 on the same index.
- Run it locally: Q4_K_M is 36.0 GB on disk (21.9 GB resident), Q6_K is 51.0 GB and Q8_0 is 59.4 GB. The GGUF page says Q4_K_M fits a 32 GB Mac.
- API price: $0.06 per 1M input and $0.36 per 1M output tokens on Qwen Cloud, model ID
qwen4-35b-a3b. - Caveat: Qwen’s own benchmark table is an image and I could not read its numbers, so this guide only quotes third-party scores. Treat the “comparable to Qwen3.8 Flash Next” claim as vendor-reported.
What Qwen4-35B-A3B Is
It is the first open-weights model in Alibaba’s Qwen4 line. The flagship Qwen4 Max launched in November as a paid API model, and this smaller sibling is the one you can download.
It is a single hybrid model rather than separate Instruct and Thinking releases. You choose how hard it thinks with a reasoning_effort setting, and the default is high.
It accepts text, images and video, and it replies in text. Hugging Face’s launch post frames it as “cutting-edge intelligence on-device”, and says it is comparable to the much larger Qwen3.8 Flash Next and better on some tasks (vendor-reported).
Specs and Architecture
| Item | Value | Source |
|---|---|---|
| Licence | Apache 2.0 | Hugging Face model page |
| Type | Causal language model with vision encoder | Model card |
| Parameters | 35B main, 3B active, plus 20B n-gram embedding and 2B MTP | Model card |
| Total size | About 56B to 57B parameters, 114 GB in BF16 safetensors (33 shards) | HF blog, model page |
| Layers | 40 (10 blocks of 3 Gated DeltaNet layers, then 1 sparse attention layer, each followed by MoE) | Model card |
| Experts | 256 experts, 8 routed plus 1 shared active per token | Model card |
| Context | 1,048,576 tokens native | Model card |
| Inputs | Text, image, video (video sampled at 2 fps by default) | Model card, HF blog |
| Speculative decoding | Multi-token prediction (MTP) head, 1 layer | Model card |
Two design choices matter in practice. The Gated DeltaNet layers are linear attention, which keeps long-context memory growth low, and every fourth layer uses Qwen Sparse Attention with a budget of 512 blocks or 2,048 tokens.
The 20B n-gram embedding table (10 million bigram and trigram entries) is large on disk, and the GGUF page says llama.cpp keeps it on disk by default instead of loading it into RAM. That is why the resident memory is so much smaller than the file size.
Benchmarks: What Is Verified
Qwen’s model card and the Hugging Face blog both show their main comparison as an image, and I could not read the numbers inside it. So I only quote scores from text I could read: the independent Artificial Analysis page, which tested the model at Xhigh reasoning effort through Alibaba’s API.
| Benchmark (Artificial Analysis) | Qwen4-35B-A3B |
|---|---|
| Intelligence Index (v5.0.2) | 25 |
| Terminal-Bench 4.1 | 21.2% |
| FrontierCode-AA 2.0 | 16.1% |
| AutomationBench-AA | 57.9% |
| MMMU-Pro (vision) | 76% |
| HLE-Diamond | 11.1% |
| AA-Omniscience accuracy | 18.93% |
| AA-Omniscience non-hallucination rate | 79.56% |
| CritPt v2 (hard subset) | 13.5% |
| GDP.pdf | 15.6% |
| AA-Briefcase v1.1 | 1486 |
| Terminal-Bench-Science 0.1 | 5.2% |
For context on the Intelligence Index, Artificial Analysis lists Qwen4 Max at 43 and Qwen3.8 Flash Next at 28. The median for open-weights models in the 40B to 150B class is 9, so 25 is well above that class.
Speed and cost from the same page, using the Alibaba API:
- Output speed: 238 tokens per second.
- Time to first answer token: 13.66 seconds (that includes thinking at Xhigh effort).
- Average 14.3 minutes per Intelligence Index task, which used 175M output tokens in total.
- Cost to run the index: $0.55 per task.
Files, Quants and Memory Needs
Qwen publishes Qwen/Qwen4-35B-A3B (BF16) and Qwen/Qwen4-35B-A3B-FP8 on Hugging Face. The ggml-org team published GGUF files, and the community added MLX builds. I did not find separate Base, Instruct or Thinking repositories.
| Format | Repository | Size on disk | Resident memory |
|---|---|---|---|
| BF16 safetensors | Qwen/Qwen4-35B-A3B |
114 GB | not stated |
| GGUF BF16 | ggml-org/Qwen4-35B-A3B-GGUF |
111.1 GB | 70.1 GB |
| GGUF Q8_0 | same | 59.4 GB | 37.6 GB |
| GGUF Q6_K | same | 51.0 GB | 29.2 GB |
| GGUF Q4_K_M | same | 36.0 GB | 21.9 GB |
| Vision projector (mmproj) | same | 903 MB | – |
| MTP sidecar (optional) | same | 1.29 GB (Q4_K_M) to 3.76 GB (BF16) | – |
| MLX 4-bit | mlx-community/Qwen4-35B-A3B-4bit-text |
not stated | not stated |
The “resident memory” column is the key. By default llama.cpp keeps the per-layer embedding table on disk (the --lazy-mode auto behaviour described on the GGUF page), so only the rest of the model sits in RAM. That table is 14.1 GB in Q4_K_M and 21.8 GB in Q6_K and Q8_0.
The GGUF page’s own guidance: Q4_K_M runs on a 32 GB Mac, Q6_K on a 48 GB Mac and Q8_0 on a 64 GB Mac.
For a Windows or Linux PC, the resident figures above are the number to compare with your VRAM plus system RAM. For a refresher on picking a quant, see our llama.cpp MoE offload guide.
How to Run It Step by Step
All commands below are copied from the model card, the Hugging Face blog or the GGUF page. I have not run them myself, so check the linked pages if a flag has changed.
Option 1: llama.cpp (easiest for a home PC or Mac)
- Install a current llama.cpp build. Our llama.cpp install guide covers Windows, Mac and Linux.
- Start the server and let it download the quant:
llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q6_K. For a chat in the terminal usellama cli -hf ggml-org/Qwen4-35B-A3B-GGUF:Q6_K. - For a 32 GB machine, swap
Q6_KforQ4_K_M. - Optional speed-up with the MTP head:
llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q4_K_M --spec-type draft-mtp --spec-draft-n-max 3. The HF blog reports about 22% faster generation on an Apple M5 with a Q4 quant and 3 draft tokens (vendor-reported).
Note that the pages print llama serve and llama cli with a space. The binaries in older builds are called llama-server and llama-cli, so use whichever your build provides.
Option 2: Ollama
The GGUF page gives a Hugging Face pull command: ollama run hf.co/ggml-org/Qwen4-35B-A3B-GGUF:Q4_K_M. The model card also links an official ollama.com/library/qwen4 page, but I could not open it, so I cannot confirm tag names or default context there. Docker users have docker model run hf.co/ggml-org/Qwen4-35B-A3B-GGUF:Q4_K_M.
Option 3: vLLM or SGLang (servers with real GPUs)
- vLLM:
pip install vllmthenvllm serve "Qwen/Qwen4-35B-A3B". Qwen links a vLLM recipe at recipes.vllm.ai. - SGLang:
pip install sglangthenpython3 -m sglang.launch_server --model-path "Qwen/Qwen4-35B-A3B" --host 0.0.0.0 --port 30000. A Docker imagelmsysorg/sglang:latestis also listed. - Long video in vLLM: add
--media-io-kwargs '{"video": {"num_frames": -1}}'as the card suggests.
The BF16 weights are 114 GB, so plan for several large GPUs or use the FP8 checkpoint. Qwen does not state a minimum GPU requirement.
Option 4: Transformers in Python
pip install -U transformers accelerate
# AutoModelForMultimodalLM.from_pretrained("Qwen/Qwen4-35B-A3B", device_map="auto")
# AutoProcessor.from_pretrained("Qwen/Qwen4-35B-A3B")
The card says the reference tokenizer needs trust_remote_code=True and tiktoken. Read the card’s example for the full chat-template call.
Option 5: MLX on Apple Silicon
mlx_lm.generate --model mlx-community/Qwen4-35B-A3B-4bit-text --prompt "Explain sparse attention like I am 5" --max-tokens 4096. The blog says text support in the official mlx-lm repository is “on its way”, so you may need a development build. Add --chat-template-config '{"reasoning_effort": "low"}' to change effort.
Reasoning Effort and Recommended Settings
There are four levels: xhigh, high (default), low and off. Setting enable_thinking=False is the same as off.
| Setting | Thinking mode | Non-thinking mode |
|---|---|---|
| temperature | 1.0 | 0.7 |
| top_p | 0.95 | 0.80 |
| top_k | 20 | 20 |
| min_p | 0.0 | 0.0 |
| presence_penalty | 0.0 | 1.5 |
| repetition_penalty | 1.0 | 1.0 |
- Output budget: up to 262,144 tokens for reasoning and 131,072 for the final answer.
- Higher presence penalty can reduce repetition but may cause language mixing and slightly lower quality.
- Low effort in multi-turn agent tasks can increase total latency, because the model may take more steps.
- For hour-long video, set
longest_edgeto 469,762,048 invideo_preprocessor_config.json(about 224K video tokens).
API Price and Hosted Access
If you do not want to host it, Qwen Cloud serves it as qwen4-35b-a3b through an OpenAI-compatible endpoint (https://ap-southeast-1.maas.qwencloudapi.com/compatible-mode/v1, Singapore region). Pass extra_body={"enable_thinking": True} to turn thinking on.
| Item | Price (Qwen Cloud page) |
|---|---|
| Input | $0.06 per 1M tokens |
| Output | $0.36 per 1M tokens |
| Implicit cache input | $0.003 per 1M |
| Explicit cache creation (5 min / 1 hour) | $0.075 / $0.12 per 1M |
| Explicit cache read | $0.003 per 1M |
| Limits | 1M context, 991K max input, 128K max output (256K in thinking mode), 5M tokens per minute |
The page does not name the currency, but Artificial Analysis lists the same $0.06 and $0.36 figures in dollars. Built-in tools include web search, code interpreter, PDF parsing and image search. Artificial Analysis currently lists Alibaba Cloud as the only provider.
How It Compares
| Model | Artificial Analysis Intelligence Index | Access |
|---|---|---|
| Qwen4 Max | 43 | Paid API, see our Qwen4 Max guide |
| Qwen3.8 Flash Next | 28 | Open weights, much larger |
| Qwen4-35B-A3B | 25 | Open weights, Apache 2.0 |
| Open 40B-150B class median | 9 | – |
For a far larger open model aimed at coding agents, see Amazon Ergo, which needs data-centre hardware. Qwen4-35B-A3B sits at the other end: a model most enthusiasts can actually run.
Limits, Licence and Open Questions
- Licence: Apache 2.0 is permissive and allows commercial use. Read the repository’s LICENSE file before shipping a product.
- Text out only: no image or audio generation.
- Latency: 13.66 seconds to the first answer token at Xhigh effort is thinking time. Use
loworofffor chat. - Tool and tokenizer quirks: the model card warns that the Jinja chat template produces the same text as the reference tokenizer but token IDs can differ.
- Unknown: Qwen’s own benchmark numbers, official VRAM guidance, the official Ollama tags, FP8 file size and the exact weights upload day.
My Take
This is the most useful open Qwen release for people with a 32 to 64 GB machine. A 36 GB Q4 file with 21.9 GB resident, a 1M context and image and video input is a lot to get under Apache 2.0.
The independent number is more modest than the launch wording. A score of 25 beats the open-weights median by a wide margin, but it trails Qwen3.8 Flash Next at 28, so I would treat it as a fast, cheap workhorse rather than a frontier reasoner.
I would wait a few days for the Ollama page, the vLLM recipe and Qwen’s own benchmark table to settle before building on it. When those land I will update this post.
FAQ
Is Qwen4-35B-A3B free?
Yes. The weights are Apache 2.0 on Hugging Face. The hosted API is paid at $0.06 per 1M input and $0.36 per 1M output tokens.
Can I run it on a 32 GB Mac?
The GGUF page says the Q4_K_M quant (36.0 GB on disk, 21.9 GB resident) runs on a 32 GB Mac. Q6_K needs about 48 GB and Q8_0 about 64 GB.
Is it a thinking model?
It is hybrid. Choose xhigh, high, low or off with reasoning_effort; the default is high.
Does it support images and video?
Yes, both as input, with text output. Video is sampled at 2 fps by default.
How many parameters are active?
The model card says 3B active out of 35B main parameters, plus a 20B n-gram embedding table. The Hugging Face blog rounds active parameters to about 3.8B.
Is there an official Ollama tag?
The model card links ollama.com/library/qwen4, but I could not open it. The verified route is ollama run hf.co/ggml-org/Qwen4-35B-A3B-GGUF:Q4_K_M.
How does it compare with Qwen4 Max?
Artificial Analysis scores Qwen4 Max at 43 and this model at 25. Max is the stronger paid model; this one is the open, local option.
Sources
- Qwen/Qwen4-35B-A3B model card (Hugging Face)
- Welcome Qwen 4: Cutting-edge intelligence on-device (Hugging Face blog, 4 December 2026)
- ggml-org/Qwen4-35B-A3B-GGUF (file sizes and run commands)
- Artificial Analysis: Qwen4-35B-A3B (independent benchmarks and speed)
- Qwen Cloud model page (price and limits)
- Qwen4 collection on Hugging Face
Last updated: 4 December 2026. Benchmark scores are from Artificial Analysis; architecture, prices and commands are from the vendor pages linked above.



