Sulat.com / Writing on AIFriday, December 4, 2026
Enter →
Artificial Intelligence/4 December 2026

Alibaba’s Qwen4-35B-A3B is open weights under Apache 2.0

Qwen4-35B-A3B has about 56 billion parameters but uses roughly 3 billion per token. I ran a 2-bit copy on four CPU cores and compared it with five hosted models.

Glossy blue 3D Qwen logo beside memory chips and a closed laptop on a pale studio surface
Illustration: Sulat, featuring the Qwen logo

At a glance

  • Qwen4-35B-A3B is open weights under Apache 2.0, with 35 billion parameters and 3 billion active, plus a 20 billion parameter n-gram table, and a 1 million token context.
  • On Qwen's own chart it's ahead of Qwen3.8-Flash-Next on six of twelve benchmarks and behind it on six.
  • I ran a 2-bit copy on four CPU cores: it found a needle in 15,000 tokens in 404 seconds, read a chart correctly and called tools correctly.
  • The same copy scored 9 of 10 on arithmetic and 14 of 23 on a coding task where the hosted models scored 10 and 22 to 23.
  • Generation ran at about 7.7 tokens a second, and I haven't tested the full-precision weights or a GPU.
  • Qwen Cloud hasn't published a price or date for its hosted version.

Alibaba’s Qwen team has released Qwen4-35B-A3B as open weights under Apache 2.0. Qwen says it’s a native multimodal mixture-of-experts model with 35 billion parameters, 3 billion of them active, and a native 1 million token context. The model card adds a 20 billion parameter n-gram embedding table, and Hugging Face counts about 56 billion parameters in all.

There’s no hosted version to try yet, so I ran a 2-bit GGUF copy on a four-core CPU and put it next to five hosted models. It read a 15,000 token pile of logs and found the right line, read a chart from an image, and called tools correctly. It also wrote broken code and a weak pelican, and it scored 9 out of 10 on the arithmetic set where all five hosted models scored 10.

Disclosure: I’m an OpenAI, Firecrawl and Devin ambassador.

What Qwen announced

Qwen posted the release on X on 4 December 2026 with links to Hugging Face and ModelScope. Its three claims are that the model beats the dense Qwen3.8-27B, matches Qwen3.8-Flash-Next at about a third of the size, and has stronger agent skills for long-document analysis, enterprise knowledge bases and edge deployment. It says the model runs on a single GPU when quantised.

The model card says the weights work in Transformers, vLLM, SGLang and TokenSpeed, and that Qwen Cloud will serve it as qwen4-35b-a3b with built-in tools. Qwen Cloud hasn’t published a price or a date for the API. Hugging Face’s launch post lists day-one support in llama.cpp, Ollama, Unsloth, MLX and LiteRT-LM as well.

What’s inside

The text decoder is 40 layers made of one four-layer block repeated ten times. Three of the four layers use Gated DeltaNet, a linear-attention design that keeps a fixed-size memory as it reads. The fourth uses Qwen Sparse Attention, where a small indexer picks up to 2,048 earlier tokens for each query to look at. Every one of the four layers is followed by a mixture-of-experts layer with 256 experts, of which 8 routed experts and 1 shared expert run per token.

Diagram: three fixed-size memory layers then one look-back layer, repeated 10 times for 40 layers
Each block of four layers repeats ten times. Illustration: Sulat

Two other design choices matter for running it. The second layer holds a per-layer embedding table of 20.5 billion parameters, but each token only reads 16 rows of it, so it adds file size without adding much compute. And each token carries four residual streams that learned gates mix before every block. The fixed-size memory layers are why Qwen can offer a 1,048,576 token context without the cache growing the way a full-attention model’s would.

Diagram: 35B main model plus 20.5B lookup table is 56B total, but about 3B used per token
Most of the extra size is a lookup table that each token reads 16 rows of. Illustration: Sulat

Qwen4 is the open version of the architecture behind Qwen4-Max, the flagship it launched last month (our report). The card also lists a multi-token prediction layer for speculative decoding, and four reasoning levels set with reasoning_effort: xhigh, high (the default), low and off. Thinking from earlier turns is kept by default. The tokenizer needs trust_remote_code=True and the tiktoken package.

What it costs to hold

The BF16 GGUF from ggml-org is 111.1 GB. The 4-bit Q4_K_M is 36.0 GB, the 6-bit is 51.0 GB and the 8-bit is 59.4 GB, and Hugging Face says MTP decoding sped up the 4-bit file by 22 percent on an Apple M5. A 36 GB file doesn’t fit the memory of a single 24 GB or 32 GB graphics card, so “a single GPU when quantised” means a large card or offloading part of the model to system memory. I had no GPU, so I couldn’t check the claim.

Qwen’s own numbers

Qwen’s chart compares the model with Qwen3.8-Flash-Next (125 billion parameters with 6 billion active, plus 51 billion of n-gram embeddings, per its model card), the dense Qwen3.8-27B and Thinking Machines’ Inkling2 Mini. Here are all twelve benchmarks as Qwen reports them.

BenchmarkQwen4-35B-A3BQwen3.8-Flash-NextQwen3.8-27BInkling2 Mini
DeepSWE v1.161.858.742.248.2
Terminal Bench 4.121.224.25.65.6
FrontierCode-AA 2.016.127.114.915.1
NL2Repo51.748.142.341.8
Work36042.943.737.130.4
APEX Agents v1.159.061.047.550.9
AA-Briefcase v1.1 (Elo)1486156713911263
AutomationBench-AA57.955.948.241.8
HealthBench Professional47.434.829.845.7
GPQA86.991.789.286.9
Chartography27.824.627.822.1
VideoIndex52.951.451.944.0
Scores from Qwen’s chart. Terminal Bench 4.1, FrontierCode-AA 2.0, AA-Briefcase and AutomationBench-AA are cited from Artificial Analysis, APEX Agents from Mercor’s leaderboard, and Work360 is Qwen’s own benchmark.

Read straight off the chart, Qwen4-35B-A3B is ahead of Flash-Next on six of twelve and behind it on the other six, so “matches” is accurate. Flash-Next is well in front on FrontierCode and GPQA. Against the dense 27B, the new model is ahead on ten, level on Chartography and behind on GPQA. Against Inkling2 Mini it’s ahead on eleven and level on GPQA. The biggest swing is HealthBench Professional, where it scores 47.4 against 34.8 for Flash-Next. My earlier reports on Inkling 2 Mini are here.

How I ran it

Qwen4 isn’t on OpenRouter, Synthetic, Morph or OpenCode yet, and the machine I test on has no GPU. So I ran Unsloth’s 2-bit UD-IQ2_XXS GGUF in a llama.cpp server built from the 3 December source. The weights are in two files, 11.9 GB for the model and 11.5 GB for the n-gram table, and the server held 13.3 GB resident with a 16,384 token context. The machine has four vCPUs of an Intel Xeon at 2.3 GHz under KVM, 15 GB of RAM, a 252 GB disk and Ubuntu 24.04.5, and everything ran on the CPU.

That is a heavily compressed copy, and every Qwen4 result below is for that copy, not for the BF16 or FP8 weights Qwen released. I didn’t run a higher-precision version, so I can’t say how much of any miss comes from the quantisation. Qwen4 ran with thinking off and Qwen’s recommended non-thinking settings (temperature 0.7, top-p 0.8, top-k 20, presence penalty 1.5) for every test except the reasoning-effort runs.

The five hosted models are Kimi K3.1 Pro on Synthetic, DeepSeek V4.1 Flash on Morph, Claude Haiku 5.5, GPT-6.2 Sol and Gemini 4 Neon, all called straight through their APIs at default settings, with Neon on low thinking. DeepSeek’s coding run went through Synthetic because Morph kept answering that it was overloaded. I gave the hosted models larger output caps than Qwen4 on the SVG tasks, because DeepSeek, Kimi and Haiku need many thinking tokens. These are single runs of small tests, so treat them as smoke tests.

Two drawings

Both prompts asked for only the SVG code. This is the pelican prompt, word for word:

Code
Generate an SVG of a pelican riding a bicycle. Output only the SVG code.
Six SVG pelicans riding bicycles from Qwen4, Kimi, DeepSeek, Haiku, Sol and Neon
The same pelican prompt, six models. Qwen4 is the 2-bit copy. Illustration: Sulat

Qwen4 took 341 seconds and 2,647 tokens. Its bird has a cream body, a red cap and a short orange sliver for a bill, so it reads as a goose. Kimi, DeepSeek, Sol and Neon all drew a throat pouch. The hosted models finished in 11 to 81 seconds.

The second prompt gave it a local subject:

Code
Generate an SVG of the Wellington cable car climbing its hill at dusk, with the harbour behind it. Output only the SVG code.
SVG cable car scenes from Kimi, DeepSeek, Haiku, Sol and Neon, plus Qwen4 cut off at its token cap
The same cable car prompt. Qwen4 hit the 5,000-token cap and is shown as it stood. Illustration: Sulat

Qwen4 ran into my 5,000 token cap after 644 seconds, with the file cut off in the middle of scattering stars. I closed the open tags so it would render, and that’s the scene in the top left of the sheet. It shows a dark green hill, a red car on a track with lamp posts, a dusk sky and a distant skyline, but no harbour water. It’s a coherent scene that didn’t get finished. Sol finished in 55 seconds and Haiku in 23.

Numbers, code and tools

Ten arithmetic and counting questions with exact answers, each sent with this line added:

Code
Think as needed, then put your final answer alone on the last line as `ANSWER: <value>`.

The questions were a five-digit multiplication, 17 to the fifth, the sum of the integers to 1,000 divisible by 7 or 13, primes below 200, days between 14 March 2024 and 9 November 2026, the last three digits of 2 to the 40th, the letter count in a sentence, a greatest common divisor, a hex conversion and a tank-filling problem. Qwen4 got nine. It answered 104,174 for the sum of multiples of 7 or 13 when the answer is 104,104. The five hosted models each got all ten. Even with thinking off, Qwen4 wrote 4,479 tokens over the ten questions, and Sol wrote 435.

The coding task was a duration parser with 23 tests I wrote and hid from the models. This is the prompt:

Code
Write a Python function `parse_duration(text: str) -> int` that converts a human duration string into a whole number of seconds.

Rules:
- Units are d (86400 s), h (3600 s), m (60 s) and s (1 s). Long forms are accepted too: day(s), hour(s), hr(s), minute(s), min(s), second(s), sec(s), case-insensitive.
- Parts can be separated by spaces, commas or the word "and", e.g. "1h 30m", "2 days, 3 hours and 4 minutes".
- A bare integer with no unit (e.g. "90") means seconds.
- Decimals are allowed on a part ("1.5h" is 5400); round the final total to the nearest whole second (round half up).
- A leading "-" makes the whole result negative ("-1h" is -3600).
- Raise ValueError for empty or blank input, unknown units, or text with no number in it.
- Repeated units simply add ("1h 1h" is 7200).

Return only the Python code for the function (and any imports) in one code block.

Kimi, DeepSeek, Haiku and Neon passed all 23. Sol passed 22 and missed 1h1m1s, written with no separators, which the prompt doesn’t spell out. Qwen4 passed 14 of 23. It wrote the function in 94 seconds and 680 tokens, and it failed on long unit names like “days” and “hr”, on uppercase “SEC” and on decimal seconds. DeepSeek used 17,638 tokens thinking before it answered, against 636 for Neon and 648 for Sol.

For tool calling I gave each model a get_weather tool and a convert_currency tool and three requests: one that needs the weather in Wellington, one that needs a currency conversion and the weather in Auckland, and a request for a haiku that needs no tool. Every model got all three right, including Qwen4, which called both tools in the same turn for the second request. I called Sol through OpenAI’s Responses API for this test.

A 15,000 token needle

I built 421 shipping log lines, hid one maintenance note partway through that said the spare pump key is in locker 58-C and not 85-C, and asked this at the end:

Code
Question: According to the maintenance note in the logs above, which locker holds the spare pump key for the Lyttelton dock office? Answer with the locker code only.
Needle test: Qwen4 2-bit on four CPU cores took 405 s, hosted models 1 to 3 s, all answered 58-C
All six models found the right locker. Illustration: Sulat

Qwen4 answered 58-C. Its tokeniser counted 15,322 tokens in the prompt, and reading them took 404 seconds, about 38 tokens a second. The hosted models answered in one to three seconds. That’s the real cost of running a 2-bit copy on four cores: it gets there, slowly. Generation ran at about 7.7 tokens a second.

I tested one image too, a downscaled copy of Qwen’s own benchmark chart, with this prompt:

Code
Look at this chart grid. 1) What score does Qwen4-35B-A3B (the first, darkest blue bar) get on GPQA? 2) On Terminal Bench 4.1, which model has the highest bar and what is its score? Answer in two short lines.

Qwen4 answered 86.9 for GPQA and Qwen3.8-Flash-Next at 24.2 for Terminal Bench, both correct, in 96 seconds for a 1,739 token prompt. I didn’t send the image to the hosted models, since the question here was whether the open weights can read charts.

Reasoning effort

Qwen says the four effort levels are now clearly separated and that thinking is more concise at every level. I reran three of the arithmetic questions (the sum of multiples, primes below 200 and the day count) with thinking off, then at low and high, with a 6,000 token cap and the same prompt as above.

EffortCorrectTokens writtenTime
Off2 of 31,612212 s
Low3 of 32,022267 s
High2 of 33,201411 s
Three questions, one run each, on the 2-bit copy. The tokens include any visible working as well as the final answer.

Token use did rise from off to low to high, as Qwen says. But the sum of multiples came out right at low (104,104) and wrong at high (104,230), and high used fewer tokens on that question than low did. Three questions can’t show whether the levels are better separated than before, and none of them hit the cap.

What I couldn’t test

I didn’t run the BF16 or FP8 weights, so every Qwen4 result here is for a 2-bit copy. I didn’t run the 1 million token context, only 15,000 tokens, or video input, or multi-token prediction decoding, or Qwen’s own API, which isn’t available. I didn’t run agent tasks in a coding harness, and the long-horizon work Qwen highlights is the part my tests are least able to show.

Where it fits

Apache 2.0 matters here. Qwen’s audio models from earlier this week, which I covered in the Jev piece, ship under a non-commercial licence, and Qwen4-35B-A3B doesn’t. Anyone can fine-tune it, host it and sell access. Qwen4-Max stays the hosted flagship at US$1.50 per million input tokens, and this model is the one you can keep.

My read after running it: the claim that it fits small hardware is true for loading and reading, since a 56 billion parameter model ran in 13 GB of RAM, and it’s slow and error-prone for writing. The benchmark chart says it’s a strong open agent model for its size. My smoke tests can’t confirm or contradict that, and the 2-bit copy says nothing about the 8-bit or BF16 weights. I’ll update this piece when a hosted endpoint is up and I can run it at full precision.