Code Llama on Apple M1 · 8GB

❌ Won't fit — Code Llama 34B @ Q3_K_M
Code Llama 34B at Q3_K_M needs ~17.6 GB (weights 15.4 GB + KV 1.5 GB + overhead 786 MB @ 8K ctx) — more than your 2.9 GB usable of 8.0 GB unified. Try a smaller model or a lower quant.
quantneedsspeed
Q8_036.6 GB
Q5_K_M25.0 GB
Q4_K_M21.5 GB
Q3_K_M17.6 GB

Won't fit here — what hardware runs Code Llama? →

runlocal verdict card
download card share on x share on reddit drop it in your model-drop post
Code Llama: Won't fit
for your own README — links back here

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

Also runs on a Apple M1: DeepSeek-R1 (distill) · Qwen2.5 · Qwen3 · Llama 3.2 · Gemma 2

Best models for a Apple M1 · 8GB →

Architecturally similar

These share Code Llama's KV-cache geometry — they size memory the same way, so here's how they fit on a Apple M1 · 8GB too:

modelsharesverdict here
Llama 3.1 8kv/128hd 🐢 CPU-only (slow)
Qwen2.5-Coder 8kv/128hd ✅ Runs comfortably
Llama 3.3 8kv/128hd ❌ Won't fit
Mistral 7B 8kv/128hd 🐢 CPU-only (slow)
Mistral Small 3 8kv/128hd ❌ Won't fit
Mistral Nemo 8kv/128hd ❌ Won't fit
Codestral 8kv/128hd ❌ Won't fit
Llama 3.2 Vision 8kv/128hd ❌ Won't fit

…and 9 more — see the Code Llama page.

Check any combo yourself: open the checker →