System-performance and cost modeling of Large Language Model training and inference

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Guo, Wenzhe, Kundu, Joyjit, Tos, Uras, Kong, Weijiang, Sisto, Giuliano, Evenblij, Timon, Perumkunnil, Manu
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911036503752704
author Guo, Wenzhe
Kundu, Joyjit
Tos, Uras
Kong, Weijiang
Sisto, Giuliano
Evenblij, Timon
Perumkunnil, Manu
author_facet Guo, Wenzhe
Kundu, Joyjit
Tos, Uras
Kong, Weijiang
Sisto, Giuliano
Evenblij, Timon
Perumkunnil, Manu
contents Large language models (LLMs), based on transformer architectures, have revolutionized numerous domains within artificial intelligence, science, and engineering due to their exceptional scalability and adaptability. However, the exponential growth in LLM size and complexity has outpaced advancements in compute capacity, memory bandwidth, network performance, and cost efficiency, posing significant challenges to their scalability on distributed systems. To address these limitations, alternative model architectures, optimization strategies, communication-aware network topologies, and novel system design approaches have been proposed in literature. This paper introduces a performance-cost modeling methodology for LLM training and inference that integrates state-of-the-art compute techniques with memory optimizations, and latest communication techniques. Building on an analytical performance model, our approach incorporates recent innovations such as the flash attention technique and mixture of experts models to address the memory bandwidth and compute bottlenecks. It also considers the impact of different network topologies and topology-specific communication algorithms with 5D parallellism. The framework also integrates a chiplet cost model. The proposed modeling methodology provides valuable insights to guide future compute system design and facilitates hardware-software co-development, in particular due to its ability to analyze performance-cost trade-offs for various system architectural configurations.
format Preprint
id arxiv_https___arxiv_org_abs_2507_02456
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle System-performance and cost modeling of Large Language Model training and inference
Guo, Wenzhe
Kundu, Joyjit
Tos, Uras
Kong, Weijiang
Sisto, Giuliano
Evenblij, Timon
Perumkunnil, Manu
Hardware Architecture
Large language models (LLMs), based on transformer architectures, have revolutionized numerous domains within artificial intelligence, science, and engineering due to their exceptional scalability and adaptability. However, the exponential growth in LLM size and complexity has outpaced advancements in compute capacity, memory bandwidth, network performance, and cost efficiency, posing significant challenges to their scalability on distributed systems. To address these limitations, alternative model architectures, optimization strategies, communication-aware network topologies, and novel system design approaches have been proposed in literature. This paper introduces a performance-cost modeling methodology for LLM training and inference that integrates state-of-the-art compute techniques with memory optimizations, and latest communication techniques. Building on an analytical performance model, our approach incorporates recent innovations such as the flash attention technique and mixture of experts models to address the memory bandwidth and compute bottlenecks. It also considers the impact of different network topologies and topology-specific communication algorithms with 5D parallellism. The framework also integrates a chiplet cost model. The proposed modeling methodology provides valuable insights to guide future compute system design and facilitates hardware-software co-development, in particular due to its ability to analyze performance-cost trade-offs for various system architectural configurations.
title System-performance and cost modeling of Large Language Model training and inference
topic Hardware Architecture
url https://arxiv.org/abs/2507.02456