mlsanityData to 7 Oct 2026

Dissecting the Runtime Performance of the Training, Fine-tuning, and Inference of Large Language Models

arXiv 2311.03687 ↗First posted 7 Nov 2023cs.PF cs.CL cs.LGcited by 12

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2023GPT-4 Technical Reportcited by 18,132
  4. 2022Training language models to follow instructions with human feedbackcited by 15,712
  5. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  6. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  7. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  8. 2020Scaling Laws for Neural Language Modelscited by 6,411
  9. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  10. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  11. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  12. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
28 more
  1. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
  2. 2022Training Compute-Optimal Large Language Modelscited by 2,927
  3. 2023A Survey of Large Language Modelscited by 2,537
  4. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
  5. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
  6. 2023MME: A Comprehensive Evaluation Benchmark for Multimodal Large Language Modelscited by 1,624
  7. 2019Root Mean Square Layer Normalizationcited by 1,425
  8. 2023A Survey on Evaluation of Large Language Modelscited by 1,227
  9. 2017Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learningcited by 935
  10. 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 621
  11. 2022Using DeepSpeed and Megatron to Train Megatron-Turing NLG 530B, A Large-Scale Generative Language Modelcited by 557
  12. 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 517
  13. 2022DeepSpeed Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scalecited by 403
  14. 2021ZeRO-Offload: Democratizing Billion-Scale Model Trainingcited by 339
  15. 2022Reducing Activation Recomputation in Large Transformer Modelscited by 300
  16. 2021ZeRO-Infinity: Breaking the GPU Memory Wall for Extreme Scale Deep Learningcited by 253
  17. 2023Challenges and Applications of Large Language Modelscited by 251
  18. 2023A Comprehensive Survey of AI-Generated Content (AIGC): A History of Generative AI from GAN to ChatGPTcited by 221
  19. 2019MLPerf Inference Benchmarkcited by 195
  20. 2019Checkmate: Breaking the Memory Wall with Optimal Tensor Rematerializationcited by 90
  21. 2023On the Planning Abilities of Large Language Models (A Critical Investigation with a Proposed Benchmark)cited by 85
  22. 2022A Survey on Model Compression and Acceleration for Pretrained Language Modelscited by 45
  23. 2016Benchmarking State-of-the-Art Deep Learning Software Toolscited by 17
  24. 2017Performance Modeling and Evaluation of Distributed Deep Learning Frameworks on GPUscited by 13
  25. 2020Characterizing and Modeling Distributed Training with Transient Cloud GPU Serverscited by 8
  26. 2017Performance Evaluation of Deep Learning Tools in Docker Containerscited by 4
  27. 2020AIPerf: Automated machine learning as an AI-HPC benchmarkcited by 2
  28. 2022Benchmark Assessment for DeepSpeed Optimization Librarycited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 5; 2025: 4; 2026: 2.

12 papers.