Dissecting the Runtime Performance of the Training, Fine-tuning, and Inference of Large Language Models
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) have seen great advance in both academia and industry, and their popularity results in numerous open-source frameworks and techniques in accelerating LLM pre-training, fine-tuning, and inference. Training and deploying LLMs are expensive as it requires considerable computing resources and memory, hence many efficient approaches have been developed for improving system pipelines as well as operators. However, the runtime performance can vary significantly across hardware and software stacks, which makes it difficult to choose the best configuration. In this work, we aim to benchmark the performance from both macro and micro perspectives. First, we benchmark the end-to-end performance of pre-training, fine-tuning, and serving LLMs in different sizes , i.e., 7, 13, and 70 billion parameters (7B, 13B, and 70B) on three 8-GPU platforms with and without individual optimization techniques, including ZeRO, quantization, recomputation, FlashAttention. Then, we dive deeper to provide a detailed runtime analysis of the sub-modules, including computing and communication operators in LLMs. For end users, our benchmark and findings help better understand different optimization techniques, training and inference frameworks, together with hardware platforms in choosing configurations for deploying LLMs. For researchers, our in-depth module-wise analyses discover potential opportunities for future work to further optimize the runtime performance of LLMs.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 40 of its 54 references that are in the map. First posted on arXiv 7 Nov 2023.
Builds on
40 of 54 references.
References · 40
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
28 more
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
- 2022Training Compute-Optimal Large Language Modelscited by 2,927
- 2023A Survey of Large Language Modelscited by 2,537
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
- 2023MME: A Comprehensive Evaluation Benchmark for Multimodal Large Language Modelscited by 1,624
- 2019Root Mean Square Layer Normalizationcited by 1,425
- 2023A Survey on Evaluation of Large Language Modelscited by 1,227
- 2017Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learningcited by 935
- 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 621
- 2022Using DeepSpeed and Megatron to Train Megatron-Turing NLG 530B, A Large-Scale Generative Language Modelcited by 557
- 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 517
- 2022DeepSpeed Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scalecited by 403
- 2021ZeRO-Offload: Democratizing Billion-Scale Model Trainingcited by 339
- 2022Reducing Activation Recomputation in Large Transformer Modelscited by 300
- 2021ZeRO-Infinity: Breaking the GPU Memory Wall for Extreme Scale Deep Learningcited by 253
- 2023Challenges and Applications of Large Language Modelscited by 251
- 2023A Comprehensive Survey of AI-Generated Content (AIGC): A History of Generative AI from GAN to ChatGPTcited by 221
- 2019MLPerf Inference Benchmarkcited by 195
- 2019Checkmate: Breaking the Memory Wall with Optimal Tensor Rematerializationcited by 90
- 2023On the Planning Abilities of Large Language Models (A Critical Investigation with a Proposed Benchmark)cited by 85
- 2022A Survey on Model Compression and Acceleration for Pretrained Language Modelscited by 45
- 2016Benchmarking State-of-the-Art Deep Learning Software Toolscited by 17
- 2017Performance Modeling and Evaluation of Distributed Deep Learning Frameworks on GPUscited by 13
- 2020Characterizing and Modeling Distributed Training with Transient Cloud GPU Serverscited by 8
- 2017Performance Evaluation of Deep Learning Tools in Docker Containerscited by 4
- 2020AIPerf: Automated machine learning as an AI-HPC benchmarkcited by 2
- 2022Benchmark Assessment for DeepSpeed Optimization Librarycited by 1
Built on by
Citing papers per year: 2023: 1; 2024: 5; 2025: 4; 2026: 2.
12 papers.
- 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systemscited by 101
- 2024LISA: Layerwise Importance Sampling for Memory-Efficient Large Language Model Fine-Tuningcited by 88
- 2024Understanding the Performance and Estimating the Cost of LLM Fine-Tuningcited by 48
- 2024Should We Really Edit Language Models? On the Evaluation of Edited Language Modelscited by 18
- 2024BAM! Just Like That: Simple and Efficient Parameter Upcycling for Mixture of Expertscited by 16
- 2025Semantic Integrity Matters: Benchmarking and Preserving High-Density Reasoning in KV Cache Compressioncited by 16
- 2025DiffAdapt: Difficulty-Adaptive Reasoning for Token-Efficient LLM Inferencecited by 11
- 2025LLLMs: A Data-Driven Survey of Evolving Research on Limitations of Large Language Modelscited by 9
- 2026The Efficiency Frontier: A Unified Framework for Cost-Performance Optimization in LLM Context Managementcited by 6
- 2024On the Compressibility of Quantized Large Language Modelscited by 4
- 2026MeMo: Memory as a Modelcited by 4
- 2025The Role of Visualization in LLM-Assisted Knowledge Graph Systems: Effects on User Trust, Exploration, and Workflowscited by 0
- 2026The Efficiency Frontier: A Unified Framework for Cost-Performance Optimization in LLM Context Management21 May 2026
- 2026MeMo: Memory as a Model14 May 2026
- 2025DiffAdapt: Difficulty-Adaptive Reasoning for Token-Efficient LLM Inference22 Oct 2025
- 2025LLLMs: A Data-Driven Survey of Evolving Research on Limitations of Large Language Models25 May 2025
- 2025The Role of Visualization in LLM-Assisted Knowledge Graph Systems: Effects on User Trust, Exploration, and Workflows20 May 2025
- 2025Semantic Integrity Matters: Benchmarking and Preserving High-Density Reasoning in KV Cache Compression4 Feb 2025
- 2024Should We Really Edit Language Models? On the Evaluation of Edited Language Models24 Oct 2024
- 2024BAM! Just Like That: Simple and Efficient Parameter Upcycling for Mixture of Experts15 Aug 2024
- 2024Understanding the Performance and Estimating the Cost of LLM Fine-Tuning8 Aug 2024
- 2024LISA: Layerwise Importance Sampling for Memory-Efficient Large Language Model Fine-Tuning26 Mar 2024
- 2024On the Compressibility of Quantized Large Language Models3 Mar 2024
- 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systems23 Dec 2023