LocalLLM Forum — Run it locally. Own your models.

Qwen3 14B GGUF on a Mac Studio — 28 tok/s and what I learned

R posted by RafaLindqvist #qwen3#gguf#mac-studio 4 posts 1,264 views
R

Spent the week using Qwen3 14B as my daily driver instead of the usual 7B-and-a-dream setup. Numbers first, opinions after.

Setup

  • Model: Qwen3 14B, Q4_K_M GGUF (9.0GB)
  • Hardware: Mac Studio M2 Max, 64GB unified memory
  • Runtime: llama.cpp b4602 (Metal) and Ollama 0.5.x for comparison
# llama.cpp — the flags that actually matter
./llama-server -m Qwen3-14B-Q4_K_M.gguf -c 16384 -fa on \
  --cache-type-k q8_0 --cache-type-v q8_0 -ngl 99

# same model via ollama, for the lazy evenings
ollama run qwen3:14b-instruct-q4_K_M

Numbers

context   pp512 (tok/s)   tg128 (tok/s)   KV cache (q8_0)
 8k           412              28.4          1.6 GB
16k           398              27.1          3.1 GB
32k           351              24.6          6.2 GB

What I learned

  • KV cache quantisation to q8_0 saves roughly 1.8GB at 16k and costs about 2% output speed — free memory if you're not doing precision-critical work.
  • Flash attention matters more on Metal than the docs suggest: without -fa the 32k prompt processing drops from 351 to 214 tok/s.
  • The 28 tok/s figure holds only with the machine plugged in and the lid-equivalent (nothing else running). A Time Machine backup running in the background costs me 4 tok/s, which I found out the embarrassing way.

Quality-wise it's a clear step up from the 7B class for code refactoring and long-document summarisation; for quick factual lookups the difference is smaller than the extra 5 tok/s you give up.

Mac Studio M2 Max 64GB · Stockholm · ollama + llama.cpp
I

Nice write-up — this matches my M2 numbers closely enough that I'd trust your methodology.

Two additions for anyone following along:

  • If you're memory-tight, an imatrix IQ4_XS of the same model runs at 8.1GB and within noise of Q4_K_M on my blind tests. Worth the hour of quantising.
  • On the Ollama side, set num_gpu to 99 explicitly — on some builds it defaults to layer-count-minus-one and you silently leave the last layers on CPU.

I've linked this thread from the Mac performance section of the wiki.

"Pushing 24GB to its limits since 2023." — Ingrid Marchetti, Bergen
D
I IngridMarchetti replied
…set num_gpu to 99 explicitly — on some builds it defaults to layer-count-minus-one…

That num_gpu gotcha explains a lot about why my Ollama runs never quite matched my llama.cpp numbers. Cheers.

Separate question: how are you handling the thinking mode tokens? I find Qwen3 14B burns 200–400 tokens of internal monologue before answering unless I set the temperature to 0.6 and hard-enable non-thinking mode in the system prompt. Curious what your tok/s looks like counting only the visible answer.

RTX 3060 12GB survivor · QLoRA or bust
K
D DmitriAlmeida replied
…burns 200–400 tokens of internal monologue before answering…

For comparison from the CUDA side: the same Q4_K_M file on my 2× 3090 rig does 41 tok/s output at 16k — about 44% faster than Rafa's Studio, but at roughly 380W from the wall versus the Mac's 38W under the same load.

Per token of electricity, the Mac wins and it isn't close. If you're not in a hurry, the quiet box in the corner is the rational choice. I keep the 3090s for prompt-heavy batch work where the 1,900 tok/s prefill earns its keep.

2× RTX 3090 · Fedora · llama.cpp nightly
Want to join the discussion? Register or log in to reply. Register Log in
Reply
Ctrl+Enter to submit
post 1 of 4