mlsanityData to 24 Nov 2026

Choosing Quantized Code LLMs by File Size and Energy per Solved Task

arXiv 2611.17605 ↗Submitted 13 Nov 2026cs.SE cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

A developer running a code assistant on a laptop downloads one model file, and local inference moves the energy of every request onto that machine. A common rule says a larger model at lower precision tends to beat a smaller one at higher precision. We ran 24 GGUF files of Qwen2.5-Coder at four sizes on a fanless MacBook Air M2 and priced each in energy per solved task on 542 EvalPlus tasks. The result is a selection guide indexed by Ollama's listed file size, with an evidence label on each pick. At 1 and 2 GB it picks the q4_K_M files of the 1.5B and 3B models, both on the correctness and energy frontier under every accounting. At 3 GB as listed, the larger-model rule picks 7B-q2_K, the only measured 7B file that fits, and there it does not pay. That file brings no significant gain in solves over the 2 GB pick, 3B-q4_K_M, and the 90% CI limits any 3B-q4_K_M deficit to 2.4 points. Yet 7B-q2_K needs 2.03 times the energy per solved task on CPU, GPU and memory rails, or 1.66 to 1.81 times on whole-system power. On HumanEval+, five alternating session pairs give a ratio of 1.925 against 1.956 in the main grid. At 8 GB, 7B-q6_K buys a significant gain over the 2 GB pick at a higher energy price. From 1.5B up, q4_K_M trails the highest precision measured at its size by less than 3 points (90% CI). We release per-task results, power logs and the analysis script.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 18 of its 41 references that are in the map. Submitted 13 Nov 2026.

Builds on

18 of 41 references.

References · 18

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,938
  2. 2021Program Synthesis with Large Language Modelscited by 3,972
  3. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,530
  4. 2024Qwen2.5-Coder Technical Reportcited by 1,301
  5. 2022The case for 4-bit precision: k-bit Inference Scaling Lawscited by 265
  6. 2025Sustainable LLM Inference for Edge AI: Evaluating Quantized LLMs for Energy Efficiency, Output Accuracy, and Inference Latencycited by 36
  7. 2025Intelligence per Watt: Measuring Intelligence Efficiency of Local AIcited by 18
  8. 2024An exploration of the effect of quantisation on energy consumption and inference time of StarCoder2cited by 5
  9. 2024Evaluating Quantized Large Language Models for Code Generation on Low-Resource Language Benchmarkscited by 4
  10. 2025Evaluating the Impact of Post-Training Quantization on Large Language Models for Code Generationcited by 4
  11. 2026Broken on Arrival: Non-Functional Quantized LLM Artifacts in Public Model Registries and How to Catch Themcited by 3
  12. 2025A Systematic Evaluation of On-Device LLMs: Quantization, Performance, and Resourcescited by 2
6 more
  1. 2026Saying, Not Knowing: Aggressively GGUF-Quantized Small Language Models Still Write Rare Words They Can No Longer Definecited by 2
  2. 2026Compiling Code LLMs into Lightweight Executablescited by 1
  3. 2026SynConfRoute: Syntax-Aware Routing for Efficient Code Completion with Small CodeLLMscited by 1
  4. 2026Smaller Models, Unexpected Costs: Trade-offs in LLM Quantization for Automated Program Repaircited by 1
  5. 2026Quantize with Confidence? An Empirical Study of Quantization for Code Generationcited by 1
  6. 2026What You Sign Is Not What You Run: The Verifiability Gap in Quantized LLM Supply Chainscited by 1

Built on by

Not cited yet.