,

Qwen 4 35B-A3B on Ollama (MLX) on a 2021 MacBook Pro M1

Qwen 4 35B-A3B, a mixture-of-experts model in nvfp4 with a 262,144-token context, on Ollama 0.40.21’s MLX runner. The machine is an M1 Max MacBook Pro with 64 GB of unified memory. Generation ran at 38.8 tok/s and prompt reading at 370 tok/s at 14k tokens, holding at 362 tok/s at 64k. It passed every scored test, and the judge scored its open-ended answers 8.0 out of 10.

The Short Version

MetricResult
Cold start (first token)6.6 s, of which 6.5 s is model load
Warm first token0.13 s
Generation speed38.8 tok/s (server-reported)
Prompt reading at ~64k tokens362 tok/s
Agent follow-up first token0.51 s, 99.75% of the prompt reused
Reused after switching agents99.7%
Long-prompt recall6/6 (100%)
Tool use6/6, 1.72 s per model turn
Logic9/9 in 102 s
Instruction following6/6 (100%)
Judged quality (1-10)8.0
Total test time689 s

The Model

  • Model: Qwen 4 35B-A3B (qwen4_moe architecture, 40 blocks)
  • Parameters: it’s a mixture-of-experts model. The name says 35 billion total, with about 3 billion active per token. Ollama reports 56.8 billion for the full package, which also includes the vision side.
  • Quantization: nvfp4 (4-bit floating point), safetensors format for the MLX runner
  • Context window: the model supports 1,048,576 tokens. Ollama loaded it at 262,144.
  • Size: 35.9 GB on disk, 25.0 GB loaded as Ollama reports it
  • Capabilities: text, vision, tool calling, thinking. Thinking is on by default, and I left it on.
  • Sampling: the model’s Ollama entry sets temperature 1, top_k 20, top_p 0.95 and min_p 0. BenchPatrol sends temperature 0 on every request so runs are repeatable. The other settings stayed as the entry has them.

The Engine and Settings

  • Engine: Ollama 0.40.21, MLX runner (Apple’s machine-learning framework, used here instead of llama.cpp)
  • Serving: Ollama’s OpenAI-compatible /v1 endpoint
  • Speculative decoding: none

The Hardware

  • Machine: Apple MacBook Pro 16″ (2021), M1 Max with a 10-core CPU (8 performance + 2 efficiency) and a 24-core GPU
  • Memory: 64 GB unified LPDDR5, shared by the CPU and GPU
  • Storage: 1 TB internal SSD
  • OS: macOS 26.6
  • Network: Wi-Fi 6 (802.11ax, 5 GHz, 80 MHz)
  • Power: 45 W AC adapter during the test

VRAM fit: fully in GPU-accessible unified memory. All 25.0 GB of the loaded model sat in GPU memory, out of 64 GB. Nothing ran on the CPU.

How I Tested

Every number here comes from BenchPatrol, a small benchmark harness I wrote to stop guessing at inference speed from agent logs. It talks to any OpenAI-compatible endpoint, runs as a one-shot Docker container on a separate test machine (an old Intel NUC, so the benchmark never competes with the model for CPU or memory), and saves every run as JSON so the next one can be compared against it.

A full run has seven suites:

  • Cold start: time to first token when the model isn’t loaded, and how much of that is load time.
  • Warm generation: three answers of up to 700 tokens with the model loaded. I report the median first-token time and generation speed, using the server’s own timing.
  • Tool use: six cases against six fake tools with exact expected answers: a single call with arguments, choosing the right tool, a three-step chain, knowing when not to call a tool, a calculator, and two lookups at once.
  • Agent prompt reuse: an agent with a ~20k-token system prompt asks three questions, a second agent with a different prompt asks one, then the first agent comes back. It measures how much of the prompt the server reuses from its cache, and what that does to first-token time.
  • Long-prompt reading: ~14k- and ~64k-token prompts with three codes buried at 10%, 50% and 90% depth, plus a “retired” decoy. It measures reading speed and recall.
  • Logic: nine generated puzzles with checkable answers (ordering, knights and knaves, weekday math, letter counting, inventory math, sequences, inclusion-exclusion, price differences, clock angles). Each gets up to 8,192 output tokens.
  • Quality: six strict instruction-following checks (exact bullet count, raw JSON, all lowercase, a forbidden word plus a word count, answering only from a passage, a three-line haiku) and four open-ended tasks scored 1-10 by a judge model, Claude Sonnet 5.5. Each answer gets up to 8,192 output tokens.

The questions use a fixed seed, so every run asks exactly the same questions. Each prompt also carries a random nonce, so an earlier run can’t help through the cache.

Two things specific to this run:

  1. Real cold start. Nothing was loaded on the Mac when the run started, and this was the model’s first benchmark run on this machine.
  2. Network path. The test machine is wired, and the MacBook was on Wi-Fi. That adds a few milliseconds to every first-token time, which only matters for the sub-second numbers.

Results

Speed

All three warm answers ran to the full 700 tokens, at 35.1, 40.6 and 38.8 tok/s. First-token times were 0.61 s on the first run, then 0.13 and 0.08 s.

Prompt tokensRead timeReading speedRecall
13,90037.71 s370 tok/s3/3
63,753176.18 s362 tok/s3/3

Reading speed barely moves between 14k and 64k tokens. That’s unusual. But a 64k-token document still takes three minutes, so it’s steady rather than fast.

Agent Workloads

This is the test I care about most, because it’s what my agents actually do all day: send the same long system prompt over and over with a little more on the end.

StepPrompt tokensReusedFirst token
A1: agent A, first turn20,70610 (0%)58.47 s
A2: agent A, follow-up20,75220,701 (99.8%)0.5 s
A3: agent A, follow-up20,80020,747 (99.7%)0.52 s
B1: agent B, first turn20,60513 (0.1%)55.93 s
A4: back to agent A20,84820,795 (99.7%)0.56 s

A first turn costs about a minute. After that, follow-ups start in half a second, 115 times faster. Agent A’s cache even survived agent B coming through in between. Switching back cost 0.56 seconds.

Accuracy

Tool use: 6/6. Right tools, right arguments, no malformed JSON, at 1.72 s per model turn. In the three-step chain it looked up the customer, then the invoices, then handed the addition to the calculator. That’s exactly what the test wants, and it’s rarer than you’d think. Asked a question that didn’t need a tool, it answered in under half a second without calling one.

Long-prompt recall: 6/6. All three codes found at both sizes, including the one buried 90% of the way into the 64k prompt. It never fell for the decoy, and it didn’t have to think hard about it: about 100 output tokens each time.

Logic: 9/9, in 102 seconds. It used 4,284 output tokens across the nine puzzles, about 480 per puzzle. The sequence puzzle took the most work at 812 tokens and 18 seconds. Nothing got anywhere near the 8,192-token cap.

Instruction following: 6/6. Bullets, raw JSON, lowercase, the forbidden word, the passage question and the haiku all passed, the slowest in 11 seconds.

Judged quality: 8.0/10.

TaskScoreJudge’s notes
Explain MFA to a non-technical owner8Plain language and a sensible priority order (email, then banking and payroll), with an authenticator app preferred over text messages and a tip about backup codes. It skips phishing and admin accounts, and “most break-ins would fail” overclaims a little.
Debug a Python function8Found the mutable default argument, explained exactly why it happens and gave the standard fix with no invented bugs. Then it added a hardening section and test code when it was asked to keep it brief.
Decline a meeting politely7Courteous, a clear no, and a specific window to reconnect next quarter. It tacked on an optional “tweaks” section to a request for a short email.
Backup advice9Says no, explains the shared failure points, and covers offsite copies, immutable copies, separate backup credentials, restore tests and failure alerts, all in tiers. The only complaint is that twelve items is a lot.

The backup answer is the standout. Separate backup credentials is the point most of the models I’ve tested miss, and this one got it.

Verdict

This is the model I’d run on this Mac now. It passed every scored test and tied Inkling 2 Mini for the best judge score I’ve seen on this machine. It did that at about 1.7 times Inkling’s speed, for both generating and reading. And its full benchmark finished faster than any other Mac model that got everything right.

The one thing to plan around is reading. At 362 tok/s, a fresh 20k-token agent prompt takes about a minute before the first word. A 64k document takes three. Once a prompt’s cached, though, it’s half a second a turn.

Quick, correct, and it finally knows to separate the backup credentials.