Greener Bytes: Exploring the Environmental Impact and Solutions for LLMs
Meetu Malhotra20:452025
Training GPT-3 took about 120 years of an average US household's energy
Training BERT emits about 284 tons of carbon dioxide, the lifetime emissions of five cars, and the models keep drawing power, usually from coal-based electricity, every hour they stay online. Meetu Malhotra, a Data Analytics Principal at S&P Global and data science PhD researcher, argues that every query you send carries a footprint. The open question is how to measure what your own code emits, and what actually shrinks it.
See how to measure your own model code's emissions and four ways to cut them
Meetu Malhotra introduces large language models, their uses and their general challenges, then focuses on the energy and carbon cost of training and running them. She argues that every query has an environmental footprint, shows how to estimate emissions with tools such as CodeCarbon, and points to smaller optimized models and green data centers as ways to reduce the impact.
“So to power these large language models, usually the fossil fuel coal based electricity is used instead of the greener options.”
“So large size of model means more energy that is required and which eventually means more carbon footprint.”
What you will learn
Explain in plain terms what large language models are, how the transformer architecture underpins them and where they are used.
Identify the main challenges of LLMs, including hallucination, training-data bias, privacy risk, context limits and weak logical reasoning.
Distinguish the energy demands of the training phase from those of inference, deployment, scaling and always-on operation.
Estimate the carbon emissions of your own model code with the CodeCarbon Python library.
Apply strategies such as pruning, quantization, distillation and green data centers to reduce the footprint of AI workloads.
Key takeaways from the speaker
The session will highlight the often-overlooked carbon footprint associated with everyday interactions with LLMs, emphasizing that even simple queries can have environmental implications.
The session will emphasize the importance of collective responsibility among researchers, developers, and users to ensure that the advancement of AI technologies aligns with sustainability goals.
Details
Level
Beginner
Format
Talk
Technical depth
Introductory technical
For
All career stages
Length
20:45
Published
July 2025
Questions this talk answers
How much carbon does training a large language model emit?
As the speaker cited, training BERT emits about 284 tons of carbon dioxide, equal to five cars over their lifetime, and training the 175-billion-parameter GPT-3 used energy that could power an average American household for about 120 years.
Where does the energy used by an LLM actually go?
It goes into two phases: training on massive data sets, which needs high power and cooling, and inference, where deployment, hardware, scaling and 24/7 availability keep consuming energy.
How can I measure the carbon emissions of my machine learning code?
Use the CodeCarbon Python library: start a tracker, run your code, stop the tracker and read the estimated emissions from the CSV file it produces. Online calculators can also estimate emissions from your hardware and task.
What can developers and organizations do to reduce LLM emissions?
Make models smaller through pruning, quantization and distillation, use green data centers, and integrate carbon tracking tools into their work.
Besides energy use, what are the main challenges of LLMs?
Hallucination, bias inherited from training data, high compute cost, data privacy risks, limited context length, weak logical reasoning and ethical misuse such as deepfakes.
About this talk
In an era where technology and sustainability must coexist, large language models (LLMs) have emerged as transformative tools across various industries, from healthcare to finance, education to entertainment. This presentation delves into the multifaceted landscape of LLMs, beginning with an introduction to their capabilities and diverse applications. As we explore the innovative use cases that highlight the profound impact of LLMs, we also confront the pressing challenges they pose, particularly regarding energy consumption and carbon emissions. With the increasing deployment of LLMs, understanding their environmental footprint becomes necessary. Through this presentation, I aim to foster a deeper awareness of this issue and outline a roadmap for minimizing the environmental impact of LLMs while maximizing their potential.
Measure and cut AI emissions with CodeCarbon (76 s)
Speaker: So yeah, the topics that I'm going to cover, it includes introduction to LLMs, use cases. I'll start with the generic challenges of LLMs and then I'll boil down to just the energy consumption or the carbon footprints that we all are leaving and then how we can quantify them and the strategies to reduce carbon emission. Speaker: So the large, so I'll start with the introduction, large language models.
So what large language models means. So these are deep neural networks that utilizes the transformer architecture, meaning, so transformer architecture was introduced in 2017 in a paper where attention is all you need. It was the topic of the paper where this transformer architecture was introduced. Speaker: And that was the base model, which every large language model utilizes.
Speaker: So at the core of large language models, these are generative in nature, meaning generic terms, you know, the generative artificial intelligence, meaning they are able to generate any kind of data, whether it's text data or video data, audio data, based on the patterns that they learn by, on which the data they are trained on. Speaker: So they can be used for different format of data.
Speaker: For example, we all deal with this. Speaker: We all must have used the GPT models. Speaker: The chat GPT models one that are series, which was introduced by OpenAI Gemini series. Speaker: It's by Google. Speaker: Then we have Lama series by Facebook, that recent one being Lama 4. Speaker: And based on different form of data, there are different kind of large language models available.
Speaker: For example, audio data, video data, images. Speaker: We have stable diffusion for images. Speaker: We have Dell E also from OpenAI time series data. Speaker: We have these different models for that. Speaker: Next on the slide you see is the remarkable journey of the innovation and growth that you can see over these years in large language models.
Speaker: I have taken this image from archive paper, which talks about comprehensive overview of large language models. Speaker: So it all started with GPT initial version, which was trained on millions of parameters with 512 token length to all the way to the recent GPT series, which is trained on billions of parameters, meaning there is increase in sheer size of the training parameters.
Speaker: And then the context length is like more than 8000. Speaker: So that's how they have grown in every subsequent year. Speaker: We see the change in these models. Speaker: They are getting better and better in terms of size, in terms of training, in terms of scalability, in terms of the kind of data that they can handle, in terms of the challenges that have been improved, the challenges faced by the initial version.
Speaker: Of course, they are overcome by the latest version. Speaker: So that's how we see immense growth in these large language models. Speaker: Here I'm talking about the transformer architecture. Speaker: Again, the image on the left, it is quite complex. Speaker: It is taken from attention is all you need paper, the very first paper when transformers were introduced.
Speaker: They were initially introduced for the very basic task, which was like machine translation. Speaker: And the idea was to capture the contextual meaning that is present in our tokens. Speaker: But eventually they lead to the development of large language models, which are not only encoder and decoder based, but some of them are like just encoder based, some decoder based, and some include both.
Speaker: So the chat GPT model that you see today that you interact with at your daily life, it is decoder only architecture. Speaker: And in next slide, I'm talking about the various applications of large language models that we see. Speaker: NLP does. So NLP stands for natural language processing. Speaker: Here I'm talking about just the text part of it, which means machine translation is something that is very common that we use all day to day.
Speaker: Basic if I have to interact with somebody who does not speak my language. Speaker: So just, you know, passing audio message in the phone in in my mobile and getting the language in the desired language, getting the response back in the desired language so that I can interact with the person that is, you know, machine learning in its life form.
Speaker: That is one of the applications of large language models that is doing the work in the back end. Speaker: And LLMs are also used for information retrieval. Speaker: So information retrieval as the name suggests that you want to retrieve information for any kind of document. Speaker: For example, I can provide PDFs to large language models and I can say, hey, I want the specific information out of these PDFs.
Speaker: Or other example could be if you have a meeting transcript with you and you want to, and you don't want to go through the whole transcript. Speaker: Rather, you can just pick up the bullet points and you can go through, you know, it can provide you the summarized form of that meeting notes and you can go through them.
Speaker: So that is the information retrieval that LLMs are used for. Speaker: Next is recommendation. Speaker: Netflix. Speaker: We all are using Amazon services. Speaker: We all are using. Speaker: So whatever product we put in our card based on or we shop based on the historical patterns, whatever movies we have seen. Speaker: These organization, these are using recommendation models in the back end that can suggest, okay, this is what the closest product look like that you might like.
Speaker: So they are used in recommendation also. Speaker: Then they are used in multi-model task also, meaning. Speaker: For example, chat GPT. Speaker: So initially it was like you provide it to text data. Speaker: It will response back in text data. Speaker: But now it's not like that. Speaker: You can provide the audio data, meaning you can talk or you can provide, let's say Google Lens.
Speaker: You can provide image data. Speaker: You can provide the picture and then you can ask, okay, tell me something about this picture. Speaker: Either in audio format or in just the text format or in video format, like more information. Speaker: So multi-model means they are talking about multiple kind of, they deal with multiple form of data.
Speaker: And these are the, that's the, another application. Speaker: Then there are LLMs based agents. Speaker: So LLMs are the, I would say backbone, meaning they do the logical reasoning, but agents are something that perform action. Speaker: So there are some agents out there that can do work for you. Speaker: For example, in simple way, you can relate it to Siri or Alexa, or if I give you an example, for example, you're putting application to different colleges, let's say.
Speaker: So what you will do, you will go to individual website of these colleges and you will, you know, enter all the details and you will submit the form. Speaker: What if there is an agent that is for you, you provide generic information, all the information to this agent saying that, Hey, this is my name, last name, email ID, and whatever information you use while submitting the form college application form.
Speaker: The agent will do that part for you, do that job for you, meaning submitting application for these multiple colleges for you. Speaker: So this is the power of LLMs, meaning you just provide them instructions, clear instructions, precise instructions, and they will do job for you. Speaker: And logically, the logical part of it will be taken care of by large language models.
Speaker: They are also used in evaluation. Speaker: So teachers or professors, they are using them, these large language models to grade the assignments or to create courses and get feedback on those courses. Speaker: So LLMs are providing all those services. Speaker: For example, University of San Diego in school of law, they are using large language models as an experiment for their classes.
Speaker: Next, I will talk about the challenges in LLMs. Speaker: So here I'm talking about the general challenges that we face, for example, hallucination. Speaker: And again, a lot of research has been, is being done on tackling these challenges. Speaker: So hallucination is one of the challenges that we face where large language models, they fabricate the information, meaning they are, we all know they are trained on immense amount of data, right?
Speaker: So if we ask question, it is quite a possibility that the large language model does not know, but surprisingly, it will never tell you that, hey, I don't know that this sort of information. Speaker: It will try its best to answer you for any kind of question that you provide to large Speaker: language model. Speaker: And that's where the fabrication of information comes in and that leads to misinformation.
Speaker: So that is one of the challenges bias in data. Speaker: So bias, meaning, um, we have, uh, uh, so we, the training data. Speaker: So whatever we will teach these large language models, whatever data we will train, uh, uh, these large language models on, if there is bias in that training data, it is automatically going to reflect in the answers generated by these large language models.
Speaker: For example, um, I tried Delhi asking, Hey, generate me the image of, uh, construction worker. Speaker: By default, it will always generate you the image of a man. Speaker: Generate me the image of nurse. Speaker: So generate me the image of a cook. Speaker: So it will generate an image of female. Speaker: So, so what I'm trying to say, these kinds of gender bias, they exist in our society also.
Speaker: And those societal, uh, norms or the bias that is, uh, reflected in training data. Speaker: And as a result, that is reflected in the answers provided by these large language models. Speaker: So these are, this is, this is just one of the examples that, um, uh, that show that LLMs, they have bias in their, uh, answers.
Speaker: Then there is high computational and energy cost. Speaker: Of course I cannot, if I need to work on large language model, I cannot use my normal computer. Speaker: I will have to rely on, um, GPUs. Speaker: So far that basically high computational is, uh, uh, resources are needed to run, uh, to train them. Speaker: And of course, to, uh, get inference out of them data privacy.
Speaker: So definitely there are some data privacy related risks associated. Speaker: If you accidentally put any of your, uh, uh, personal information in, in these, uh, while chatting with large language models, it is going to be exposed to the outside world. Speaker: The point is whatever chat we do with these large language models, like on chat GPT, whatever text you are entering, it is going back in the pool of that is used to pull up data that is used to train that model.
Speaker: So you are exposing whatever, uh, information you are putting it. Speaker: You are actually exposing it to the outside world. Speaker: So that's the data privacy concern there. Speaker: Context length limitation. Speaker: So context length is, um, how much it remembers. Speaker: In the past. Speaker: To give you the answer. Speaker: For example, if I start a story once upon a time, there was a princess name, blah, blah, blah.
Speaker: And then I keep on moving. Speaker: Right. Speaker: So after a certain point, that was the main challenge with these neural networks that they forget. Speaker: Okay. Speaker: What was the story about? Speaker: What was the name of that princess? Speaker: Meaning it will never remember where it all started. Speaker: So we need to expand the context lens so that the large language model or any model in the process.
Speaker: It remembers what it talked about. Speaker: So to increase that context length, of course, it comes at a price. Speaker: It comes with highly computational resources. Speaker: And so we have to increase the context. Speaker: And so again, a lot of research has been going on in here. Speaker: The latest GPT series model, they show context length of 8,000, 8,000 tokens.
Speaker: But I think a lot of research, for example, Finch, Finch is the research area where a lot of research they are doing where they are researchers are trying to increase the context length without, you know, impacting the pressure on the computational resources or without compromising with the accuracy. Speaker: Next is the lack of logical reasoning. Speaker: So they are no doubt they are good at generating data.
Speaker: But when it comes to logical reasoning, meaning breaking down the problem into logical steps, definitely large language models are not good at it. Speaker: So again, prompt engineering is something where to some extent these things can be taken care of with the chain of thoughts kind of prompt engineering techniques. Speaker: But a lot of times more complex problems, they are not handled well with the large language models.
Speaker: And then there are ethical concerns. Speaker: We all know the defake videos that are out there to spread the misinformation. Speaker: That is one of the use cases where that are related to the ethical concerns by large language models. Speaker: Although there are tools like MS video authenticator, but definitely that a lot of work needs to be done in this area to detect how large language to stop how large language models can be misused to spread misinformation.
Speaker: Next is about the carbon footprint. Speaker: So what exactly it is? Speaker: It is the amount of total gas emission that is put out specifically not generic gas emission. Speaker: I would say carbon dioxide that is put out by any activity that we do. Speaker: So I have placed here a link that I will share in the chat later that you can go through.
Speaker: It talks about how our normal query that we are putting to large language model is actually creating a lot of carbon footprint. Speaker: This is another stat that will give you an idea like how much of carbon emission is being done is emitted by these large language models. Speaker: So training the BERT model that we have, it emits like 284 tons of carbon dioxide, which is equivalent to the carbon dioxide emission by five cars in their entire lifetime.
Speaker: That's the kind of carbon that is being emitted. Speaker: And another stat, which I have taken from this link, which shows the training of GPT-3 model, which was a 175 billion parameters. Speaker: It was equivalent to the energy that was released. Speaker: It was equivalent to the energy that can power American households, average American household for like 120 years.
Speaker: So where this energy is actually emitted. Speaker: So in large language models, we have two phases. Speaker: One is like training phase where you energy is a lot of computational resources and carbon footprints are emitted. Speaker: And then there is inference phase when the model is trained and now you are asking the model, okay, perform so and so task for me, like machine learning translation or sentiment analysis or whatever.
Speaker: So training phase. Speaker: These large language models, like we discussed in earlier slides that they are trained on massive amount of data, meaning the GPT models. Speaker: If you see they are trained on like literally every information that you see on Internet, it is present in the training model. Speaker: It is used in training those GPT models on any other model.
Speaker: So having that amount of data, of course, high power usage is required. Speaker: So there is a simple formula to it, like large model size, meaning more number of parameters on which you are or more huge amount of data on which you are training the model. Speaker: That reflects the size of the model. Speaker: So large size of model means more energy that is required and which eventually means more carbon footprint.
Speaker: That's the simple understanding that I have with respect to large language models. Speaker: And then the environmental impact of impact. Speaker: So to power these large language models, usually the fossil fuel coal based electricity is used instead of the greener options. Speaker: In fact, on that note, recently Amazon made this announcement that they will move. Speaker: They will switch to nuclear energy to power their data centers instead of using the coal based energy sources cooling requirement.
Speaker: Of course, there is a lot of heat generated when whenever any queries put to these large language models, they answer us back. Speaker: And during this process, a lot of energy is released and to keep the devices cool. Speaker: We need these cooling system that again release energy. Speaker: In fact, recently Sam Altman said that when I think that Ghibli images trend was too much of online.
Speaker: There was a lot of popularity in that trend. Speaker: And then Sam Altman said that our servers are literally melting because of the usage. Speaker: So a lot of people were using that feature of GPT and because of which there was a lot of pressure on the servers that there was a lot of heat that was generated.
Speaker: And to keep them cool, you know, a lot of resources were being used. Speaker: Another is where, like I said, the next phase is inference phase or you can say testing phase. Speaker: So now once the training is done, now you are using the data set or checking these model capabilities on different tasks. Speaker: And you are checking.
Speaker: So for that, there is operational cost involved, meaning you have the model with you, but now you want to deploy that large language model. Speaker: Again, it is energy intensive. Speaker: You need hardware resources. Speaker: Also, you need a lot of computational resources to make it run. Speaker: And Hugging Face is one of the platform that showcase a lot of large language models, which are open source.
Speaker: One can use it there and see how much of energy they don't run on your normal computer. Speaker: They you need. Speaker: I specifically use Google pro subscription, but there are the point is I need to buy different resources for that to make that make it run the GPU resources. Speaker: Scalability to put these large language models to production.
Speaker: Of course, they should be scalable because they are continuously emerging today. Speaker: You see 175 K tokens of context, then tomorrow there will be more. Speaker: So it is keep on increasing. Speaker: Right. Speaker: So the point is. Speaker: We need the kind of setup that can handle the increasing needs of this large language models, increasing size of this large language models.
Speaker: And then these runs 24 by 7, meaning any time of the day you can put query to charge GPT and you will get the answer. Speaker: So at the back end, the large language model is running continuously, which is consuming a lot of energy. Speaker: And then, of course, there is a lot of carbon footprints associated with it.
Speaker: And then how you can quantify like how much of energy is being released by these carbon models, by these large language models. Speaker: So code carbon is one of the Python library that can be used to estimate the carbon emission. Speaker: For example, if I need to check, if I need to see how much of carbon is being emitted, I will put my code in a chunk.
Speaker: I will say tracker.start tracker.end and in between, I can run my code. Speaker: At the end, I will get a CSV file, which will showcase, okay, this much of carbon has been emitted. Speaker: There are these two websites also where you can put the information related to hardware and data and inference that the kind of problem that you are dealing with, Speaker: trying to solve text classification or machine learning transfer translation.
Speaker: And it will give you an idea how much of carbon is being emitted by your specific activity. Speaker: Strategies include the optimizing the algorithm, meaning you can make it small instead of using large language models. Speaker: You can make small like pruning, quantization and distillation. Speaker: These are the techniques that one can use. Speaker: You can use green data centers.
Speaker: Like I said, Amazon is moving to nuclear energy, and then you can integrate it with carbon tracking tools. Speaker: Like I just suggested code carbon, et cetera. Speaker: So that's the key takeaway. the end.
Transcribed automatically; names checked against the speaker record. Select a time to jump there.
Article based on this talk
How Big Is the Carbon Footprint of Large Language Models, and What Can We Do About It?
Meetu Malhotra explains where LLM energy goes, how to measure it and which practical steps make AI greener.
In short
Large language models carry a real environmental cost, and it starts with the everyday queries people send them. Meetu Malhotra, Data Analytics Principal at S&P Global, walks through what LLMs are, where their energy goes during training and inference, and how developers can measure and reduce emissions with tools such as CodeCarbon and techniques such as pruning, quantization and distillation.
Key takeaways
The session highlights the often-overlooked carbon footprint associated with everyday interactions with LLMs, emphasizing that even simple queries can have environmental implications.
The session emphasizes the importance of collective responsibility among researchers, developers and users to ensure that the advancement of AI technologies aligns with sustainability goals.
What large language models are and why they matter
Malhotra opens with a beginner-friendly grounding. Large language models are deep neural networks built on the transformer architecture, introduced in 2017 in the paper "Attention Is All You Need". Originally designed for machine translation, transformers grew into encoder, decoder and combined models; the ChatGPT models people use daily are decoder-only. She traces the rapid growth from the first GPT version, trained on millions of parameters with a 512-token context, to recent models with billions of parameters, and names families such as OpenAI's GPT series, Google's Gemini, Meta's Llama, Stable Diffusion and DALL-E.
She then surveys the applications: translating a conversation on a phone, pulling specific information from PDFs, summarizing meeting transcripts, powering recommendations on Netflix and Amazon, handling images through tools like Google Lens, and helping teachers grade assignments. Agents, she explains, take this further by acting on a user's behalf, for example filling in several college application forms from one set of details.
"So this is the power of LLMs, meaning you just provide them instructions, clear instructions, precise instructions, and they will do job for you." (7:30)
The challenges that come with the power
Before turning to energy, Malhotra lists the general challenges researchers are still working on. Models hallucinate because they rarely admit they do not know an answer. They reflect bias in their training data: when she asked DALL-E for a construction worker, it produced a man, while a nurse or a cook came out as a woman.
"By default, it will always generate you the image of a man." (9:32)
She adds data privacy risk when personal details are typed into chat tools, limits on context length, weak step-by-step logical reasoning (partly helped by chain-of-thought prompting) and ethical misuse such as deepfake videos. High computational and energy cost sits in this list too, and it becomes the focus of the rest of the talk.
Where the carbon comes from
Malhotra defines carbon footprint as the carbon dioxide put out by any activity, then shares figures shown on her slides. As the speaker cited, training BERT emits about 284 tons of carbon dioxide, and training GPT-3, with 175 billion parameters, used energy equivalent to powering an average American household for about 120 years.
"So training the BERT model that we have, it emits like 284 tons of carbon dioxide, which is equivalent to the carbon dioxide emission by five cars in their entire lifetime." (14:01)
She separates the footprint into two phases. In training, models learn from vast amounts of internet data, and her rule of thumb is simple.
"So large size of model means more energy that is required and which eventually means more carbon footprint." (15:45)
The source of electricity matters as well. She notes that fossil-fuel and coal-based power is commonly used, and mentions Amazon's announcement that it will move its data centers to nuclear energy. Cooling is another hidden cost: she recalls Sam Altman saying OpenAI's servers were "literally melting" during the Ghibli-style image trend.
Inference, scaling and always-on services
The second phase, inference, carries its own operating cost. Deploying a model needs specialized hardware and GPU resources that a normal computer cannot supply; she points to Hugging Face as a place to explore open-source models and their demands. Models must also scale as context windows and model sizes keep growing, and they serve users around the clock.
"So at the back end, the large language model is running continuously, which is consuming a lot of energy." (18:53)
Measuring and reducing emissions
Malhotra's practical advice starts with measurement. The CodeCarbon Python library lets developers start a tracker, run their code, stop the tracker and receive a CSV file estimating the emissions produced. She also mentions online calculators where users enter their hardware and task, such as text classification or translation, to get an estimate.
For reduction, she outlines three levers: optimize the algorithm by making models smaller through pruning, quantization and distillation; run workloads in green data centers; and build carbon tracking tools into everyday development.
"Strategies include the optimizing the algorithm, meaning you can make it small instead of using large language models." (20:04)
The message for researchers, developers and users alike is that sustainability is a shared responsibility, and that it begins with knowing the cost of each model and each query.
Watch the talk
"Greener Bytes: Exploring the Environmental Impact and Solutions for LLMs" by Meetu Malhotra, 21 minutes: https://www.womentech.net/video/greener-bytes-exploring-environmental-impact-and-solutions-llms-meetu-malhotra
About the speaker
Meetu Malhotra is Data Analytics Principal at S&P Global, with more than 17 years of experience, and is a researcher pursuing a PhD in Data Science at Harrisburg University of Science and Technology. She holds a master's in data science from UNC Charlotte, is an IEEE Senior member, and is active in publishing, peer reviewing, writing tech books and articles, and speaking.
Questions this talk answers
How much carbon does training a large language model emit?
Where does the energy used by an LLM actually go?
How can I measure the carbon emissions of my machine learning code?
What can developers and organizations do to reduce LLM emissions?
Besides energy use, what are the main challenges of LLMs?
Drafted with AI from the talk transcript. Editor review pending.
Frameworks and ideas mentioned
Transformer architecture
Chain-of-thought prompting
Pruning
Quantization
Knowledge distillation
Resources mentioned
Attention Is All You Need (paper)
arXiv paper: A Comprehensive Overview of Large Language Models
CodeCarbon (Python library)
Hugging Face
Microsoft Video Authenticator
Cite this talk
Meetu Malhotra. "Greener Bytes: Exploring the Environmental Impact and Solutions for LLMs." WomenTech Network, 2025. https://www.womentech.net/video/greener-bytes-exploring-environmental-impact-and-solutions-llms-meetu-malhotra