Manuscript Offprint

arXiv:2610.17531

Towards Green AI: Evaluating Energy Efficiency for Quantized LLM Inference

Petar Basta

Author's Declaration

I hereby declare that I am the sole author of this thesis. This is a true copy of the thesis, including any required final revisions, as accepted by my examiners.

I understand that my thesis may be made electronically available to the public.

ii

Abstract

While it is known that quantization of large language models (LLMs) reduces memory usage via lower-bit weights, studies quantifying the resulting impact on energy usage and carbon intensity are scarce. We present the first unified evaluation of weight-only quantization strategies for LLM inference across varying input/output lengths and GPUs, highlighting differences in energy efficiency in addition to accuracy degradation and runtime. We study quantized inference on Llama 2 7B, Phi 3.5 Mini Instruct, OLMo 1B, Qwen 2.5 7B, and Qwen 2.5 14B across GLUE MNLI, MMLU, HumanEval, and GSM8K datasets, evaluating 10 post-training quantization (PTQ) strategies on NVIDIA H100, A6000, A100, and L4 GPUs. We identify a novel trend showing that quantization techniques tend to exhibit peak energy efficiency relative to full-precision baselines when inputs are sufficiently long and outputs are short. Furthermore, we show that quantization strategies become marginally more energy-efficient relative to full-precision models as batch sizes increase, though gains are modest. Notably, fused-kernel implementations such as EETQ int8 and Bitsandbytes int8 offer the highest energy savings, up to 4× compared to FP32 on short text generation, with negligible accuracy loss. Finally, we observe that energy usage closely tracks runtime on our evaluated benchmarks, indicating that, in practice, latency optimization can serve as a reliable proxy for reducing the environmental footprint of LLM services. We conclude with suggested directions for strategically selecting low-carbon quantization strategies based on specific inference requirements.

iii

References (42)

  • Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phone
  • Language models in software development tasks: An experimental analysis of energy and accuracy (opens arXiv in a new tab)
  • Half-quadratic quantization of large machine learning models
  • Evaluating Large Language Models Trained on Code
  • Reducing the carbon impact of generative ai inference (today and in 2035)
  • Training Verifiers to Solve Math Word Problems
  • Quanto: a PyTorch quantization backend for Optimum
  • LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scale
  • QLoRA: Efficient Finetuning of Quantized LLMs
  • BERT: Pretraining of deep bidirectional transformers for language understanding
  • GPTQ: Accurate post-training quantization for generative pre-trained transformers
  • A Survey of Quantization Methods for Efficient Neural Network Inference, pages 291–326
  • OLMo: Accelerating the science of language models
  • ACT: Designing sustainable computer systems with an architectural carbon modeling tool
  • Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding
  • Measuring massive multitask language understanding
  • Improving carbon emissions of federated large language model inference through classification of task-specificity
  • Characterization of large language model development in the datacenter
  • Sustainable LLM inference for edge AI: Evaluating quantized LLMs for energy efficiency, output accuracy, and inference latency
  • A comprehensive evaluation of quantization strategies for large language models
  • TPU v4: An optically reconfigurable supercomputer for machine learning with hardware support for embeddings
  • Efficient memory management for large language model serving with pagedattention
  • Evaluating quantized large language models
  • Awq: Activation-aware weight quantization for on-device llm compression and acceleration
  • Deep neural networks compression: A comparative survey and choice recommendations
  • Towards sustainable large language model serving
  • PyTorch-native training-to-serving model optimization (opens arXiv in a new tab)
  • Efficiently scaling transformer inference
  • Improving language understanding by generative pre-training
  • Benchmarking emerging deep learning quantization methods for energy efficiency
  • Exploring quantization techniques for large-scale language models: Methods, challenges and future directions
  • Efficient post-training quantization with FP8 formats
  • On the limitations of carbon-aware temporal and spatial workload shifting in the cloud
  • Triton: an intermediate language and compiler for tiled neural network computations
  • Llama 2: Open Foundation and Fine-Tuned Chat Models
  • Attention is all you need
  • GLUE: A multi-task benchmark and analysis platform for natural language understanding
  • Advances in the neural network quantization: A comprehensive review
  • Solving high-dimensional PDEs with latent spectral models
  • Qwen2.5 Technical Report
  • Zeus: Understanding and optimizing GPU energy consumption of DNN training
  • Spatial-temporal embodied carbon models for the embodied carbon accounting of computer systems