← CanIRunLocal · All hardware · All models
Code Llama 7B at Q8_0 on Ryzen AI Max+ 395 128GB: 8.1 GB needed versus 96.0 GB usable; try ollama run codellama:7b-instruct-q8_0.
Yes. Code Llama 7B fits in fast memory on Ryzen AI Max+ 395 128GB at Q8_0 (8.1 GB needed, 96.0 GB usable), about 21 tok/s (estimate).
Hardware: Ryzen AI Max+ 395 128GB · Model: Code Llama 7B
Ryzen AI Max+ 395 128GB has 128 GB of unified memory and 256 GB/s of memory bandwidth. AMD Variable Graphics Memory can dedicate 75% of this unified memory to the GPU, so Ollama can use 96.0 GB. Speeds are estimates. Code Llama 7B (6.74B, Meta) at Q8_0 is a 7.2 GB download and needs 8.1 GB with headroom for about 8k tokens.
| Best quant | Q8_0 |
|---|---|
| Download size | 7.2 GB |
| Memory needed | 8.1 GB |
| Usable fast memory | 96.0 GB |
| Fit | fits in fast memory |
| Estimated speed | ~21 tok/s (estimate) |
| Command | ollama run codellama:7b-instruct-q8_0 |
| Weights at Q8_0 | 7.2 GB |
|---|---|
| Context / KV cache (~8k tokens) | 0.94 GB |
| Total needed | 8.1 GB |
| Usable unified memory | 96.0 GB |
| Headroom | 87.9 GB left |
Weights are the listed download size. The context line is the checker's allowance for about 8,192 tokens, not a measured KV cache. Total needed rounds that sum to 0.1 GB.
About 16,384 tokens (estimate). 8,192 × (88.8 GB left after the weights ÷ 0.94 GB for about 8,192 tokens). That product is past the model's own context, so the safe length stops at 16,384 tokens (16K). This scales the checker's context allowance. It is not a measured run.
Every quant this checker lists for the command below. Yes fits in fast memory with at least 1 GB spare. Tight means under 1 GB spare, partial offload, or a raised Mac GPU limit. Speeds are estimates from memory bandwidth, not measured benchmarks. How we estimate
| Quant | Size | Fits | Est. tok/s |
|---|---|---|---|
| Q8_0 picked | 7.2 GB | yes | ~21 |
| Q5_K_M | 4.8 GB | yes | ~32 |
| Q4_K_M | 4.1 GB | yes | ~37 |
| Q4_0 | 3.8 GB | yes | ~40 |
Estimates, not benchmarks. Model sizes are ollama.com download sizes; memory needed adds headroom for ~8k tokens of context; speeds are rough figures from memory bandwidth. Speeds are for short chats. Long conversations (around 8k tokens) run about 10–15% slower because the model rereads its memory of the chat for every word. How we estimate. Data updated 2026-11-25.
A project by OnDevice Labs · llms.txt · How we estimate