Yi-Coder 9B on Apple M2 · 16GB

✅ Runs (tight) — Yi-Coder 9B @ Q6_K
Yi-Coder 9B 9B at Q6_K needs ~8.0 GB (weights 6.7 GB + KV 768 MB + overhead 512 MB @ 8K ctx) of your 8.2 GB usable (of 16.0 GB unified memory) — fits, but little headroom — close other apps or trim context. Expect ~7–12 tok/s (usable).
context @ Q6_K: runs to 64K · won't fit past that on this rig
quantneedsspeed
~ Q8_010.0 GB~0.7–1 tok/s (slow)
Q6_K8.0 GB~7–12 tok/s (usable)
Q4_K_M6.2 GB~10–17 tok/s (usable)
$runlocal install yi-coder:9b
runlocal verdict card
download card share on x share on reddit drop it in your model-drop post
Yi-Coder 9B: Runs (tight)
for your own README — links back here

Same model, other machines: Apple M1 · Apple M1 Pro · Apple M3 Pro · Apple M2 Pro · Apple M4 Pro · Apple M3 Max

Also runs on a Apple M2: DeepSeek-R1 (distill) · Qwen3 · Llama 3.1 · Qwen2.5 · Gemma 3

Best models for a Apple M2 · 16GB →

Architecturally similar

These share Yi-Coder 9B's KV-cache geometry — they size memory the same way, so here's how they fit on a Apple M2 · 16GB too:

modelsharesverdict here
Qwen2.5-Coder 4kv/128hd ✅ Runs (tight)
StarCoder2 4kv/128hd ✅ Runs (tight)
Yi 1.5 4kv/128hd ✅ Runs (tight)
Qwen3 Coder 30B-A3B 4kv/128hd ❌ Won't fit
SmolLM3 3B 4kv/128hd ✅ Runs comfortably

Check any combo yourself: open the checker →