Skip to content
audiotale.net
Sign in
NewsNews

Qwen4-35B-A3B: Alibaba's Apache 2.0 open model, 1M context and how to run it

Qwen4-35B-A3B has 3B active parameters, a 1M-token window and day-one support in Ollama, llama.cpp and vLLM; here is what it needs and what independent tests say.

audiotale.net team

· 8 min read

Written by AI from the sources linked below. How we use AI

On this page
  1. Key points
  2. What to do
  3. What happened
  4. Background
  5. The numbers
  6. What it means
  7. What we don't know yet
  8. What to watch next
  9. Sources

Alibaba's Qwen team released Qwen4-35B-A3B on 4 December 2026: an Apache 2.0 open-weight model with a native one-million-token context window that accepts text, images and video. It is a mixture-of-experts design that activates only about 3 billion of its parameters per token, which is why it can run on a single 24 GB graphics card or a Mac with 24 GB of unified memory once quantised. Hugging Face, Ollama, Unsloth and the main inference engines shipped support on day one, so you can try it today.

Key points

  • Qwen4-35B-A3B is released under the Apache 2.0 licence, with weights on Hugging Face, a 1,048,576-token native context and text, image and video input (text output).
  • The Qwen model card lists 35B parameters with 3B activated, plus 20B of n-gram embeddings and a 2B multi-token-prediction (MTP) module. Hugging Face's own post puts total size near 56B with about 3.8B active, and Artificial Analysis lists 57B total and 3B active.
  • Artificial Analysis gives the model an Intelligence Index score of 25, against a median of 9 for open-weight models of 40B to 150B parameters, but also calls it slow per task and very verbose.
  • Ollama lists a 36 to 37 GB download for the default build and 114 GB for the BF16 version. Unsloth says its 4-bit quantisation needs roughly 21 to 25 GB and its 3-bit quantisations run on 18 GB of RAM.
  • Support for Hugging Face Transformers, llama.cpp, vLLM, SGLang, MLX-based tools and Ollama was available at launch.

What to do

If you want to try it:

  1. Easiest on a laptop: install Ollama and run ollama run qwen4. The default tag is the 35B-A3B model at about 36 to 37 GB, so check your disk and memory first.
  2. With llama.cpp: Hugging Face's post gives llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q6_K (or llama cli for a terminal chat). GGUF files come in Q4_K_M, Q6_K and Q8_0. To enable MTP speculative decoding, add --spec-type draft-mtp --spec-draft-n-max 3; Hugging Face reports a 22% generation speed-up on an Apple Silicon M5 with the Q4 quant.
  3. On a small GPU: Unsloth's guide says to start with its 4-bit UD-IQ4_XS build on a 24 GB Mac or a 24 GB GPU such as the RTX 4090 or Radeon RX 7900 XTX, try 3-bit UD-IQ3_XXS with short context at 18 GB, and use 2-bit or 3-bit quants on a 16 GB card.
  4. For serving: the model card points to SGLang, vLLM and TokenSpeed recipes, and recommends the latest framework versions.
  5. Use the right sampling settings. Qwen recommends temperature=1.0, top_p=0.95, top_k=20 in thinking mode and temperature=0.7, top_p=0.80, top_k=20, presence_penalty=1.5 in non-thinking mode.
  6. Tokenizer: the reference tokenizer needs tiktoken and trust_remote_code=True. A Jinja chat template is included only for backward compatibility, and Qwen warns it can produce different token IDs.

What happened

Qwen published Qwen4-35B-A3B on Hugging Face on 4 December 2026 under the Apache 2.0 licence. The model card calls Qwen4-Max the flagship of the Qwen4 series and says the open Qwen4 series is "now on its way". It says the architecture was previewed in Qwen3.8-Flash-Next, and that the community had already built on that architecture for local deployments.

The model is natively multimodal: it takes text, images and video and produces text. The context window is 1,048,576 tokens, which Artificial Analysis rounds to roughly 984,000 tokens in its listing. By default it thinks at a "high" reasoning effort, and users can switch between four levels (xhigh, high, low, off). It also supports a preserve_thinking option that carries earlier reasoning across turns in multi-step agent tasks. Qwen notes that lower effort does not always shorten overall task time, because a hurried model may need more turns.

Hugging Face says it worked with the Qwen team on day-0 support in Transformers, llama.cpp, the Llama App, vLLM, SGLang, MLX tools, Inference Providers and Inference Endpoints. Ollama published seven tags within hours, and Unsloth released GGUF, MLX and NVFP4 builds with MTP included.

Background

Qwen's open models have moved from dense designs toward sparse ones. A mixture-of-experts model keeps many "expert" sub-networks but routes each token through only a few, so the memory needed to hold it is large while the compute per token is small. Qwen4-35B-A3B uses 256 experts and activates 8 routed experts plus 1 shared expert for each token, according to the model card.

The rest of the architecture departs from a plain transformer. The model card gives a ten-times-repeated block: three layers of Gated DeltaNet (a linear-attention layer that keeps a fixed-size memory) followed by one layer of "Qwen Sparse Attention", each paired with a mixture-of-experts layer. Hugging Face explains the sparse layer in plain terms: a small indexer groups tokens in fours, averages their keys, and for each query picks up to 512 groups, so the layer reads up to 2,048 individual tokens instead of the whole context. Linear attention and sparse lookup are what let a 1M-token window stay affordable; Qwen says they bring a "drastically reduced" cache footprint.

Two further choices are unusual. The model keeps four parallel residual streams per token and mixes them with learned gates, and its second layer holds a 20B-parameter n-gram embedding table. Each token reads only 16 rows of that table (eight for the last two tokens, eight for the last three), so the table adds capacity without adding much compute. Because the table is looked up rather than multiplied through, Unsloth stores it on an SSD: it says about 30% of a 4-bit quant is this "engram", and its software moves it into RAM when there is room. That is why 3-bit builds can run on 18 GB of RAM with 20 GB kept on disk, according to Unsloth.

The numbers

The headline numbers differ slightly between sources because they count parameters differently. Qwen's card counts 35B for the core language model, 20B for n-gram embeddings and 2B for the MTP module. Hugging Face says about 35B main parameters, about 3.8B active per token and 20.5B embedding parameters, roughly 56B in total. Artificial Analysis lists 57B total and 3B active. Treat "35B-A3B" as the name, and about 56 to 57B as the amount you have to store.

Unsloth memory guide by quantisation (upper end of the stated range)GB of RAM + VRAM
Unsloth memory guide by quantisation (upper end of the stated range) (GB of RAM + VRAM)
GB of RAM + VRAM
8-bit41
6-bit31
5-bit28
4-bit25
3-bit19
2-bit16
1-bit11

Source: Unsloth, Qwen4 35B-A3B how to run locally

Unsloth's ranges are 10 to 11 GB for 1-bit, 12 to 16 GB for 2-bit, 17 to 19 GB for 3-bit, 21 to 25 GB for 4-bit, 26 to 28 GB for 5-bit, 29 to 31 GB for 6-bit and 41 GB for 8-bit. For comparison, Ollama's listing shows 37 GB for its Q4_K_M tag and 114 GB for BF16.

On quality, Qwen's model card publishes a benchmark image rather than a table, so we cannot reproduce the scores here; they are Qwen's own numbers and several are cited from Artificial Analysis and Mercor. Unsloth's guide says the model scores 61.8 on DeepSWE v1.1 and 21.2 on Terminal-Bench 4.1; we treat those as figures reported by Unsloth, not independent measurements.

The independent figures we can quote come from Artificial Analysis, which tested the model at its highest reasoning setting (xhigh):

  • Intelligence Index: 25, first of 6 among open-weight models of 40B to 150B parameters (median 9).
  • Price on Alibaba Cloud: $0.06 per million input tokens and $0.36 per million output tokens, below the class medians of $0.30 and $0.76.
  • Average cost per Intelligence Index task: $0.55.
  • Output speed: 238 tokens per second, but 13.66 seconds to the first answer token.
  • Time per task: 14.3 minutes, against a median of 5.3 for comparable models.
  • Verbosity: 175 million output tokens to run the Index, against a median of 95.9 million.

Artificial Analysis summarises it as among the leading models in intelligence and well priced, but "notably slow per task and very verbose". That matches Qwen's own caution that effort settings interact with turn counts: high reasoning buys accuracy at the price of tokens and time.

What it means

For developers running models locally. A model that scores well above its size class and fits in 24 GB is a practical default for coding agents and long-document work. Ollama already offers ollama launch shortcuts for tools including Claude Code and OpenCode with this model, which lowers the effort of trying it as a local backend. The 1M-token window is attractive for repository-wide tasks, but remember that long contexts still cost memory and time, and agent quality on your own code may differ from published benchmarks.

For teams weighing open against closed models. The Register reported the same day that Chinese open-weight models are now about six months behind the leading closed models, citing Epoch AI's October estimate of six to seven months and researcher Sebastian Raschka's finding of a three-month gap for Kimi K3.1 Pro against Anthropic's Fable 5.1. Qwen4-35B-A3B is a small model rather than a frontier one, but it shows how much capability is moving into sizes that ordinary hardware can host.

For cost. At $0.06 and $0.36 per million tokens on Alibaba Cloud, the hosted price is low, but Artificial Analysis found the model uses many tokens, so cost per finished task matters more than the per-token price. The $0.55 per Index task is the number to compare.

Licence. Apache 2.0 allows commercial use and modification, which makes this easier to adopt than models with custom licences. As always, read the licence file in the repository you download.

What we don't know yet

  • Whether independent evaluators will reproduce Qwen's benchmark claims. Most scores in the model card come from Qwen's own runs or from third-party leaderboards that Qwen cites, and the Hugging Face post says only that it picked "community favorites".
  • How the model behaves at the long end of its context window in real work. We found no independent long-context test at the time of writing.
  • Whether larger Qwen4 open models are coming. The model card says the "Qwen4 open model series is now on its way", but gives no list of sizes or dates.
  • How well MTP speed-ups hold on other hardware. Hugging Face's 22% figure is for one Apple Silicon M5 with a Q4 quant.
  • Why the model is slow per task. Artificial Analysis reports the behaviour but we have not seen an explanation, such as how much comes from thinking tokens versus provider throughput.

What to watch next

Watch for independent evaluations on Artificial Analysis and Epoch AI, for quantisation quality reports as the community tests the 2-bit and 3-bit builds, and for mlx-lm support, which Hugging Face says is "on its way" to the official repository. Also watch for the next Qwen4 open releases, and for how closed-model makers respond on price.

If you are new to running models locally, our article on Olmicro, Ai2's small open hybrid models is a useful smaller starting point, and Hugging Face's fall 2026 report gives background on how far behind open models are.

Sources

Written by

audiotale.net team

The official account of the people who run audiotale.net: announcements, conversation starters and the newsroom's drafts. Posts written with AI say so. Every other account here is a real person.