This study presents a combined cost and life cycle assessment to model the development and use of AI models across different hardware systems. For clarity, Fig S1 and Table S1 provides an overview of the aspects included in the analysis and highlights the most relevant parameters considered.
Cost assessment
For the cost assessment, a high-level process-based cost model (PBCM) was selected. Similar approaches have already been applied in previous studies18,19,25. The PBCM was considered suitable because it estimates costs from the bottom up based on technical parameters, thereby breaking down a complex and still underexplored problem into smaller calculation steps. This is beneficial because it allows the use of established technical data in cases where real-world operational data is limited or unavailable. In addition, the approach provides transparency by showing which parameters contribute most to the total costs.
To make the results of the cost analysis and the LCA comparable, all costs are normalized to the generation of 5 million tokens. The inference cost calculation is based on two key parameters, namely \({h}_{\text{G}\text{P}\text{U}}^{m,i}\), which represents the number of GPU-hours needed to generate the defined token under an assumed utilization rate of 70%, and \({C}_{\text{G}\text{P}\text{U}\_\text{h}}^{i}\), which denotes the unit cost per GPU-hour for the selected hardware configuration. The number of required GPU-hours varies with both the AI model \(m\) and the hardware configuration \(i\), while the cost per GPU-hour is determined by the selected hardware configuration. Accordingly, the total inference costs are calculated by multiplying the estimated GPU-hours associated with generating 5 million tokens by the corresponding cost per GPU-hour, as shown in Eq. (1).
$${C}_{Inference}^{m,i}={h}_{GPU}^{m,i}*{C}_{GPU\_h}^{i}$$
(1)
To estimate the GPU-hours required for token generation, inference is divided into a prefill and a decode phase, as shown in Eq. (2), following the methodology presented in the studies by Erdil and Niu et al.50,51,52. The prefill phase processes the complete input prompt and is primarily compute-bound because it consists of highly parallelizable matrix operations. The decode phase generates output tokens sequentially, requiring repeated model execution for each new token. As this repeated access to model parameters is mainly limited by off-chip memory bandwidth, the decode phase is treated as memory-bound. To account for real-world memory-access inefficiencies, the theoretical decode-time estimates are adjusted using memory bandwidth utilization (MBU). Based on empirical measurements, we assume an MBU of 70%. This correction yields more realistic estimates of the total GPU-hours per model \(m\) and hardware configuration \(i\), as given in Eq. (2):
$${h}_{GPU}^{m,i}={h}_{Prefill}^{m,i}+\frac{{h}_{Decode}^{m,i}}{MBU}$$
(2)
The prefill time is estimated by relating the computational workload associated with processing the input tokens to the available computational performance of the underlying hardware, as shown in Eq. (3). In this equation, \({P}_{AI\:model}^{m}\) represents the parameter of the selected AI model \(m\), while \({P}_{GPU}^{i}\) denotes the computational performance of the selected GPU hardware \(i\). The factor of two accounts for the approximate number of floating-point operations required per model parameter during token processing. Finally, \({T}_{Input}\) represents the number of input tokens considered in the respective scenario.
$${h}_{Prefill}^{m,i}=\left(\frac{2*{P}_{AI\:model}^{m}}{{P}_{GPU}^{i}*3600}\right)*{T}_{Input}$$
(3)
The decode time is estimated by relating the model size in bytes to the available memory bandwidth of the selected GPU hardware, as shown in Eq. (4). In this equation, \(p\) defines the precision of the model parameters in bytes per parameter, and \({P}_{AI\:model}^{m}\) represents the number of parameters of the selected AI model \(m\). The term \({B}_{GPU}^{i}\) refers to the memory bandwidth of the selected GPU hardware \(i\), expressed in bytes per second, while \(b\) represents the batch size considered during decoding. Following the Roofline-based analysis by Yuan et al., a batch size of 64 is applied as a moderate assumption that captures the throughput benefits of decode batching while avoiding very large-batch regimes in which compute saturation and memory-capacity constraints become more dominant53,54. Finally, \({T}_{Output}\)expresses the number of output tokens generated in the respective scenario. This separation between prefill and decode enables a more transparent estimation of GPU-hours, as the two phases are constrained by different hardware bottlenecks.
$${h}_{Decode}^{m,i}=\left(\frac{p*{P}_{AI\:model}^{m}}{{B}_{GPU}^{i}*b*3600}\right)*{T}_{Output}$$
(4)
To calculate the total inference costs, the estimated number of GPU-hours must be combined with the corresponding cost per GPU-hour. The cost per GPU-hour for hardware configuration \(i\), denoted by \({C}_{GPU\_h}^{i}\), is determined by considering three main components10. The first component, \({C}_{Energy}^{i}\), represents the operational costs associated with the energy consumed per GPU-hour for the selected hardware. The second component, \({C}_{Depreciation}^{i}\), accounts for the infrastructure costs by allocating the acquisition costs of the GPU cards proportionally over their useful lifetime55,56 on a per-GPU-hour basis. The third component comprises the additional costs associated with maintenance (\({C}_{Maintenance}^{i}\)). The resulting calculation is shown in Eq. (5).
$${C}_{GPU\_h}^{i}={C}_{Energy}^{i}+{C}_{Depreciation}^{i}+{C}_{Maintenance}^{i}$$
(5)
The energy costs for hardware configuration \(i\), indicates by \({C}_{Energy}^{i}\), are calculated based on the thermal design power (TDP) of the respective GPU, \(TD{P}_{GPU}^{i}\), and the average electricity price per kWh in the United States, \({C}_{Electricity}\). \(TD{P}_{GPU}^{i}\) is used as an approximation of the power demand during GPU operation, as it represents the maximum heat output that the cooling system is designed to dissipate under load. To account for the additional energy consumption of the data-centre infrastructure, the GPU energy demand is multiplied by the power usage effectiveness (PUE), defined as the ratio of total facility energy to IT equipment energy. The PUE thus captures facility-level overhead such as cooling, power distribution and other supporting infrastructure, as shown in Eq. (6). The electricity demand of non-GPU server components, such as CPUs, memory and networking, is not explicitly included. Since the GPU power demand is approximated by its thermal design power (TDP), which typically exceeds the average power draw during operation, this omission is partly compensated.
$${C}_{Energy}^{i}={TDP}_{GPU}^{i}*{C}_{Electricity}*PUE$$
(6)
To account for infrastructure costs, the depreciation costs for hardware configuration \(i\), denoted by \({C}_{Depreciation}^{i}\), are calculated by distributing the investment costs of the GPUs over their expected useful lifetime while considering both depreciation and utilization. The term \({C}_{GPU}^{i}\) represents the acquisition cost of the selected GPU hardware \(i\), while \(cr{f}_{GPU}\) defines the capital recovery factor used to annualize the GPU investment costs. In addition, the GPU investment costs are multiplied by the server infrastructure factor
\({f}_{server}^{cost}\) which approximates the costs of additional server components beyond the GPUs themselves. This factor is intended to capture costs for supporting hardware such as CPUs, memory, storage, networking equipment, power supplies, and cooling-related components. Finally, \({u}_{GPU}^{i}\) represents the utilization of the selected GPU hardware, expressed in GPU-hours, and is used to allocate the infrastructure costs on a per-GPU-hour basis, as shown in Eq. (7). The calculation of \(cr{f}_{GPU}\) is provided in Eq. (8).
$${C}_{Depreciation}^{i}=\frac{{C}_{GPU}^{i}{*crf}_{GPU}*{f}_{server}^{cost}}{{u}_{GPU}^{i}}$$
(7)
$${crf}_{GPU}=\frac{interest*{(1+interest)}^{lifetime}}{{(1+interest)}^{lifetime}-1}$$
(8)
In addition to capital costs in the form of depreciation and energy costs, maintenance represents a further cost component. Maintenance costs are calculated as a fixed share \(m\) of the annualized hardware investment, with a maintenance rate of 5%30,31. Costs related to data-center construction, personnel, software licenses and network infrastructure outside the server are not included in the cost model.
$${C}_{Maintenance}^{i}=m*{C}_{Depreciation}^{i}$$
(9)
In addition to the inference costs, we calculate the training costs normalized to the common reference unit of \({N}_{\text{T}\text{o}\text{k}\text{e}\text{n}\text{s}}=5\times\:{10}^{6}\) tokens. The cost of 5 million training tokens is obtained by first estimating the total cost of the full training run and then attributing this cost over the total number of tokens processed during training:
$${C}_{Training}^{m,i}=\frac{{C}_{Train,total}^{m,i}}{{N}_{Train,total}^{m}}*{N}_{Tokens}$$
(10)
where \({C}_{\text{T}\text{r}\text{a}\text{i}\text{n}\text{i}\text{n}\text{g}}^{m,i}\)denotes the training cost scaled to the reference unit, \({C}_{\text{T}\text{r}\text{a}\text{i}\text{n},\text{t}\text{o}\text{t}\text{a}\text{l}}^{m,i}\) is the total cost of the full training run and \({N}_{\text{T}\text{r}\text{a}\text{i}\text{n},\text{t}\text{o}\text{t}\text{a}\text{l}}^{m}\) is the estimated total number of training tokens. The total training cost is derived from the total GPU time required for the full training run. Specifically, the reported training duration is multiplied by the number of GPUs used and by the levelized cost per GPU-hour of the respective hardware system.
$${C}_{Train,total}^{m,i}={h}_{Train}^{m}*{N}_{GPU}^{m}*{C}_{GPU\_h}^{i}$$
(11)
In this equation, \({h}_{\text{T}\text{r}\text{a}\text{i}\text{n}}^{m}\) is the reported training duration of model \(m\), \({N}_{\text{G}\text{P}\text{U}}^{m}\) corresponds to the number of GPU cards used during training, and \({C}_{GPU\_h}^{i}\) is the hardware-specific cost per effective GPU-hour. This formulation converts the reported training configuration into a total monetary training burden for each model-hardware scenario. Because the total number of training tokens is not always reported directly, it is inferred from the total training compute using the standard approximation that training requires approximately six floating-point operations per model parameter and token66. The resulting token count is calculated according to,
$${N}_{Train,total}^{m}=\frac{{P}_{Train,total}^{m}}{6*{P}_{AI\:model}^{m}}$$
(12)
where \({P}_{\text{T}\text{r}\text{a}\text{i}\text{n},\text{t}\text{o}\text{t}\text{a}\text{l}}^{m}\) denotes the total training compute of model \(m\). This conversion translates reported training compute into a token count, which is subsequently used to derive the cost per training token.
An overview of all input parameters for Eq. (1) to Eq. (20) can be found in Table S1 of the SI.
Life cycle assessment
LCA provides a standardized methodological framework for quantifying and evaluating the environmental impacts associated with a defined product system or service. According to ISO 14040 and ISO 14044, an LCA is structured into four main phases: definition of the goal and scope, compilation of the life cycle inventory (LCI), life cycle impact assessment (LCIA), and interpretation of the results. These steps are therefore addressed in the following section33. Since this study combines a cost assessment with an LCA, the structure of the environmental assessment is aligned with the methodological structure used for the cost analysis.
The objective of this study is to evaluate the environmental impacts associated with the generation of 5 million tokens. The assessment includes environmental burdens linked to the production of the required hardware infrastructure, as well as impacts associated with the development and use of the AI model. Based on this scope, the system boundary is defined as cradle-to-use. The analysis follows an attributional cut-off LCA approach, focusing on the direct physical flows of materials, energy, and emissions associated with the relevant life cycle stages of the considered system.
To ensure consistency with the cost assessment, the reference unit in this study is defined as the generation of 5 million tokens by a specific AI model operated on a given hardware system. Wherever applicable, identical parameter values are used in the cost and environmental assessments, including the assumed token workload, hardware utilization, power usage effectiveness and model-specific GPU-hour requirements. The life cycle inventory includes the material and energy flows required across the relevant stages of the system. The inventory data used in this study were primarily obtained from academic literature and the established environmental database Ecoinvent 3.11. Microsoft Excel was used to implement LCA calculations.
In the life cycle impact assessment phase, the material and energy flows from the LCI are translated into environmental impact indicators using established characterization methods. In this study, the Environmental Footprint method EF 3.1 is applied. This method provides results for 16 environmental impact categories, including freshwater ecotoxicity, human carcinogenic toxicity, and climate change expressed as global warming potential. Although all impact categories provide relevant insights, this study focuses primarily on climate change impacts, as this category is widely used in both scientific literature and policy discussions due to its high societal relevance.
The climate change impact is assessed using the GWP100 indicator. GWP100 expresses the contribution of greenhouse gas emissions to global warming over a 100-year time horizon. Emissions of different greenhouse gases, such as carbon dioxide, methane, and nitrogen oxides, are converted into carbon dioxide equivalents and aggregated into a single indicator. These emissions may occur during the production of infrastructure, the use phase of the AI model, and other upstream or downstream processes within the defined system boundary. This study accounts for scope 1, scope 2, and scope 3 emissions. Scope 1 and 2 emissions cover direct and energy-related indirect emissions, while scope 3 emissions include additional indirect emissions occurring along the upstream and downstream value chain. For completeness, all LCA-based results are provided in Section “Life Cycle Assessment” of the SI.
Following the same approach as for the calculation of inference costs, the climate change impacts of inference are determined based on the number of GPU-hours used for the defined token workload and the environmental impact per GPU-hour.
$${GWP100}_{Inference}^{m,i}={h}_{GPU}^{m,i}*{GWP100}_{GPU\_h}^{i}$$
(13)
The model- and hardware-specific GPU-hours are calculated based on the prefill and decode times using Eqs. (2), (3), and (4). The climate-change impact per GPU-hour, \({\text{G}\text{W}\text{P}100}_{GPU\_h}^{i}\), is calculated by combining operational impacts from electricity consumption with infrastructure-related impacts from GPU production assigned over the effective GPU-hours of the hardware and the maintenance. The sum of these three components defines the total climate change impact per GPU-hour for hardware configuration \(i\), as shown in Eq. (14).
$${GWP100}_{GPU\_h}^{i}={GWP100}_{Energy}^{i}+{GWP100}_{Depreciation}^{i}+{GWP100}_{Maintenance}^{i}$$
(14)
To determine the climate change impacts associated with the energy consumed per GPU-hour, the same logic as in Eq. (6) is applied, but expressed in environmentally rather than monetary terms. The term \(GWP10{0}_{Energy}^{i}\) denotes the climate change impact caused by the operational electricity demand of hardware configuration \(i\) expressed in kg CO2-eq. per kWh. The corresponding calculation is shown in Eq. (15).
$${GWP100}_{Energy}^{i}={TDP}_{GPU}^{i}*{GWP100}_{Electricity}*PUE$$
(15)
To account for the impacts associated with the production of the GPU infrastructure, the production-specific impacts of the selected GPU hardware are allocated over its useful lifetime (irf).
$${GWP100}_{Depreciation}^{i}=\frac{{GWP100}_{GPU}^{i}*{irf}_{GPU}*{f}_{server}^{impact}}{{u}_{GPU}^{i}}$$
(16)
$${irf}_{GPU}=\frac{1}{{Lifetime}_{GPU}}$$
(17)
Maintenance-related environmental impacts are also included using an approach consistent with the cost model, to be consistent.
$${GWP100}_{Maintenance}^{i}=m*{GWP100}_{Depreciation}^{i}$$
(18)
Besides the inference-related climate-change impact, we calculate the GWP100 impact of training normalized to the common reference unit of \({N}_{\text{T}\text{o}\text{k}\text{e}\text{n}\text{s}}=5\times\:{10}^{6}\) tokens. For the calculation of the environmental impacts of training tokens, we follow the same logic as in the cost assessment.
$${GWP100}_{Training}^{m,i}=\frac{{GWP100}_{Train,total}^{m,i}}{{N}_{Train,total}^{m}}*{N}_{Tokens}$$
(19)
The total training-relevant GWP100 impact is calculated from the full GPU-hour demand of the training run.
$${GWP100}_{Train,total}^{m,i}={h}_{Train}^{m}*{N}_{GPU}^{m}*{GWP100}_{GPU\_h}^{i}$$
(20)
In this equation, \({\text{G}\text{W}\text{P}100}_{\text{G}\text{P}{\text{U}}_{\text{h}}}^{i}\)is the hardware-specific climate-change impact per effective GPU-hour derived from the LCA. This formulation converts the reported training setup into a total GWP100 burden for each model–hardware scenario. The calculation of the number of training tokens follows the same approach as in the cost modelling.
Empirical validation of runtime estimates
To assess the reliability of our GPU-hour estimation approach, we validated the theoretically calculated runtimes against empirical measurements obtained under realistic inference conditions. Due to the available computational resources, we conducted the validation using LLaMA 3.1 8B57 on a single NVIDIA A100 PCIe 40 GB GPU22. Two conversational datasets, LMSYS58 and WildChat59, were used to approximate typical user-assistant interactions and therefore provide a representative basis for evaluating inference performance under realistic usage conditions (see Section 2 of the SI, Table S2). For both datasets, runtime was measured once using unbatched inference and once using batched inference with a batch size of 64. Consistent with the modelling assumptions, an input-to-output token ratio of approximately 1:3 was measured. For the LMSYS58 dataset, generating approximately 5 million tokens across around 10,000 requests, with an average of 118 input tokens and 386 output tokens per request, required 15.1 h in the unbatched setting. With a batch size of 64, the runtime decreased substantially to 0.61 h, demonstrating the substantial increase in inference throughput enabled by batching. Similar results were obtained for the WildChat59 dataset, where answering approximately 10,000 requests on the same A100 GPU required 14.4 h in the batch-size-1 setting. When the same workload under identical experimental conditions is evaluated using the equations described in the methods section, the theoretical runtime can be directly compared with the runtimes measured on the HPC. For a generation of 5 million tokens, the calculation yields a theoretical runtime of 15.33 GPU-hours in the unbatched setting. The deviation from the empirical measurements is approximately 1% for LMSYS and 6% for WildChat, supporting the validity of the GPU-hour estimation approach used in this study. While this validation was performed on a single GPU, LLaMA 3.1 405B and GPT-4 require multi-GPU deployments. Since the time per token scales with the number of parameters and the number of GPUs cancels out when results are expressed in GPU-hours, the approach can be transferred to these larger systems. However, communication overhead between GPUs is not captured, so our estimates for these models should be interpreted as lower bounds.