---
title: "Qwen4 35B-A3B — FreshContext benchmarks"
source: https://freshcontext.io/benchmarks/models/qwen4-35b-a3b/
---

Model family [← Models](https://freshcontext.io/benchmarks/models/)

# Qwen4 35B-A3B

Qwen's 35-billion-parameter model that uses about 3 billion for each token and reads a large lookup table from the SSD. A 3-bit file ran on our 24 GB Mac at 46 tokens a second and scored the same on two Macs. A 4-bit file from another publisher scored lower on tool calling.

**Files tested**: 2

**Scored runs**: 56

**Smallest Mac**: 24 GB for the file we kept

Made by Qwen (Alibaba) · Apache 2.0 · released 3 Dec 2026

Overview Should you use it · what it taught us · why we tested it · what happened

**How this page was made.** The tests run automatically on our Mac Studio, and every score here comes straight from those runs. This overview was written by Claude, an AI model, from the lab's own records: the run log, notes kept at the time, and the working sessions where each decision was made. Quotes are Alan's words, with spelling fixed. [How these pages are made](https://freshcontext.io/benchmarks/workings/model-pages/).

## Should you use it?

On a 24 GB Mac, the 3-bit file is the first model of this size we've measured that is quick enough for live work. Give it a form that allows an empty field, and take away any tool it mustn't call. If you have more memory, don't assume a 4-bit file is the safer choice: test the one you download. The files were still changing when we ran, so check what you have against the checksums in our run notes.

## What it taught us

- **A bigger file isn't always the better one.** The 4-bit file was ahead on one test and behind on three. We can't say which thing about the file causes it. It is one file against another, not 3 bits against 4.
- **Scores carry across Macs. Exact answers don't.** On one Mac the output repeated word for word. Across an M1 Max and an M4 Pro the same file wrote different words in 44% of the cases with a written answer, and still reached the same result in 98% of all cases.
- **The usual memory figure fails for a model like this.** With the weights mapped from disk, the server's own figure read 1.3 GiB on one Mac and 29.8 GB on the other for the same file. We place it by the smallest Mac it has actually run on.
- **A miss on an empty-field test can be the model being honest in the wrong shape.** Most of its misses were "not found in document" written into the field.

## Why we tested it

Qwen4 35B-A3B came out on 3 December 2026. It follows Qwen3.6-35B-A3B, which was the everyday model on our Mac Studio. On 4 December Alan said: "ok, now, qwen 4 35b has landed", and then: "ok, let's baseline here then".

The question was whether it runs on the Macs we have, and how it compares with what we already measured.

## What it took

- **A new llama.cpp.** Support for the model's tokenizer went in the day it came out. The build our earlier records used can't load it, so these runs are on b12977.
- **Files from repackers.** The maker ships no file that llama.cpp can load. We used a 3-bit file from Unsloth and a 4-bit file from ggml-org.
- **A lookup table read from disk.** Two fifths of the 3-bit download is a 20-billion-entry table that is mapped from the SSD, not loaded.
- **A smaller window than usual.** On the 24 GB Mac the first request at 64K ran out of graphics memory. Everything here ran at 48K, and the long-document test was left out.
- **About an hour a run.** Fifteen tests, 1,224 cases, one request at a time, reasoning off.

We wrote down what we expected before each run.

## What happened

- **It runs on a 24 GB Mac.** The 3-bit file added 16 to 16.5 GiB to the memory the Mac can't page out. The files themselves are bigger than the Mac's memory.
- **It is quick.** A median of 46.1 tokens a second writing and 447 reading on the M4 Pro. On the Mac Studio, 41.1 and 488.
- **The two Macs scored the same.** Within 3 cases on every test, and the same pass or fail on 1,201 of 1,224 cases. The wording of the answers was identical in only 56% of them.
- **The 4-bit file scored lower on tool calling.** 53 of 60 against 60 of 60. Case by case, the 3-bit file passed 7 the 4-bit file failed and none went the other way.
- **We checked it wasn't how we loaded it.** The 4-bit file run a second time, with the 3-bit file's settings, gave the same answer on all 1,224 cases.
- **It never left a tool alone.** In 48 cases where it should have, it called the tool every time. Where a tool was wanted it called it 47 or 48 times of 48.
- **It abstains in words, not with an empty field.** Where a form allowed an empty field it left it empty 24 times of 24. Where the form demanded a value, it mostly wrote that the document didn't say, inside the field. Our test counts that as a miss: 29 of 72.
- **The draft head didn't fit on the 24 GB Mac.** It ran only at a 16K window, for about 1.1 times the speed.

Against [Ternary Bonsai 2.5 27B](https://freshcontext.io/benchmarks/models/bonsai2.5-27b-q2_0-np1-c48k-b11846-m4pro24/), measured on the same Mac at the same window, the 3-bit file was ahead on 4 tests, behind on 4 and level on 6. It wrote 2.6 times as fast. It was behind on tagging, 216 of 240 against 228, and on empty fields.

The full account is in the lab note [Qwen4 35B-A3B, day one, on two Macs](https://freshcontext.io/benchmarks/lab-notes/qwen4-35b-a3b-day-one-on-two-macs/).

## What we don't know

- **Anything at 64K, or on long documents.** We ran 48K and left that test out.
- **What makes the two files differ.** A 4-bit file from the same publisher as the 3-bit one would separate the publisher from the bit width. We haven't run it.
- **The 4-bit file's replacement.** Its publisher swapped the files the day we ran. The new ones are unmeasured.
- **Reasoning on.** The model reasons by default. Every run here had it off.
- **Other runtimes.** We have only run it on llama.cpp.

The files 2 tested · each has its own page

- [UD-IQ3_XXS kept](https://freshcontext.io/benchmarks/models/qwen4-35b-a3b/ud-iq3-xxs-unsloth/)

  Unsloth's 3-bit file, in two parts, 28.7 GB. The one that fits both our Macs. Tested on the Mac mini (M4 Pro) and the Mac Studio on 4 December. On disk on both.

  Unsloth · downloaded on both Macs, sha verified 2026-12-04 · 28.7 GB · 28 scored runs · smallest Mac 24 GB
- [Q4_K_M](https://freshcontext.io/benchmarks/models/qwen4-35b-a3b/q4-k-m-ggml-org/)

  ggml-org's 4-bit file, 36.0 GB, too big for the 24 GB Mac. Tested twice on the Mac Studio on 4 December. Its publisher has since replaced it with different files.

  Ggml-org · downloaded, sha verified 2026-12-04 · 36.0 GB · 28 scored runs · smallest Mac 48 GB

The lab's record Every decision, with its date · the model's specification

Decisions, in order

- **2026-12-04 — Baseline on the Studio with ggml-org Q4_K_M (Alan).** "ok, let's baseline here then", after both Macs' intake lookups agreed the stated 21.9 GB resident is over the M4 Pro's 17.76 GiB budget. The Studio runs it under its own label; no cross-machine comparison. Rejected for now: one small unsloth file on both Macs. Not taken: a local Q4_0 from Q8_0 (the M1 rule); neither repo publishes a Q4_0, and it would be a third file.
- **2026-12-04 — Runtime: plain upstream b12977** (1579b0254), built in llama.cpp-b12977 with b11846's cmake flags. The live binary has neither the architecture nor the tokenizer [read]; it is not touched.
- **2026-12-04 — PRE-REGISTERED: speed at depth (llama-bench), before any run.** Same ladder as the BTL-4 Compact run: `llama-bench -p 512 -n 128 -fa 1 -ngl 999`, f16 KV, default `--lazy-mode auto` and `--load-mode auto`; depths 0 / 8K / 32K / 48K / 64K with 2 reps, then 128K with 1 rep. Fleet seats resident and idle, the seat empty, speed labelled accordingly. Swap watchdog +6 GB kills the bench. Expectations:
- E1. Loads and completes every rung on b12977 with no error.
- E2. Peak llama-bench RSS ≤ 26 GB (card states 21.9 GB resident with the table on disk). Above 32 GB means the table is resident under lazy-mode auto on Metal; recorded as a finding, not a failure.
- E3. tg128 at depth 0 between 30 and 55 t/s. Reference only, different file and build: Qwen3.6-35B-A3B UD-Q5_K_M measured 42.6 t/s at 8K on this box (our fleet config, read 2026-12-04). Qwen4 adds 4 hyper-connections and an indexer at the same ~3B active.
- E4. pp512 at depth 0 between 300 and 900 t/s.
- E5. tg128 at 64K ≥ 60% of depth 0. Reading: a top-2048 sparse indexer should flatten decode with depth; BTL-4 Compact kept 56% (65.4 → 36.4).
- E6. Swap growth stays under 6 GB; the watchdog never fires.
- First attempt 09:40 stopped partway (Alan: feels test first); full run 15:28–15:40.
- **Scored 2026-12-04:** E1 MET (both processes exit 0, no errors). E2 MISSED: peak 38.99 GB, over the 32 GB finding line, so the finding applies (whole file paged in under defaults; see §4 and its note). E3 MET (43.0). E4 MET (577.5). E5 MET (36.5/43.0 = 85%). E6 MET (swap +0).
- **2026-12-04 — PRE-REGISTERED: gauntlet at 48K, no needle (Alan: "ok run the bench, no needle 48k context").** Deviations from a lab note, both Alan's: context 49152 instead of 65536, and `needle` dropped. Hence label `qwen4-35b-a3b-q4km-np1-c48k-b12977` (the planned c64k label is not used). Not comparable with c64k gauntlets on context-sensitive suites; the other suites' prompts fit well inside 48K.
- Server: `llama.cpp-b12977/build/bin/llama-server -m models/qwen4-35b-a3b/Qwen4-35B-A3B-Q4_K_M.gguf -np 1 -c 49152 -fa on -ngl 999 --cache-ram 0 --jinja --alias qwen4-35b-a3b-bench`. f16 KV. Fleet seats up, the seat empty (VACATE not needed), feels server stopped first.
- Gates (queue stops on failure): slot check `n_slots = 1, n_ctx_slot = 49152`; chat-template pre-flight (system, tools, enable_thinking=false render); harness coherence COHERENT.
- Suites (15, PAR=1, profile `extraction`, thinking off, temp 0): tagger tagger_nullable grounding enrichment epistemics synthesis worldview nullschema toolcall toolcall2 toolscale tools screening contract chainwalk. Then decide/1 and edgefill.
- Comparators (reference, different context/build): gauntlet-btl-4-compact-iq2xxs-np1-c64k-b11846, gauntlet-mellum2.1-12b-a2.5b-thinking-q4km-np1-c64k-b11846, gauntlet-k2-horizon-36b-a4b-q4_0-np1-c64k-b11846.
- Expectations:
- G1. All three gates pass; every suite log says "thinking-off verified".
- G2. Every suite completes its full case count (complete_run_check.py OK on all 15).
- G3. No suite below chance. Any that is triggers a raw-response audit before judgement.
- G4. toolcall and toolscale ≥ 90% (saturated suites; a miss there points at the qwen3-coder tool parser change in PR #33626, not the model).
- G5. Peak candidate RSS ≤ 30 GB at 48K (feels server at 64K sat at 23.3 GB idle-ish; the partial llama-bench reached 27.4 GB).
- G6. Swap watchdog (+6 GB) never fires.
- **Scored 2026-12-04:**
- G1 MET: slot, template and coherence gates passed; 15/15 suite logs "thinking-off verified".
- G2 MET: complete_run_check.py exit 0, all 15 OK.
- G3 MET as written (no suite flagged below chance); nullschema's 34.7% audited anyway, see §4.
- G4 MISSED on toolcall (88.3%), met on toolscale (97.5%). My parser hypothesis was wrong: the misses are uncalled tools in the unmentioned/need arms, the calls that were made all parsed.
- G5 MISSED: peak 35.33 GB. Load was 23.40 GB; RSS grew during the run. The 23.3 and 27.4 GB I based it on were early-life readings, not peaks.
- G6 MET: swap flat at 6,750 MB.
- **2026-12-04 — Studio IQ3_XXS run and flags control:** see a lab note and a lab note (each pre-registered and scored there).
- **2026-12-04 — Publish (Alan: "I think we should publish what we have").** Studio bundles chained onto the Mac mini's bundle (family root), following its conventions for the two-part file (weights_sha256 = part 1, weights_bytes = both parts) and keeping the three load flags in the note, not the server block. One difference left for Alan: peak_rss_gb on the Studio is process RSS (counts mapped file pages; 29.8 GB for the IQ3_XXS file), on the Mac mini it is growth in system wired memory (16.8 GiB for the same file). The Studio's wired baseline moved between runs (1.7–8.4 GiB before load) with seats resident, so a wired-growth figure here would not be cleaner.

What we learned, in the lab's words

**Gauntlet `qwen4-35b-a3b-q4km-np1-c48k-b12977`, 2026-12-04 11:05–12:01, Mac Studio (M1 Max, 64 GB).** Scored from the result files (complete_run_check.py: all 15 suites OK, rows = case count, 0 duplicates; epistemics flagged CHECK for 100%, raw responses read and well-formed). Profile extraction (thinking off, temp 0, verified in all 15 suite logs). Pass rate over cases measured:

| Suite | Passed | % |
| --- | --- | --- |
| tagger | 217/240 | 90.4 |
| tagger_nullable | 223/240 | 92.9 |
| grounding | 98/125 | 78.4 |
| enrichment | 45/54 | 83.3 |
| epistemics | 48/48 | 100.0 |
| synthesis | 57/60 | 95.0 |
| worldview | 38/40 | 95.0 |
| nullschema | 25/72 | 34.7 |
| toolcall | 53/60 | 88.3 |
| toolcall2 | 70/120 | 58.3 |
| toolscale | 39/40 | 97.5 |
| tools | 14/15 | 93.3 |
| screening | 58/60 | 96.7 |
| contract | 31/48 | 64.6 |
| chainwalk | 1/2 | 50.0 |
| decide/1 | 22/36 | 61 |
| edgefill | 5/20 | 25 |

Wilson intervals: in the bundle (2026-12-04-6cd502e6). Comparators are c64k runs on b11846 (reference only, different context and build).

- **nullschema by arm:** permit 24/24, forbid 1/24, optional 0/24. Of the 47 misses, 27 put a prose abstention in the field ("The document does not contain…") and 4 a sentinel string (`NOT_FOUND_IN_SOURCE`) instead of null; the grader scores these as fabricated. About 16 are real fabricated or misattributed values. Reading: mostly a shape failure (abstains in words, not null) under extraction; the grader is locked, so this is a finding, not a re-score. Regex split, not hand-checked case by case.
- **Correction 2026-12-04 (found by the independent check before publishing; recount from the result file):** the split above is wrong. Of the 47 misses, 27 are sentences saying the value is absent, **12** are placeholder strings (`NOT_FOUND`, `NOT_FOUND_IN_SOURCE`), so **39** abstain in words; the remaining **8** are values taken from the wrong field (grader outcome `misattributed`), and none is an invented value. My earlier regex counted only 4 placeholders and lumped the rest with the misattributed rows. The bundle note carries the corrected figures. The original line is kept above.
- **toolcall misses (7):** 5 in `unmentioned` (answered null or prose instead of calling the tool), 2 in `need` (answered a value directly, no tool call). The other 53 tool calls parsed. Reading: model behaviour, not the PR #33626 parser.
- **Memory:** candidate RSS 23.40 GB at load (11:05:45), peak 35.33 GB (rss_kb × 1024 / 1e9) at 48K, f16 KV. Swap flat at 6,750 MB the whole run; watchdog never fired.
- **Speed (contended, fleet seats up):** mean decode 41.9 t/s over the 41 generations of ≥200 tokens (server log print_timing). The bundle uses the standard measure instead: decode median 42.8 t/s over 462 replies of 64+ tokens, prefill median 481.2 t/s over 20 prompts of 2K+.

**Load flags ruled out (2026-12-04 19:51):** the same file with `--load-mode mmap --lazy-mode on -ot per_layer_token_embd=CPU` gave identical output on all 1,224 cases, decide and edgefill. The Q4_K_M vs UD-IQ3_XXS gap on toolcall, contract, decide and edgefill is between the two files.

**Speed at depth (llama-bench), 2026-12-04 15:28–15:40, Mac Studio (M1 Max, 64 GB).** `llama-bench -p 512 -n 128 -fa 1 -ngl 999 -o jsonl`, build 1579b0254 (12977) read from the jsonl, f16 KV, default lazy/load mode. Fleet seats up and idle (k2-3.7b, gemma4-12b, guardian, edge0-w1), the seat empty (the box's normal state, Alan 2026-12-04).

| Depth | Read pp512 t/s | Write tg128 t/s | Reps |
| --- | --- | --- | --- |
| 0 | 577.5 (575.6, 579.3) | 43.0 (43.4, 42.6) | 2 |
| 8K | 469.0 | 41.5 | 2 |
| 32K | 442.9 | 39.2 | 2 |
| 48K | 427.6 | 37.9 | 2 |
| 64K | 416.9 | 36.5 | 2 |
| 128K | 367.3 | 32.2 | 1 |

- Read drops 19% in the first 8K, then only about 1 t/s per 1K of depth after; write keeps 85% at 64K and 75% at 128K.
- Peak llama-bench RSS 38.99 GB; it climbs to ~37–38 GB within ~4 minutes of each process start (both the 0–64K and the 128K process). RSS counts mapped file pages, and the file is 36.0 GB, so the whole file was paged in. Reading: under llama-bench defaults the n-gram table does not stay on disk. Not isolated. Swap flat at 6,750 MB; lowest free memory 25%. No errors in the.err files, watchdog never fired.
- Note 2026-12-04 (reading, from the llama.cpp source): the table is marked `TENSOR_READ_LAZY` in qwen4exp.cpp and is memory-mapped on the CPU side under the default lazy mode; RSS counts its pages once read, and these are clean file pages the OS can drop. "Does not stay on disk" above may overstate it. Not measured (no footprint/vmmap split).
- Correction to a prediction made in chat before this run: I extrapolated read at 32K to ~300 t/s and write to ~36 t/s from the 0 and 8K points in a straight line. Measured 442.9 and 39.2: cost with depth is strongly sublinear, not linear.

Why it was tested, in the lab's words

Alan, 2026-12-04: "ok, now, qwen 4 35b has landed"; "ok, let's baseline here then". It is the successor family to Qwen3.6-35B-A3B, which was this box's daily driver and whose weights were deleted the same morning.

Open questions

- n-gram table residency: footprint/vmmap on a running server would split clean mapped pages from allocations (§4 note).
- nullschema: does a thinking-on or non-thinking (Qwen's sampling) profile return null instead of prose? Separate label if run.
- What in the file explains the Q4_K_M vs IQ3_XXS gap: Unsloth's UD-Q4_K_M (same nominal quant as ggml-org's, same repacker as the IQ3_XXS) would separate repacker from bit width. Offered to Alan 2026-12-04, not run.
- Whether a Q4_0 from the Q8_0 is worth making for this family (the M1 rule).

The model in detail

- Maker: Qwen. Repo `Qwen/Qwen4-35B-A3B` @ 849378c8db0d4537b7c6731738147378729d8920, created 2026-12-03 02:45 UTC, apache-2.0 [read, HF API].
- Architecture (GGUF `qwen4exp`, tokenizer `qwen4`) [read, GGUF header]: 40 layers, hidden 2048, 256 experts with 8 routed + 1 shared, full attention every 4th layer with 2 KV heads, linear attention elsewhere, a sparse-attention indexer (top-k 2048), 4 hyper-connections, a per-layer n-gram embedding table at layer 1 (GGUF numbering), context 1,048,576.
- Size [read, ggml-org Q4_K_M tensor list]: 55.52B weights in the GGUF = a 35.0B model + a 20.48B n-gram table (`per_layer_token_embd`); about 3B active per token [stated, maker's card]. The 1-layer MTP head (2B, stated) is a separate file at ggml-org.
- llama.cpp: tokenizer name added in PR #33626, merged 2026-12-03 18:18:57 UTC; first release b12969 [read, GitHub API]. Served here by llama.cpp-b12977.
