Can I run Qwen3 14B on the Apple M4?
Runs slowlyQ4_K_M fits in unified memory (10.9 of 11.2 GB usable by the GPU): Runs slowly, est. 7.0 tok/s (5.6–8.4, calibrated estimate ±20%). Q2_K (heavy quality loss) would reach Runs well, est. 10.2 tok/s (8.1–12.2, calibrated estimate ±20%).
16 GB unified memory · 120.0 GB/s · FP16 8.5 TFLOPS. Assumes 8k context and an f16 KV cache. Verdicts are shown for each memory size.
Verdict by memory size
The page uses the 16 GB configuration; here is every size.
- 16 GBRuns slowlyest. 7.0 tok/s (5.6–8.4, calibrated estimate ±20%)
- 24 GBRuns slowlyest. 7.0 tok/s (5.6–8.4, calibrated estimate ±20%)
- 32 GBRuns slowlyest. 7.0 tok/s (5.6–8.4, calibrated estimate ±20%)
Every quant of Qwen3 14B on the Apple M4
| Quant | File size | Verdict | Speed | Memory | Runs as | Notes |
|---|---|---|---|---|---|---|
| Q2_K | 5.75 GB | Runs well | est. 10.2 tok/s8.1–12.2calibrated estimate ±20% | 7.7 / 11.2 GB | Unified memory | — |
| IQ4_XS | 8.14 GB | Runs slowly | est. 7.6 tok/s6.1–9.1calibrated estimate ±20% | 10.1 / 11.2 GB | Unified memory | — |
| Q4_K_Mbaseline | 9.00 GB | Runs slowly | est. 7.0 tok/s5.6–8.4calibrated estimate ±20% | 10.9 / 11.2 GB | Unified memory | — |
| Q8_0 | 15.70 GB | Won't run | — | Needs about 17.6 GB; 12.0 GB of memory is free (11.2 GB usable by the GPU) | — | — |
Where the memory goes at Q4_K_M
- Weights
- 9.0 GB
- KV cache
- 1.3 GB
- Compute buffer
- 0.6 GB
- Free
- 0.3 GB
- Not usable by the GPU
- 4.8 GB
Context length vs. KV cache
| Context | KV f16 | KV q8_0 | KV q4_0 |
|---|---|---|---|
| 4k | 10.2 GBRuns slowly est. 7.4 tok/s6.0–8.9calibrated estimate ±20% | 9.9 GBRuns slowly est. 7.7 tok/s6.2–9.2calibrated estimate ±20% | 9.7 GBRuns slowly est. 7.8 tok/s6.3–9.4calibrated estimate ±20% |
| 8k | 10.9 GBRuns slowly est. 7.0 tok/s5.6–8.4calibrated estimate ±20% | 10.3 GBRuns slowly est. 7.4 tok/s5.9–8.9calibrated estimate ±20% | 10.0 GBRuns slowly est. 7.7 tok/s6.1–9.2calibrated estimate ±20% |
| 16k | 11.7 GBRuns slowly est. 3.6 tok/s2.5–4.7theoretical estimate ±30% | 11.1 GBRuns slowly est. 6.9 tok/s5.5–8.3calibrated estimate ±20% | 10.4 GBRuns slowly est. 7.4 tok/s5.9–8.8calibrated estimate ±20% |
| 32k | 15.2 GBdoes not fit | 11.9 GBRuns slowly est. 3.5 tok/s2.5–4.6theoretical estimate ±30% | 10.5 GBRuns slowly est. 4.0 tok/s2.8–5.2theoretical estimate ±30% |
S = Runs great · A = Runs well · B = Runs slowly · F = Won't run
At Q4_K_M the verdict stays Runs slowly up to 16k context with an f16 KV cache, and up to 32k with q8_0.
Estimated speed
- Generation
- est. 7.0 tok/s (5.6–8.4, calibrated estimate ±20%)
- Prompt processing
- about 383 tok/s (230–536, rough estimate ±40%)
Measured on this exact combination
No public measurement for this exact combination yet; the numbers above are estimates.
If this is not enough
A smaller model that runs well on the Apple M4
Runs wellGemma 3 12B: Runs well, est. 9.2 tok/s (7.3–11.0, calibrated estimate ±20%)
A lower quant of Qwen3 14B
Runs wellQ2_K (5.75 GB, heavy quality loss): Runs well, est. 10.2 tok/s (8.1–12.2, calibrated estimate ±20%)
Qwen3 14B on the Apple M5
Runs wellQ4_K_M: Runs well, est. 8.9 tok/s (7.1–10.7, calibrated estimate ±20%)
How to run it
Commands for the Q4_K_M file. Both tools download from Hugging Face on first run.
File: Qwen3-14B-Q4_K_M.gguf (9.00 GB) from unsloth/Qwen3-14B-GGUF.
llama-server -hf unsloth/Qwen3-14B-GGUF:Q4_K_M -c 8192 -ngl all -fa on- -ngl all loads every layer on the GPU.
- -fa on enables flash attention (needed for KV cache quantization).
- --cache-type-k q8_0 --cache-type-v q8_0 shrinks the KV cache to 0.72 GB at 8k context.
Terminal:
OLLAMA_CONTEXT_LENGTH=8192 ollama serve
ollama run hf.co/unsloth/Qwen3-14B-GGUF:Q4_K_M- Ollama defaults to 4k context on GPUs under 24 GB. Set OLLAMA_CONTEXT_LENGTH when starting the server, or /set parameter num_ctx inside the chat.
/set parameter num_ctx 8192
Related pages
Guide: Running local LLMs on a Mac (M4, M5): how much unified memory?
Other models on the Apple M4
Qwen3 14B on other hardware
Frequently asked questions
Can I run Qwen3 14B on the Apple M4?
Q4_K_M fits in unified memory (10.9 of 11.2 GB usable by the GPU): Runs slowly, est. 7.0 tok/s (5.6–8.4, calibrated estimate ±20%). Q2_K (heavy quality loss) would reach Runs well, est. 10.2 tok/s (8.1–12.2, calibrated estimate ±20%). Q4_K_M needs 10.9 GB at 8k context; the GPU can use 11.2 GB of the unified memory.
How much context can Qwen3 14B use on the Apple M4?
At Q4_K_M the verdict stays Runs slowly up to 16k context with an f16 KV cache (2.7 GB of KV) and up to 32k with a q8_0 KV cache (2.9 GB). The model supports up to 32k.
Which quant should I use, and how fast is it?
Q4_K_M (9.00 GB) is the recommended balance: Runs slowly, est. 7.0 tok/s (5.6–8.4, calibrated estimate ±20%). It is also the largest tracked file that gets this verdict.
Speeds are estimates from memory bandwidth, calibrated against public benchmarks, and each one comes with an error band and a confidence label. Real results vary with drivers, backend, context length and thermals.