Qwen4-35B-A3B is an open-weight model from Alibaba’s Qwen team whose files went onto Hugging Face on December 3, 2026, under the Apache-2.0 licence. It has 35 billion main parameters with about 3 billion active on each token, accepts images and video, and supports a native context of 1,048,576 tokens. The same model is hosted on QwenCloud as qwen4-35b-a3b at $0.06 per million input tokens and $0.36 per million output tokens.
The model card says which tools can serve it and which file formats exist, but it does not state a memory requirement or a speed. This article gives the figures the card and its linked official pages do state, and shows how to estimate the rest. Estimates are labelled as estimates.
- 01Apache-2.0, uploaded December 3Hugging Face’s commit history shows the first model commit on December 3 and the licence file on December 4.
- 02Small active size, larger fileAbout 3 billion parameters work per token, but the repository stores roughly 56.8 billion parameters, about 114 GB in BF16.
- 03Plenty of ways to run itThe card names SGLang, vLLM, TokenSpeed, llama.cpp, Ollama, Unsloth, mlx-vlm and LiteRT-LM. Quantised builds are linked from the model tree.
- 04The hosted price is very lowQwenCloud lists $0.06 input and $0.36 output per million tokens, so cost alone rarely justifies self-hosting.
- 05Run locally for control, not savingsPrivacy, offline use, fine-tuning and a fixed workload are the strong reasons to download it.
01 — The modelWhat Qwen4-35B-A3B is
Qwen4-35B-A3B is a mixture-of-experts model. A router picks eight of 256 experts for each token, plus one shared expert, so only a small part of the network runs at a time. The model card gives the language model as 35B with 3B activated, plus a 20B n-gram embedding and a 2B multi-token-prediction module. Hugging Face’s own launch post, written with the Qwen team, rounds this differently: about 35B main parameters, about 3.8B active per token and about 20.5B in per-layer n-gram embeddings, roughly 56B in total. The two pages differ on the active count, so call it three to four billion.
It accepts text, images and video and outputs text. Qwen describes the family as aimed at long-running agentic work and coding, including front-end and 3D tasks. The card’s sampling advice is specific: temperature 1.0 and top-p 0.95 for thinking mode, and lower temperature with a presence penalty for non-thinking mode.
The date matters for anyone citing it. Qwen’s own web pages carry template dates, so we use Hugging Face’s commit history. The repository was created at 02:45 UTC on December 3, the first model commit followed at 15:29 UTC that day, and the licence file was added at 01:54 UTC on December 4. QwenCloud’s model changelog lists the hosted model on December 4.
02 — Attention designThe hybrid attention design in plain words
Long inputs are expensive because a standard transformer keeps a growing memory of every earlier token, called the key-value cache, and checks against it for each new one. Qwen4 mixes two cheaper mechanisms to avoid paying that full cost.
The first, Gated DeltaNet, is a form of linear attention. It carries a fixed-size running summary instead of a cache that grows with the input. The second, Qwen Sparse Attention, lets a token look back at only a selected handful of earlier positions. The card gives its budget as 512 blocks or 2,048 tokens. The model’s 40 layers repeat one pattern ten times: three Gated DeltaNet layers, then one sparse-attention layer, each followed by an expert layer.
The practical effect, in Qwen’s words, is faster inference and a much smaller cache footprint at long lengths, which is what lets a one-million-token window exist at this size. The card does not give a cache size in gigabytes, and it does not say how well the model uses the full million tokens. Test a long document of your own before relying on it. The card also says the n-gram embeddings improve quality “without extra compute or accelerator memory overhead”, a claim about the architecture. Hugging Face’s post says one Apple Silicon runtime can offload those embeddings to SSD.
Three of every four attention layers keep a fixed-size summary, one in four looks back at a limited set of positions, and that is why the cache stays small as the input grows.
03 — Run formatsWhat the model card says about running it
The repository holds the BF16 weights in 33 files, in Hugging Face Transformers format. The card says they are compatible with Transformers, vLLM, SGLang and TokenSpeed, and recommends those dedicated engines for production or high throughput, on their latest versions. Cookbooks for SGLang and vLLM are linked from the card.
For local use the card points to compatible formats in the model tree and names llama.cpp, Ollama, Unsloth, mlx-vlm and LiteRT-LM as engines that support the architecture. Hugging Face’s launch post adds specifics: BF16, FP8, oMLX and GGUF checkpoints, with GGUF builds at 4-bit (Q4_K_M), 6-bit (Q6_K) and 8-bit (Q8_0). Neither page publishes the quantised file sizes in gigabytes.
Two setup details can trip a first run. The reference tokenizer needs trust_remote_code set to true and the tiktoken package. And the Jinja chat template shipped for older tools produces the same text but may produce different token IDs, so the card advises the reference implementation. For video, the default preprocessing is conservative, and the card suggests a larger setting for hour-long clips.
| Route | What the pages list | Best for |
|---|---|---|
| Transformers, BF16 | Official repository, 33 weight files | Fine-tuning and research |
| SGLang, vLLM, TokenSpeed | Cookbooks linked on the card | Production serving on GPUs |
| llama.cpp, Ollama, Unsloth | GGUF builds at 4, 6 and 8 bits | Single machines |
| mlx-vlm, oMLX, mlx-lm | Apple Silicon support, SSD offload of embeddings in oMLX | Macs |
| LiteRT-LM | Listed in the card | Edge and mobile targets |
04 — MemoryMemory: an estimate, not a spec
The card gives no memory requirement, so this section is arithmetic, not vendor data. Weight memory is roughly the number of stored parameters times the bits per parameter, divided by eight. Hugging Face’s API reports about 56.8 billion stored parameters, all BF16, which gives about 114 GB, and that matches the repository’s 33 shards. An 8-bit build would be roughly half of that and a 4-bit build roughly a quarter.
Real files run a little larger because some tensors stay at higher precision, and you also need room for the key-value cache, the vision encoder’s work and the runtime. Treat the 4-bit row as a floor, not a recommendation.
One uncertainty cuts the other way. About 20 billion of those parameters are n-gram embeddings, which Hugging Face’s post says one runtime can offload to SSD. If your engine does that, the memory that must stay fast is closer to the 35B portion, roughly 17.5 GB at 4-bit by the same arithmetic. The card does not say which engines do this, so check yours.
| Precision | Approximate weights | Note |
|---|---|---|
| BF16 (16-bit) | About 114 GB | Matches the repository’s file size |
| 8-bit | About 57 GB | Estimate |
| 4-bit | About 28 GB | Estimate; real files run larger |
| 4-bit, n-gram embeddings offloaded | About 18 GB in fast memory | Estimate; engine-dependent |
05 — SpeedSpeed: what is stated and how to estimate the rest
The pages give one speed figure. Hugging Face’s post says that turning on multi-token-prediction speculative decoding in llama.cpp, with three draft tokens, raised generation speed by 22 percent on an Apple Silicon M5 with the 4-bit build. That is a relative gain on one machine. It is not a tokens-per-second figure.
To estimate your own ceiling, remember that generating each token means reading the active weights from memory. At 4-bit, 3 billion active parameters is about 1.5 GB, so a machine with 400 GB per second of memory bandwidth tops out near 270 tokens per second in theory. That is a ceiling, not a forecast. Cache reads, attention, the vision encoder and software overhead all lower it, and a reasoning model spends many of those tokens on thinking before the answer.
The card also warns that a lower reasoning effort does not always finish the task sooner. Faster replies can mean more failures and retries. Measure time to an accepted result, not tokens per second. The card’s effort levels are xhigh, high (the default), low and off.
Ceiling in tokens per second is roughly memory bandwidth divided by active-weight size. For 3B active parameters at 4-bit (about 1.5 GB), 400 GB/s gives about 270. Real speeds will be lower.
06 — HostedThe hosted option and its price
QwenCloud serves the model as qwen4-35b-a3b. Its model page, in the Singapore region on December 4, lists $0.06 per million input tokens and $0.36 per million output tokens. Implicit cache hits and explicit cache reads cost $0.003 per million. Creating an explicit cache costs $0.075 per million for five minutes or $0.12 per million for an hour. The page lists a 1M context, up to 991K input, up to 128K output, and a 256K reasoning limit in thinking mode.
Those prices make the arithmetic easy. A job with 100 million input tokens and 20 million output tokens costs $6.00 plus $7.20, or $13.20, uncached. Prices and regions may differ elsewhere on QwenCloud, so check the page for your deployment region. The hosted model also lists web search as a supported capability, which the open files do not include. For the larger flagship in the same family, see our Qwen4 Max price and access article.
| Item | Price |
|---|---|
| Input | $0.06 |
| Output | $0.36 |
| Input, implicit cache hit | $0.003 |
| Explicit cache creation, 5 minutes | $0.075 |
| Explicit cache creation, 1 hour | $0.12 |
| Explicit cache read | $0.003 |
07 — ScoresWhat Qwen reports for quality
The model card includes a chart of Qwen’s results against Qwen3.8-Flash-Next, Qwen3.8-27B and Inkling2 Mini. Qwen runs some of these itself, and says it cites Terminal Bench 4.1, FrontierCode-AA 2.0 and AutomationBench-AA from Artificial Analysis. All are the vendor’s presentation. A selection is below.
Against the smaller Inkling2 Mini the model leads on every row shown except a tie on GPQA. Against its own predecessor preview, Qwen3.8-Flash-Next, it is ahead on some rows and behind on others: Terminal Bench 4.1, FrontierCode-AA 2.0 and GPQA all favour the earlier model. A benchmark table says little about your workload, which is why a short trial on your own prompts beats any row here. Our earlier coverage of the Inkling 2 Mini local-or-API decision used the same approach.
| Benchmark | Qwen4-35B-A3B | Qwen3.8-Flash-Next | Inkling2 Mini |
|---|---|---|---|
| DeepSWE v1.1 | 61.8 | 58.7 | 48.2 |
| Terminal Bench 4.1 | 21.2 | 24.2 | 5.6 |
| FrontierCode-AA 2.0 | 16.1 | 27.1 | 15.1 |
| NL2Repo | 51.7 | 48.1 | 41.8 |
| AutomationBench-AA | 57.9 | 55.9 | 41.8 |
| GPQA | 86.9 | 91.7 | 86.9 |
| VideoIndex | 52.9 | 51.4 | 44.0 |
08 — Who runs itLocal or API: who should run what
At $0.06 and $0.36, the hosted price is hard to beat with hardware you buy for this one model, so the case for running locally rests on other grounds. The strongest are data that must not leave your machine, work that must run offline, fine-tuning on private material, and a steady, high volume that you can schedule. Apache-2.0 means you may use and modify the files commercially, subject to its standard terms.
The case for the API is a team that wants production features without engines to maintain, bursty or low volume, or no spare machine. It also suits a first trial: send fifty of your prompts to the hosted model before you download 114 GB. The one failure case to avoid is judging the local quantised build by the hosted model’s results. Lower-bit builds can behave differently, so test the build you plan to run.
Our guide to local coding on an RTX 4090 covers the hardware side of the same decision.
Try it hosted, then decide on a download
Send a handful of real prompts to qwen4-35b-a3b first, including one long document and one image. If the results hold and your reason for running locally is privacy, offline use or fine-tuning, pick one quantised build and measure speed and memory on the machine you have. For help weighing hosted against self-run models, our AI transformation team can scope a pilot.