Green My LLM: Studying the key factors affecting the energy consumption of code assistants
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
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023StarCoder: may the source be with you!cited by 799
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
- 2023Counting Carbon: A Survey of Factors Influencing the Emissions of Machine Learningcited by 42
- 2024Learn to Code Sustainably: An Empirical Study on LLM-based Green Code Generationcited by 7
- 2024PePR: Performance Per Resource Unit as a Metric to Promote Small-Scale Deep Learning in Medical Image Analysiscited by 4
- 2024Deep Learning Models in Speech Recognition: Measuring GPU Energy Consumption, Impact of Noise and Model Quantization for Edge Deploymentcited by 1
Built on by
Citing papers per year: 2025: 3; 2026: 3.
6 papers.
- 2025COPA: Comparing the incomparable in multi-objective model evaluationcited by 3
- 2025Energy-Aware Code Generation with LLMs: Benchmarking Small vs. Large Language Models for Sustainable AI Programmingcited by 2
- 2025Aggregating empirical evidence from data strategy studies: a case on model quantizationcited by 1
- 2026Pimp My LLM: Leveraging Variability Modeling to Tune Inference Hyperparameterscited by 1
- 2026Attention to Detail: Evaluating Energy, Performance, and Accuracy Trade-offs Across vLLM Configurationscited by 1
- 2026From Perception to Action: Can UI Interventions Foster Sustainable LLM Chatbotcited by 0
- 2026Attention to Detail: Evaluating Energy, Performance, and Accuracy Trade-offs Across vLLM Configurations10 Jul 2026
- 2026From Perception to Action: Can UI Interventions Foster Sustainable LLM Chatbot9 Jun 2026
- 2026Pimp My LLM: Leveraging Variability Modeling to Tune Inference Hyperparameters6 Feb 2026
- 2025Energy-Aware Code Generation with LLMs: Benchmarking Small vs. Large Language Models for Sustainable AI Programming10 Aug 2025
- 2025Aggregating empirical evidence from data strategy studies: a case on model quantization1 May 2025
- 2025COPA: Comparing the incomparable in multi-objective model evaluation18 Mar 2025
Similar, not cited
Close in wording, no citation either way
- 2025Toward Green Code: Prompting Small Language Models for Energy-Efficient Code Generation
- 2025GREEN-CODE: Learning to Optimize Energy Efficiency in LLM-based Code Generation
- 2026"ENERGY STAR" LLM-Enabled Software Engineering Tools ↗
- 2026Evaluating the Environmental Impact of using SLMs and Prompt Engineering for Code Generation ↗
- 2026Watts This Smell: A Comprehensive Taxonomy of Software Energy Smells
- 2026Beyond FLOPs: Energy-Aware Knowledge Distillation for Sustainable LLMs on Code-Related Task
- 2025Benchmarking Energy Efficiency of Large Language Models Using vLLM
- 2026Characterizing Performance-Energy Trade-offs of Large Language Models in Multi-Request Workflows