Coding agents on a 12 GB consumer GPU
This study reports what quantized open models finish on an ordinary gaming card, through which harness, and at what power draw.
Summary
- On a 12 GB card the mixture-of-experts model gpt-oss:20b had the highest mean through aider and one of the lowest GPU power draws, at 22% of the dense qwen3:14b's. A mixture-of-experts model uses only part of its parameters for each token.
- The harness effect from the cloud bake-off is also seen locally. The same weights score higher through aider than through the pi agent on the evals both ran. There are few evals per pair, and 3 of 4 intervals clear zero.
- Running a model as a 4-bit local build did not measurably lower its score against the same model served in the cloud, on the evals both ran. The intervals are wide (-25.1 to +22.7 and -17.9 to +18.8 points), so a small quantization cost is not ruled out.
Method
Each run is one agent working one eval through a harness (aider, pi, our squeezer loop or a multi-step pipeline) against a model served by Ollama on the card, serialized by a GPU lock so timing and power belong to one run. A sampler records GPU power, memory, utilisation and temperature once a second. The rubric then runs the produced code. Scores are the mean over evals of each eval's mean; intervals are a cluster bootstrap over evals. See Methods.
Scores through aider
runs.jsonl, host 4070, harness aider. Left out for having fewer than 8 evals: qwen3:8b (4).Show the numbers
| model | evals | runs | mean % | 95% CI | GPU W | Wh/task | VRAM peak | median wall |
|---|---|---|---|---|---|---|---|---|
| gpt-oss:20b | 36 | 38 | 93.9 | 87.8–98.4 | 42 | 0.68 | 11.3 GB | 57s |
| qwen3-coder:30b-a3b-q4_K_M | 25 | 30 | 79.3 | 67.0–89.2 | 36 | 0.4 | 11.4 GB | 52s |
| qwen3:14b | 23 | 26 | 78.7 | 64.0–90.6 | 188 | 5.22 | 11.3 GB | 81s |
| llama3.1:8b | 8 | 8 | 77.1 | 61.1–91.8 | 100 | 0.29 | 11.1 GB | 10s |
| devstral:24b | 8 | 10 | 63.6 | 40.3–85.3 | n/r | n/r | n/r | 180s |
| mistral-small:24b | 26 | 28 | 62.1 | 48.9–74.8 | 50 | 1.68 | 11.1 GB | 74s |
| qwen2.5:14b | 26 | 29 | 60.5 | 46.3–74.6 | 99 | 0.96 | 11.3 GB | 27s |
| phi4:14b | 8 | 8 | 12.3 | 0.6–30.6 | 101 | 2.88 | 11 GB | 97s |
| granite3.3:8b | 8 | 8 | 10.6 | 0.6–26.5 | 132 | 1.18 | 10.5 GB | 32s |
| qwen3:8b | 4 | 4 | 71.5 | too few evals | 164 | 2.38 | 10.9 GB | 18s |
Same weights, different harness
Show the numbers
| model | shared evals | pi % | aider % | aider − pi | 95% CI | verdict |
|---|---|---|---|---|---|---|
| qwen3-coder:30b-a3b-q4_K_M | 8 | 62.1 | 66.2 | 4.0 | -13.0–21.8 | Too wide to call |
| qwen3:14b | 7 | 28.0 | 69.1 | 41.0 | 18.8–63.6 | CI clears zero |
| gpt-oss:20b | 7 | 43.3 | 91.0 | 47.7 | 14.2–83.1 | CI clears zero |
| devstral:24b | 7 | 18.3 | 64.4 | 46.1 | 21.4–75.1 | CI clears zero |
Power draw
Peak VRAM is near the card's 12 GB for every model (the server fills the card), so memory does not separate them, and power does.
Local 4-bit vs the same model in the cloud
The same squeezer loop ran two models on the 4070 (Ollama, 4-bit) and through a cloud provider (higher precision) on the same evals. Each eval's local mean is paired with its cloud mean.
Show the numbers
| model | shared evals | 4070 q4 % | cloud % | difference | 95% CI |
|---|---|---|---|---|---|
| gpt-oss:20b | 15 | 62.3 | 62.7 | -0.4 | -25.1–22.7 |
| qwen3-coder:30b | 16 | 71.9 | 70.1 | 1.8 | -17.9–18.8 |
Limitations
- Eval coverage is unequal across models, and most cells have one trial.
- Sampling was not pinned (provider and Ollama defaults).
- Power is measured at the GPU board and leaves out the rest of the machine.
- Only one card was used. Results at other VRAM sizes are not measured here.
Data
runs.jsonl: rows with host = 4070 (or no host, for the oldest rows). Telemetry aggregates are under telemetry.
bin/energy-report --by-model # kWh and cost per model
bin/eval-list # local runs