<link rel="stylesheet" href="styles.f3b1fba60ec7970c.css">

Modelo de reducción de la huella de carbono en la nube para servicios de inferencia de modelos de lenguaje de gran escala (LLMs)

dc.contributor.advisorSalcedo Parra, Octavio Jose
dc.contributor.authorCalle Torres, Julian David
dc.contributor.orcidSalcedo Parra, Octavio Jose [0000-0002-0767-8522]
dc.creator.emailjdcallet@gmail.com
dc.creator.emailoctavionetworking@gmail.com
dc.creator.id20181495002
dc.date.accessioned2026-03-05T20:09:58Z
dc.date.available2026-03-05T20:09:58Z
dc.date.created2026-02-27
dc.descriptionLa rápida expansión de los modelos de lenguaje de gran escala ha revolucionado el campo de la inteligencia artificial, aunque también ha generado un impacto ambiental considerable y que sigue en aumento día a día. Si bien el entrenamiento de estos modelos suele recibir mucha atención por su alto consumo energético, la fase de inferencia, que se ejecuta de manera continua con millones de solicitudes cada día, puede acumular un impacto ambiental que supera al del entrenamiento. Esta investigación se centra en reducir la huella de carbono de los servicios de inferencia de estos modelos, diseñando, implementando y evaluando un sistema de computación consciente del carbono funcionando en infraestructuras multi-nube. El problema principal radica en que los sistemas de enrutamiento actuales sólo consideran aspectos como latencia, disponibilidad y costo, sin tomar en cuenta la variabilidad espacial y temporal de la intensidad de carbono en la red eléctrica. Dicha variabilidad es significativa: la misma consulta puede ocasionar hasta diez veces más emisiones dependiendo de la región donde se procese y el momento del día, debido a las diferencias en la mezcla energética local. Esto presenta tanto un reto como una oportunidad: un enrutamiento consciente del carbono, que incorpore esta información junto con métricas tradicionales, podría lograr reducciones sustanciales sin afectar la eficiencia inherente de los modelos o del hardware donde se ejecuta la aplicación o servicio. Para abordar este desafío, la investigación utiliza el enfoque metodológico de Design Science Research, articulado en cinco etapas: desde una revisión minuciosa de la literatura, pasando por el diseño arquitectónico, hasta la implementación de un prototipo funcional, evaluaciones experimentales y difusión de resultados a distintas audiencias. El modelo diseñado consta de dos capas, la capa de control y la capa de inferencia, la primera de ellas se compone de cuatro módulos: una capa de análisis e inteligencia de carbono que recolecta y normaliza datos de múltiples fuentes (ElectricityMaps y WattTime), un enrutador que aplica un algoritmo con un puntaje multi-objetivo balanceando intensidad del carbono, latencia, uso y costo, un sistema de telemetría para observabilidad integral, y un módulo de gobernanza que permite adaptar las prioridades según las necesidades de cada organización. El algoritmo asigna un puntaje ponderado a cada posible región de ejecución, considerando intensidad de carbono (priorizando regiones con baja IC), latencia, utilización actual y costo, con pesos configurables para reflejar distintas prioridades organizacionales. Se garantizan restricciones estrictas para que la latencia máxima nunca se exceda, incluso si eso implica elegir una región más cercana pero más contaminante. Los experimentos se llevaron a cabo en 3 regiones de AWS durante 1 semana, con cargas sintéticas basadas en distribuciones reales de tipos de solicitud. Se estudiaron variables como tipo de carga (por lote o interactiva), ventana temporal y ubicación geográfica. Se midieron emisiones, latencias en distintos percentiles, rendimiento, costos y tasas de error. Los resultados confirman que el enfoque es viable y eficiente, pero bajo ciertas circunstancias: se alcanzó una reducción promedio del 12.7% en emisiones comparado con enrutamiento convencional, con un aumento del 8.1% en latencia P95. Sin embargo, los promedios ocultan variaciones: por ejemplo, en cargas por lotes la reducción llegó al 18.3% y la latencia solo aumentó 5.8%, mientras que en inferencia interactiva con modelos pequeños, la reducción fue menor y el aumento de latencia más notable, requiriendo evaluación cuidadosa. También se detectó que operar fuera de horas pico, en la noche, optimiza resultados, mejorando latencias mientras reduce emisiones. Otro hallazgo importante, es que el costo no es un factor determinante a la hora de implementar modelos conscientes del carbono, esto se debe principalmente a la alta homogeneidad en los precios de las diferentes regiones de los grandes proveedores de nube, en este caso AWS. En conclusión, esta investigación aporta puntos de referencia amplios, protocolos metodológicos, principios conceptuales y teorías para prever condiciones de efectividad, sirviendo como base para adoptar y avanzar en computación consciente del carbono. Se ofrecen también recomendaciones para organizaciones, investigadores y gerentes de sostenibilidad, y se señalan futuras direcciones estratégicas para acelerar el impacto y escalabilidad de estas tecnologías. Este trabajo demuestra que es posible reducir la huella ambiental de la inteligencia artificial de forma significativa y práctica, pero lograr un cambio real exige superar barreras técnicas, organizacionales y culturales, además del desarrollo de ecosistemas de soporte, regulaciones adecuadas y una visión compartida de sostenibilidad como eje central.
dc.description.abstractThe rapid expansion of Large Language Models (LLMs) has revolutionized the field of artificial intelligence, although it has also generated a considerable environmental impact that continues to rise daily. While the training of these models often receives significant attention due to its high energy consumption, the inference phase, which runs continuously with millions of requests each day, can accumulate an environmental impact that surpasses that of training. This research focuses on reducing the carbon footprint of inference services for these models by designing, implementing, and evaluating a carbon-aware computing system operating on multi-cloud infrastructures. The main problem lies in the fact that current routing systems only consider aspects such as latency, availability, and cost, disregarding the spatial and temporal variability of carbon intensity in the electrical grid. This variability is significant: the same query can cause up to ten times more emissions depending on the region where it is processed and the time of day, due to differences in the local energy mix. This presents both a challenge and an opportunity: carbon-aware routing, which incorporates this data alongside traditional metrics, could achieve substantial reductions without affecting the inherent efficiency of the models or the hardware hosting the application or service. To address this challenge, the research employs the Design Science Research methodological approach, articulated in five stages: from a thorough literature review and architectural design to the implementation of a functional prototype, experimental evaluations, and the dissemination of results to various audiences. The designed model consists of two layers: the control layer and the inference layer. The control layer comprises four modules: a carbon intelligence and analysis layer that collects and normalizes data from multiple sources (ElectricityMaps and WattTime); a router that applies a multi-objective scoring algorithm balancing carbon intensity, latency, usage, and cost; a telemetry system for comprehensive observability; and a governance module that allows for the adaptation of priorities according to each organization's needs. The algorithm assigns a weighted score to each possible execution region, considering carbon intensity (prioritizing regions with low CI), latency, current utilization, and cost, with configurable weights to reflect different organizational priorities. Strict constraints are guaranteed to ensure maximum latency is never exceeded, even if this implies selecting a closer but more polluting region. Experiments were conducted across 3 AWS regions over one week, using synthetic loads based on real distributions of request types. Variables such as load type (batch or interactive), time window, and geographic location were studied. Emissions, percentile latencies, throughput, costs, and error rates were measured. The results confirm that the approach is viable and efficient, albeit under certain circumstances: an average reduction of 12.7% in emissions was achieved compared to conventional routing, with an 8.1% increase in P95 latency. However, averages conceal variations: for instance, in batch loads, the reduction reached 18.3% with only a 5.8% increase in latency, whereas in interactive inference with small models, the reduction was smaller and the latency increase more notable, requiring careful evaluation. It was also detected that operating during off-peak hours (at night) optimizes results, improving latencies while reducing emissions. Another significant finding is that cost is not a determining factor when implementing carbon-aware models. This is mainly due to the high homogeneity in pricing across different regions of major cloud providers, in this case, AWS. In conclusion, this research provides broad benchmarks, methodological protocols, conceptual principles, and theories to foresee conditions of effectiveness, serving as a foundation for adopting and advancing carbon-aware computing. Recommendations are also offered for organizations, researchers, and sustainability managers, pointing toward future strategic directions to accelerate the impact and scalability of these technologies. This work demonstrates that it is possible to reduce the environmental footprint of artificial intelligence significantly and practically. However, achieving real change requires overcoming technical, organizational, and cultural barriers, in addition to developing support ecosystems, appropriate regulations, and a shared vision of sustainability as a central axis.
dc.format.mimetypepdf
dc.identifier.urihttp://hdl.handle.net/11349/100618
dc.language.isospa
dc.publisherUniversidad Distrital Francisco José de Caldas
dc.relation.referencesAcun, B., Lee, B., Maeng, K., Chakkaravarthy, M., Gupta, U., Brooks, D., & Wu, C. J. (2022). Carbon explorer: A holistic approach for designing carbon-aware datacenters. IEEE Computer Architecture Letters, 21(1), 69–72.
dc.relation.referencesAminabadi, R. Y., Rajbhandari, S., Zhang, M., Awan, A. A., Li, C., Li, D., Zheng, E., Rasley, J., Smith, S., Ruwase, O., & He, Y. (2022). DeepSpeed inference: Enabling efficient inference of transformer models at unprecedented scale. Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis (SC '22). IEEE. https://doi.org/10.1109/SC41404.2022.00051
dc.relation.referencesAnthony, L. F., Kanding, B., & Selvan, R. (2020). Carbontracker: Tracking and predicting the carbon footprint of training deep learning models. En Proceedings of the 2020 ACM Conference on Computing and Sustainable Societies (COMPASS) (pp. 259–268). ACM.
dc.relation.referencesBashir, N., Gohil, V., Subramanya, A., Shahrad, M., Irwin, D., Olivetti, E., & Delimitrou, C. (2024). The sunk carbon fallacy: Rethinking carbon footprint metrics for effective carbon-aware scheduling. En Proceedings of the 2024 ACM Symposium on Cloud Computing (pp. 542-551). Association for Computing Machinery. https://doi.org/10.1145/3698038.3698542
dc.relation.referencesBashir, N., Guo, T., Hajiesmaili, M., Irwin, D., Shenoy, P., Sitaraman, R., Souza, A., & Wierman, A. (2021). Enabling sustainable clouds: The case for virtualizing the energy system. En Proceedings of the ACM Symposium on Cloud Computing (SoCC '21). Association for Computing Machinery. https://doi.org/10.1145/3472883.3487009
dc.relation.referencesBashir, N., Irwin, D., & Shenoy, P. (2023). Carbon-aware spatial workload shifting in the cloud. In Proceedings of the ACM Symposium on Cloud Computing.
dc.relation.referencesBrown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J. D., Dhariwal, P., ... & Amodei, D. (2020). Language models are few-shot learners. Advances in neural information processing systems, 33, 1877-1901.
dc.relation.referencesBuyya, R., Vecchiola, C., & Selvi, S. T. (2019). Mastering cloud computing: foundations and applications programming (2ª ed.). Morgan Kaufmann Publishers.
dc.relation.referencesCarbone4. (2024). Digital report: Cloudy with a chance of hidden emissions. https://www.carbone4.com/en/article-digital-cloud-hidden-emissions
dc.relation.referencesClimatiq. (2024). A guide to carbon-aware computing. https://www.climatiq.io/blog/a-guide-to-carbon-aware-computing
dc.relation.referencesCloud Carbon Footprint. (2024). Methodology. https://www.cloudcarbonfootprint.org/docs/methodology/
dc.relation.referencesDettmers, T., Lewis, M., Belkada, Y., & Zettlemoyer, L. (2022). LLM.int8(): 8-bit matrix multiplication for transformers at scale. Advances in Neural Information Processing Systems, 35, 30318-30332.
dc.relation.referencesElectricity Maps. (2023). Data Sources and Methodology. Recuperado de https://electricitymaps.com/methodology
dc.relation.referencesElectricity Maps. (2024). Carbon Intensity of Electricity: Direct vs. Lifecycle Emissions. Electricity Maps Documentation.
dc.relation.referencesFaiz, A., Kaneda, S., Wang, R., Osi, R., Sharma, P., Chen, F., & Jiang, L. (2023). LLMCarbon: Modeling the end-to-end carbon footprint of large language models.
dc.relation.referencesGregor, S., & Hevner, A. R. (2013). Positioning and presenting design science research for maximum impact. MIS Quarterly, 37(2), 337-355. https://doi.org/10.25300/MISQ/2013/37.2.01
dc.relation.referencesGupta, M., & Agrawal, P. (2021). Compression of deep learning models for Text: A Survey. IEEE Access, 10, 16365–16378.
dc.relation.referencesHarvard Data Science Review. (2023). Carbon emissions in the tailpipe of generative AI. Special Issue 5: Grappling with the Generative AI Revolution.
dc.relation.referencesHenderson, P., Hu, J., Romoff, J., Brunskill, E., Jurafsky, D., & Pineau, J. (2020). Towards the systematic reporting of the energy and carbon footprints of machine learning. Journal of Machine Learning Research, 21(248), 1-43. http://jmlr.org/papers/v21/20-312.html
dc.relation.referencesHevner, A. R., March, S. T., Park, J., & Ram, S. (2004). Design science in information systems research. MIS Quarterly, 28(1), 75-105. https://doi.org/10.2307/25148625
dc.relation.referencesHolistic AI. (2024). AI and ESG: Understanding the environmental impact of AI and LLMs. https://www.holisticai.com/blog/environmental-impact-ai-llms
dc.relation.referencesHorner, N., Shehabi, A., & Azevedo, I. (2016). Known unknowns: Indirect energy effects of information and communication technology. Environmental Research Letters, 11(10), 103001. https://doi.org/10.1088/1748-9326/11/10/103001
dc.relation.referencesHuang, Y., Cheng, Y., Bapna, A., Firat, O., Chen, M. X., Chen, D., Lee, H., Ngiam, J., Le, Q. V., Wu, Y., & Chen, Z. (2019). GPipe: Efficient training of giant neural networks using pipeline parallelism. Advances in Neural Information Processing Systems, 32.
dc.relation.referencesJayanetti, A., Halgamuge, S., & Rajkumar, B. (2024). Multi-agent deep reinforcement learning framework for renewable energy-aware workflow scheduling on distributed cloud data centers. IEEE Transactions on Parallel and Distributed Systems, 35(4), 604-615. https://doi.org/10.1109/TPDS.2024.3360448
dc.relation.referencesKaack, L. H., Jin, X., & Luccioni, A. (2022). Aligning Artificial Intelligence with climate change mitigation. Nature Climate Change, 12(6), 518–527.
dc.relation.referencesKwon, W., Li, Z., Zhuang, S., Sheng, Y., Zheng, L., Yu, C. H., Gonzalez, J., Zhang, H., & Stoica, I. (2023). Efficient memory management for large language model serving with PagedAttention. Proceedings of the 29th Symposium on Operating Systems Principles (SOSP '23), 611-626. ACM. https://doi.org/10.1145/3600006.3613165
dc.relation.referencesMasanet, E., Shehabi, A., Lei, N., Smith, S., & Koomey, J. (2020). Recalibrating global data center energy-use estimates. Science, 367(6481), 984-986. https://doi.org/10.1126/science.aba3758
dc.relation.referencesMoore, H., Qi, S., Hogade, N., Milojicic, D., Bash, C., & Pasricha, S. (2025). Sustainable carbon-aware and water-efficient LLM scheduling in geo-distributed cloud datacenters. En Proceedings of the Great Lakes Symposium on VLSI 2025 (pp. 929-934). Association for Computing Machinery. https://doi.org/10.1145/3716368.3735301
dc.relation.referencesMytton, D. (2020). Hiding greenhouse gas emissions in the cloud. Nature Climate Change, 13(3), 196-197.
dc.relation.referencesNarayanan, D., Shoeybi, M., Casper, J., LeGresley, P., Patwary, M., Korthikanti, V., Vainbrand, D., Kashinkunti, P., Bernauer, J., Catanzaro, B., Phanishayee, A., & Zaharia, M. (2021). Efficient large-scale language model training on GPU clusters using megatron-LM. Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis (SC '21). ACM. https://doi.org/10.1145/3458817.3476209
dc.relation.referencesPatterson, D., Gonzalez, J., Le, Q. V., Liang, C., Munguia, L. M., Rothchild, D., & Dean, J. (2021). Carbon emissions and large neural network training. arXiv preprint arXiv:2104.10350.
dc.relation.referencesPeterson Institute for International Economics (PIIE). (2024). AI's carbon footprint appears likely to be alarming. https://www.piie.com/blogs/realtime-economics/2024/ais-carbon-footprint-appears-likely-be-alarming
dc.relation.referencesPeffers, K., Tuunanen, T., Rothenberger, M. A., & Chatterjee, S. (2007). A design science research methodology for information systems research. Journal of Management Information Systems, 24(3), 45-77. https://doi.org/10.2753/MIS0742-1222240302
dc.relation.referencesPope, R., Douglas, S., Chowdhery, A., Devlin, J., Bradbury, J., Heek, J., Xiao, K., Agrawal, S., & Dean, J. (2023). Efficiently scaling transformer inference. Proceedings of Machine Learning and Systems, 5, 606-624.
dc.relation.referencesRadovanović, A., Koningstein, R., Schneider, I., Chen, B., Duarte, A., Roy, B., Xiao, D., Haridasan, M., Hung, P., Care, C., Talpey, T., & Mullen, E. (2021). Carbon-aware computing for datacenters. IEEE Transactions on Cloud Computing, 9(4), 1390–1403.
dc.relation.referencesRodrigues, E., Goldverg, J., & Kosar, T. (2025). Carbon-aware temporal data transfer scheduling across cloud datacenters. arXiv preprint arXiv:2506.04117. https://arxiv.org/abs/2506.04117
dc.relation.referencesRussell, S., & Norvig, P. (2021). Artificial Intelligence: A modern approach (4ª ed.). Pearson Education.
dc.relation.referencesSchwartz, R., Dodge, J., Smith, N. A., & Etzioni, O. (2020). Green AI. Communications of the ACM, 63(12), 54–63.
dc.relation.referencesSharma, P., & Fuerst, A. (2024). Accountable carbon footprints and energy profiling for serverless functions. En Proceedings of the 2024 ACM Symposium on Cloud Computing (pp. 522-541). Association for Computing Machinery. https://doi.org/10.1145/3698038.3698531
dc.relation.referencesShoeybi, M., Patwary, M., Puri, R., LeGresley, P., Casper, J., & Catanzaro, B. (2019). Megatron-LM: Training multi-billion parameter language models using model parallelism. arXiv preprint arXiv:1909.08053.
dc.relation.referencesSiler-Evans, K., Azevedo, I. L., & Morgan, M. G. (2012). Marginal emissions factors for the US electricity system. Environmental Science & Technology, 46(9), 4742-4748. https://doi.org/10.1021/es300145v
dc.relation.referencesSouza, A., Bashir, N., Murillo, J., Hanafy, W., Liang, Q., Irwin, D., & Shenoy, P. (2023). Ecovisor: A virtual energy system for carbon-efficient applications. En Proceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2 (pp. 252-265). Association for Computing Machinery. https://doi.org/10.1145/3575693.3575702
dc.relation.referencesStrubell, E., Ganesh, A., & McCallum, A. (2019). Energy and policy considerations for deep learning in NLP. En Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics (pp. 3645–3650). ACL.
dc.relation.referencesSukprasert, T., Souza, A., Bashir, N., Irwin, D., & Shenoy, P. (2024). On the limitations of carbon-aware temporal and spatial workload shifting in the cloud. En Proceedings of the 2024 ACM SIGOPS European Conference on Computer Systems (EuroSys '24) (pp. 924-941). Association for Computing Machinery. https://doi.org/10.1145/3627703.3650089
dc.relation.referencesTabaeiaghdaei, S., Scherrer, S., Kwon, J., & Perrig, A. (2023). Carbon-aware global routing in path-aware networks. En Proceedings of the 14th ACM International Conference on Future Energy Systems (e-Energy '23) (pp. 144-158). Association for Computing Machinery. https://doi.org/10.1145/3575813.3595192
dc.relation.referencesThiede, J., Bashir, N., Irwin, D., & Shenoy, P. (2023). Carbon containers: A system-level facility for managing application-level carbon emissions. En Proceedings of the 2023 ACM Symposium on Cloud Computing (SoCC '23) (pp. 17-31). Association for Computing Machinery. https://doi.org/10.1145/3472883.3487009
dc.relation.referencesTranberg, B., Corradi, O., Lajoie, B., Gibon, T., Staffell, I., & Andresen, G. B. (2019). Real-time carbon accounting method for the European electricity markets. Energy Strategy Reviews, 26, 100367.
dc.relation.referencesVenable, J., Pries-Heje, J., & Baskerville, R. (2016). FEDS: A framework for evaluation in design science research. European Journal of Information Systems, 25(1), 77-89. https://doi.org/10.1057/ejis.2014.36
dc.relation.referencesvom Brocke, J., Hevner, A., & Maedche, A. (2020). Introduction to Design Science Research. En J. vom Brocke, A. Hevner, & A. Maedche (Eds.), Design Science Research. Cases (pp. 1-13). Springer. https://doi.org/10.1007/978-3-030-46781-4_1
dc.relation.referencesWattTime. (2022). Automated Emissions Reduction: Methodology and Validation. Recuperado de https://www.watttime.org/aer-methodology
dc.relation.referencesWiesner, P., Behnke, I., Scheinert, D., Gontarska, K., & Thamsen, L. (2021). Let's wait awhile: How temporal workload shifting can reduce carbon emissions in the cloud. En Proceedings of the 22nd International Middleware Conference (Middleware '21) (pp. 260-272). Association for Computing Machinery. https://doi.org/10.1145/3464298.3493399
dc.rights.accesoAbierto (Texto Completo)
dc.rights.accessrightsOpenAccess
dc.subjectComputación consciente del carbono
dc.subjectModelos de lenguaje de gran escala
dc.subjectInferencia de LLMs
dc.subjectComputación sostenible
dc.subjectIntensidad de carbono
dc.subjectCloud computing multi-proveedor
dc.subjectOptimización multi-objetivo
dc.subjectHuella de carbono
dc.subjectInteligencia artificial sostenible
dc.subject.keywordCarbon-aware computing
dc.subject.keywordLarge language models
dc.subject.keywordLLM inference
dc.subject.keywordSustainable computing
dc.subject.keywordCarbon intensity
dc.subject.keywordMulti-provider cloud computing
dc.subject.keywordMulti-objective optimization
dc.subject.keywordCarbon footprint
dc.subject.keywordSustainable artificial intelligence
dc.subject.lembMaestría en Ciencias de la Información y las Comunicaciones Metodología Profundización -- Tesis y disertaciones académicas
dc.subject.lembModelos de lenguaje de gran escala
dc.subject.lembComputación en la nube
dc.subject.lembHuella de carbono
dc.subject.lembComputación sostenible
dc.subject.lembOptimización de sistemas informáticos
dc.subject.lembArquitectura de sistemas distribuidos
dc.titleModelo de reducción de la huella de carbono en la nube para servicios de inferencia de modelos de lenguaje de gran escala (LLMs)
dc.title.titleenglishA carbon footprint reduction model in the cloud for large language model (LLM) inference services
dc.typemasterThesis
dc.type.coarhttp://purl.org/coar/resource_type/c_7a1f
dc.type.degreeMonografía
dc.type.driverinfo:eu-repo/semantics/bachelorThesis

Archivos

Bloque original

Mostrando 1 - 2 de 2
Cargando...
Miniatura
Nombre:
Tesis-JulianCalle-VersionFinal.docx (1).pdf
Tamaño:
6,06 MB
Formato:
Adobe Portable Document Format
Cargando...
Miniatura
Nombre:
Licencia de Uso - Julian Calle.pdf
Tamaño:
299,43 KB
Formato:
Adobe Portable Document Format

Bloque de licencias

Mostrando 1 - 1 de 1
Cargando...
Miniatura
Nombre:
license.txt
Tamaño:
7 KB
Formato:
Item-specific license agreed upon to submission
Descripción: