mlsanityData to 14 Oct 2026

Green My LLM: Studying the key factors affecting the energy consumption of code assistants

arXiv 2411.11892 ↗First posted 7 Nov 2024cs.SE cs.AIcited by 6

Not on the map. Why?

Abstract (arXiv)

In recent years,Large Language Models (LLMs) have significantly improved in generating high-quality code, enabling their integration into developers' Integrated Development Environments (IDEs) as code assistants. These assistants, such as GitHub Copilot, deliver real-time code suggestions and can greatly enhance developers' productivity. However, the environmental impact of these tools, in particular their energy consumption, remains a key concern. This paper investigates the energy consumption of LLM-based code assistants by simulating developer interactions with GitHub Copilot and analyzing various configuration factors. We collected a dataset of development traces from 20 developers and conducted extensive software project development simulations to measure energy usage under different scenarios. Our findings reveal that the energy consumption and performance of code assistants are influenced by various factors, such as the number of concurrent developers, model size, quantization methods, and the use of streaming. Notably, a substantial portion of generation requests made by GitHub Copilot is either canceled or rejected by developers, indicating a potential area for reducing wasted computations. Based on these findings, we share actionable insights into optimizing configurations for different use cases, demonstrating that careful adjustments can lead to significant energy savings.

Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 8 of its 37 references that are in the map. First posted on arXiv 7 Nov 2024.

Builds on

8 of 37 references.

References · 8

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  2. 2021Program Synthesis with Large Language Modelscited by 3,637
  3. 2023StarCoder: may the source be with you!cited by 799
  4. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
  5. 2023Counting Carbon: A Survey of Factors Influencing the Emissions of Machine Learningcited by 42
  6. 2024Learn to Code Sustainably: An Empirical Study on LLM-based Green Code Generationcited by 7
  7. 2024PePR: Performance Per Resource Unit as a Metric to Promote Small-Scale Deep Learning in Medical Image Analysiscited by 4
  8. 2024Deep Learning Models in Speech Recognition: Measuring GPU Energy Consumption, Impact of Noise and Model Quantization for Edge Deploymentcited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 3.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Toward Green Code: Prompting Small Language Models for Energy-Efficient Code Generation
  2. 2025GREEN-CODE: Learning to Optimize Energy Efficiency in LLM-based Code Generation
  3. 2026"ENERGY STAR" LLM-Enabled Software Engineering Tools ↗
  4. 2026Evaluating the Environmental Impact of using SLMs and Prompt Engineering for Code Generation ↗
  5. 2026Watts This Smell: A Comprehensive Taxonomy of Software Energy Smells
  6. 2026Beyond FLOPs: Energy-Aware Knowledge Distillation for Sustainable LLMs on Code-Related Task
  7. 2025Benchmarking Energy Efficiency of Large Language Models Using vLLM
  8. 2026Characterizing Performance-Energy Trade-offs of Large Language Models in Multi-Request Workflows