Best model for coding under 16 GB
Ranked models that need at most 16 GB, best coding score first. The memory a model needs is an estimate: the model file size plus about 20% for the context of a single conversation. The score is the one on the category page: 0 to 100, and only models with enough scored items are included.
165 of 227 ranked models fit in 16 GB, and 165 of them have a coding score on the category page. 5 ranked models have no file size on record, so they are not listed.
Read the memory figure as an estimate, not a guarantee. The memory a model needs is estimated from its file: the weights plus about 20% for the context of a single conversation. It is not a measurement, and a long conversation or several at once needs more. A model with no file size on record is not counted as fitting any amount of memory. Speeds, and the GPU memory shown on the speed page, were measured on this benchmark's server, not on yours. That server kept 1 to 8 answers in flight at a time and loaded a context window of 16,384 tokens for most models; 42 of the models ranked ran at a shorter context. Speeds were measured on one laptop and are comparable only between models on the same backend. See the settings and the memory method.
Up to 16 GB
Gemma 4 12B IT leads here with 98.2 on a scale of 0 to 100; its Overall is 98.6 (95% interval 97.0–99.8), needing about 8.9 GB (file size plus 20%).
| Place | Model | Coding (0 to 100) | Overall | Rank range | Decode (tok/s) | Memory needed (GB, est.) | Size class |
|---|---|---|---|---|---|---|---|
| 1 | Gemma 4 12B IT | 98.230 of 30 items scored | 98.697.0–99.8 | 1–12 | 8.1ROCm 7.1 | 8.9 | 9–16B |
| 2 | Gemma4 E4B IT | 89.930 of 30 items scored | 95.593.0–97.7 | 2–51 | 13.2ROCm 7.1 | 7.9 | 4–9B |
| 3 | Ministral 3 14B Instruct (2512) | 87.530 of 30 items scored | 92.790.0–95.2 | 9–61 | 5.6ROCm 7.1 | 10.9 | 9–16B |
| 4 | phi-4 | 87.030 of 30 items scored | 85.981.9–89.8 | 39–99 | 5.0ROCm 7.1 | 10.9 | 9–16B |
| 5 | Granite4.2 8B | 85.130 of 30 items scored | 81.977.2–86.3 | 59–128 | 11.1ROCm 7.1 | 6.4 | 4–9B |
A higher place is not always a clear win. When two models have overlapping rank ranges, this battery cannot tell them apart; see how sure a score is. A dash means not measured or not scored, which is different from 0. Speeds were measured on one laptop and are comparable only between models on the same backend.
More: all the best-model pages, the hardware picker, speed and memory for every model.