Alibaba’s Qwen team released Qwen4-35B-A3B on 4 December 2026, the first open-weight model of its new Qwen 4 family — and unlike most model launches this year, you can download it and run it on your own machine today. It carries a 1 million-token context window, reads text, images and video, and only about 3.8 billion of its parameters are active for each token. This guide shows you how to run it locally, which route fits your hardware, and the three checks to do before you start a download that runs to tens of gigabytes.
What is Qwen4-35B-A3B?
Qwen4-35B-A3B is a natively multimodal mixture-of-experts (MoE) model. The headline number is 35 billion main parameters, but only around 3.8 billion of them are active per token — the model routes each token through 8 of its 256 experts plus one shared expert. On top of that sit about 20.5 billion parameters of per-layer n-gram embeddings and a 2 billion-parameter multi-token prediction (MTP) module, taking the total to roughly 56 billion parameters. It is licensed under Apache-2.0, which means you can use it commercially, and it shipped with day-0 support in Transformers, llama.cpp, vLLM, SGLang and MLX, so there is no waiting for community ports.
The architecture is the interesting part. Its 40 layers form ten blocks of three Gated DeltaNet layers and one Qwen Sparse Attention layer. The DeltaNet layers compress context into a fixed-size state instead of storing every past token; the sparse layer then looks back at only the most relevant tokens — up to 2,048 of them per new token — anywhere in the context. That combination is how a model with a 1 million-token window keeps its memory footprint manageable. Hugging Face’s launch post describes it as comparable to the much larger Qwen3.8-Flash-Next on several benchmarks, and better on some. Qwen says it outperforms the dense Qwen3.8-27B and matches Qwen3.8-Flash-Next at about a third of the size. Both of those are the vendor’s own claims: the model card itself says benchmark results are still being finalised, and no independent rerun had appeared by the time this guide was written, so treat the rankings as a promise, not a verdict.
It is also worth knowing what this model is not. It is the open sibling of the Qwen4-Max flagship that Alibaba launched in November — our Qwen4-Max preview covers that API model, which shares the architecture but is not downloadable. And the smaller 27B and 4B Qwen4 variants that appeared in GitHub pull requests on 30 November have not been released; do not go looking for them yet.
| Spec | Qwen4-35B-A3B |
|---|---|
| Main parameters | ~35B (~3.8B active per token) |
| N-gram embeddings | ~20.5B (layer 2, lazy-loaded in llama.cpp) |
| MTP module | ~2B (drafts 3 tokens per step) |
| Total parameters | ~56B |
| Context window | 1,048,576 tokens (1M) |
| Inputs | Text, image, video |
| Output | Text |
| Licence | Apache-2.0 |
| Day-0 support | Transformers, llama.cpp, vLLM, SGLang, MLX |
Before you download: the three-question hardware test
The single most common mistake with this model is reading “3.8B active” and assuming a small download. The active slice is small; the total download is not. Answer these three questions before you fetch anything.
1. Do you have the disk space? The full-precision BF16 checkpoint is 72.7 GB for the model plus a 41 GB n-gram table — about 114 GB in total, according to vLLM’s day-0 blog post. The FP8 checkpoint is smaller: a 39.7 GB model plus a 20.5 GB table, roughly 60 GB. The llama.cpp GGUF quants are smaller still, but check the file list on the official ggml-org GGUF repository before you start — the sizes are listed there, and the 20.5B-parameter n-gram table is part of the package either way.
2. Do you have the memory for the route you picked? This is where the design helps you. In llama.cpp, the n-gram table is lazy-loaded from disk by default, so it is not resident in RAM. In vLLM, the same table is kept in pinned host memory rather than on the GPU, and the 1M-token context needs only 8 GiB of NVFP4 KV cache because only the ten sparse-attention layers keep a KV cache at all. A full BF16 attention cache for the same context would need 80 GiB. So the question is not “can my GPU hold 56B parameters” — it is “can it hold the quant I picked, plus a few gigabytes of cache”.
3. What is your first job? If the answer is “chat with a smart model on my own machine”, the llama.cpp route below is the fastest way there. If it is “serve it to my team or an app”, skip straight to vLLM. If it is “fine-tune or experiment in Python”, use Transformers. Picking the route first saves you from downloading the wrong checkpoint format.
Pick your route
| Route | Best for | You need |
|---|---|---|
| llama.cpp | One-command local chat on PC or Mac | A recent llama.cpp build with qwen4_moe support |
| Transformers | Python experiments, images and video | A GPU with enough VRAM, or a Mac with unified memory |
| vLLM | Serving it as an API server | A datacentre or prosumer GPU (B300 in vLLM’s test) |
| MLX / oMLX | Apple Silicon | A Mac with plenty of unified memory |
Run it with llama.cpp (the one-command path)
This is the quickest route for most people, and it is the one to try first.
Step 1 — Update llama.cpp. You need a build with qwen4_moe support (llama.cpp pull request 33626). If your build is older than the 4 December release, update it first; an older build will not recognise the model.
Step 2 — Serve it. The official ggml-org GGUF repository ships Q4_K_M, Q6_K and Q8_0 quants. The default command pulls the recommended quant:
llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF
Prefer the 6-bit quant explicitly with llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q6_K, or the 4-bit one with :Q4_K_M if your VRAM is tight. For a plain terminal chat instead of a server, use llama cli -hf ggml-org/Qwen4-35B-A3B-GGUF:Q6_K.
Step 3 — Turn on the speed trick. The model ships with a multi-token prediction drafter. In llama.cpp, enable it with --spec-type draft-mtp --spec-draft-n-max 3. Hugging Face reports this made generation 22% faster on an Apple Silicon M5 running the 4-bit quant.
Step 4 — Set how hard it thinks. Qwen4 thinks by default. You can set the reasoning effort to xhigh, high, low or off; high is the default. For quick factual questions, off is fine. For multi-step work, keep it on high — the model card warns that lower effort does not always mean faster overall, because shallow thinking can lead to failed steps and retries.
Run it with Transformers (Python)
If you work in Python, Hugging Face’s launch post gives the fastest start — an any-to-any pipeline that handles text, images and video:
from transformers import pipeline
pipe = pipeline("image-text-to-text", model="Qwen/Qwen4-35B-A3B", processor="huggingface/Qwen4-35B-A3B-processor", device_map="auto")
messages = [{"role": "user", "content": "Who are you?"}]
outputs = pipe(messages, max_new_tokens=2048, return_full_text=False)
print(outputs[0]["generated_text"])
For finer control, load the model with AutoModelForMultimodalLM and AutoProcessor, and pass reasoning_effort=”off” (or “xhigh”, “high” or “low”) when you build the inputs. The model card’s recommended sampling settings are temperature 1.0, top_p 0.95 and top_k 20 in thinking mode, or temperature 0.7, top_p 0.80 and top_k 20 with a presence penalty of 1.5 when thinking is off. For long agentic jobs, the card suggests allowing up to 262,144 tokens of reasoning output and 131,072 tokens for the final response inside the 1M context.
Run it with vLLM (serve it as an API)
For a server, vLLM’s day-0 blog post ships a ready Docker image. On NVIDIA hardware:
docker run --gpus all --ipc=host -p 8000:8000 \
-v ~/.cache/huggingface:/root/.cache/huggingface \
-e VLLM_USE_RUST_FRONTEND=1 \
vllm/vllm-openai:qwen4 Qwen/Qwen4-35B-A3B-FP8 \
--trust-remote-code --enable-prefix-caching --max-model-len auto --disable-flashinfer-autotune \
--kv-cache-dtype nvfp4 --attention-config.indexer_kv_dtype fp8 \
--enable-auto-tool-choice --tool-call-parser qwen4 --reasoning-parser qwen4 \
--speculative-config '{"method":"mtp","num_speculative_tokens":3,"index_share_for_mtp_iteration":true}'
vLLM reports 514 tokens per second for a single request on one B300 with the FP8 checkpoint, using its recommended sampling settings. AMD MI350X and MI355X cards are supported too, serving the BF16 checkpoint with MXFP4 quantisation at load time. Once it is running, it speaks the OpenAI-compatible API on port 8000, so any tool that talks to an OpenAI endpoint can point at it.
Run it on a Mac with MLX
Apple Silicon users get oMLX, which supports image input, MTP and offloading the n-gram table to SSD. The 4-bit text build runs under mlx-lm:
mlx_lm.generate --model mlx-community/Qwen4-35B-A3B-4bit-text \
--prompt "Explain sparse attention like I am 5" \
--max-tokens 4096
Add --chat-template-config '{"reasoning_effort": "low"}' to change how hard it thinks. This is the route to pick if your machine is a Mac with generous unified memory and no discrete GPU.
First three things to try
Do not judge the model on a single hello. Run these three checks in order; each one tests a different capability, and each has a clear pass mark.
1. A question with a checkable answer, thinking off. Ask “What is 17 * 23?” with reasoning_effort set to off. The pass mark is simple: the answer is 391, with no rambling. This is the same demo Hugging Face’s launch post uses, and it tells you the plumbing works before you spend tokens on thinking.
2. A picture question. Send it a photo and ask something specific about it — Hugging Face’s launch post demos this with a photo of medicine pills and the question of whether the drugs interact. Pass mark: the answer refers to what is actually in your image, not a generic description of pills.
3. A long document. Drop in a long document — a report, a codebase, a contract — and ask a question that needs information from two distant parts of it. This is the test the 1M context exists for. Pass mark: the answer cites both parts correctly. If it only finds one, the long context is not doing its job for you yet.
What the 1M context is actually good for
A million tokens is roughly a whole codebase, a year of meeting notes, or several long reports in one prompt. That is the real use case: long-horizon work where the model needs to hold the whole job in mind — drafting from a full project, or reviewing a long document against its own earlier sections. It is not a reason to paste a million tokens into every prompt; long prompts are slower, and the model’s sparse attention only reads a selected slice of the context for each token. Use the long window when the job genuinely needs it, and keep short jobs short.
Our take
Qwen4-35B-A3B is the most interesting open release of the month for one reason: it is the first time the Qwen 4 architecture — the same design behind the Qwen4-Max flagship — is available to run privately under an open licence, on the day it launched, in every major tool. The clever bit is not the 35B headline but the engineering around it: a lazy-loaded n-gram table, a KV cache that stays at 8 GiB for a million tokens, and a built-in drafting layer that makes a small active slice feel fast.
The honest caveats matter, though. The benchmark claims are Qwen’s own and the model card says they are still being finalised, so wait for independent reruns before choosing this over the models you already run. The download is large despite the small active slice — check the file sizes before you start, and run the three-question hardware test above first. And if the download is too heavy for your machine, start smaller instead: our 3 small open AI models worth trying this week covers models that fit on far lighter hardware, and the Kimi K3.1 Pro open-weights guide is the closest comparison if you want another open-weights model to measure this one against. For everyone else with a decent GPU or a well-specced Mac, this is a genuine try-it-today release — the first open Qwen 4 model, not a demo.
FAQ
Is Qwen4-35B-A3B free to use?
Yes. It is released under the Apache-2.0 licence, which allows commercial use, and the weights are downloadable from Hugging Face. You still pay for the hardware and electricity to run it, and a hosted API version under the name qwen4-35b-a3b is coming soon to Qwen Cloud if you would rather pay per token than self-host.
How much disk space do I need?
Budget about 60 GB for the FP8 checkpoint (39.7 GB model plus a 20.5 GB n-gram table) or about 114 GB for full BF16 (72.7 GB plus 41 GB), according to vLLM. The llama.cpp GGUF quants are smaller; check the file list on the official ggml-org GGUF repository for exact sizes before downloading.
Can I run it on a laptop?
It depends on the laptop. A Mac with plenty of unified memory can run the 4-bit build through oMLX, and Hugging Face reports the MTP drafter made it 22% faster on an Apple M5. A Windows or Linux laptop with a discrete GPU can run the llama.cpp Q4_K_M quant if it has enough VRAM. A thin ultrabook with no GPU is not the right machine for a 35B model — start with a smaller open model instead.
Does it need a GPU?
Not strictly — llama.cpp can run it on CPU, and Apple Silicon runs it through MLX — but a GPU makes it dramatically faster. For serving, vLLM’s 514 tokens per second figure was measured on a single B300 datacentre GPU with the FP8 checkpoint. On a consumer GPU, expect far less, and keep the context short.
Is there a smaller Qwen4 model I can run instead?
Not yet. The 27B and 4B Qwen4 variants seen in GitHub pull requests on 30 November have not been released. Qwen4-35B-A3B is the only open Qwen 4 model available as of 4 December 2026, and Qwen says more open models in the family are coming.
Sources and methodology
Sources (all links open in a new tab):
- Hugging Face, “Welcome Qwen 4: Cutting-edge intelligence on-device”, 4 December 2026 — https://huggingface.co/blog/qwen4
- vLLM, “Qwen4-35B-A3B on vLLM: Day-0 Support”, 4 December 2026 — https://vllm.ai/blog/2026-12-04-qwen4-35b-a3b
- Unsloth, “Qwen4-35B-A3B-GGUF” model card — https://huggingface.co/unsloth/Qwen4-35B-A3B-GGUF
- ggml-org, “Qwen4-35B-A3B-GGUF” repository — https://huggingface.co/ggml-org/Qwen4-35B-A3B-GGUF
- AI Parabellum, “Alibaba Releases Qwen4-35B-A3B, Its First Open Qwen 4 Model”, 4 December 2026 — https://aiparabellum.com/alibaba-qwen4-35b-a3b-open-model-1m-context/
Method: every factual claim in this guide was checked on 4 December 2026 against the Hugging Face launch post, the vLLM day-0 post and the Unsloth and ggml-org model cards, read in full. Benchmark figures are the vendor’s own and are labelled as such; the model card says they are still being finalised. This guide is desk-researched: we did not run the model locally, and the first-run tests are presented as checks for the reader to run, not as results we obtained.
Arva Rangwala covers AI news, AI tools, guides and prompts for OpenAIMaster — what is new, what is worth using, and how to put AI to work.


