Code Llama on NVIDIA GeForce RTX 4070 · 12GB VRAM

✅ Runs (tight) — Code Llama 7B @ Q5_K_M
Code Llama 7B at Q5_K_M needs ~9.0 GB (weights 4.5 GB + KV 4.0 GB + overhead 512 MB @ 8K ctx) of your 10.8 GB usable VRAM — fits, but little headroom — close other apps or trim context. Expect ~25–40 tok/s (fast).
context @ Q5_K_M: comfortable to 4K · runs to its full 16K
quantneedsspeed
~ Q8_011.2 GB~6–10 tok/s (slow)
Q5_K_M9.0 GB~25–40 tok/s (fast)
Q4_K_M8.3 GB~25–45 tok/s (fast)
$runlocal install codellama:7b
⚠ NVIDIA support is best-effort in v0.1 — verify before relying on it.
runlocal verdict card
download card share on x share on reddit drop it in your model-drop post
Code Llama: Runs (tight)
for your own README — links back here

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

Also runs on a NVIDIA GeForce RTX 4070: Qwen3 · DeepSeek-R1 (distill) · Qwen2.5 · Llama 3.1 · Gemma 4

Best models for a NVIDIA GeForce RTX 4070 · 12GB VRAM →

Architecturally similar

These share Code Llama's KV-cache geometry — they size memory the same way, so here's how they fit on a NVIDIA GeForce RTX 4070 · 12GB VRAM too:

modelsharesverdict here
Qwen2.5-Coder 8kv/128hd ✅ Runs (tight)
Llama 3.2 8kv/128hd ✅ Runs comfortably
Llama 3.3 8kv/128hd ❌ Won't fit
Mistral 7B 8kv/128hd ✅ Runs (tight)
Mistral Small 3 8kv/128hd ⚠️ Partial GPU offload
Mistral Nemo 8kv/128hd ✅ Runs (tight)
Codestral 8kv/128hd ⚠️ Partial GPU offload
Llama 3.2 Vision 8kv/128hd ✅ Runs comfortably

…and 9 more — see the Code Llama page.

Check any combo yourself: open the checker →