mlsanityData to 7 Oct 2026

The Impact of Hyperparameters on Large Language Model Inference Performance: An Evaluation of vLLM and HuggingFace Pipelines

arXiv 2408.01050 ↗First posted 2 Aug 2024cs.SE cs.CL cs.LGcited by 5

Not on the map. Why?

Abstract (arXiv)

The recent surge of open-source large language models (LLMs) enables developers to create AI-based solutions while maintaining control over aspects such as privacy and compliance, thereby providing governance and ownership of the model deployment process. To utilize these LLMs, inference engines are needed. These engines load the model's weights onto available resources, such as GPUs, and process queries to generate responses. The speed of inference, or performance, of the LLM, is critical for real-time applications, as it computes millions or billions of floating point operations per inference. Recently, advanced inference engines such as vLLM have emerged, incorporating novel mechanisms such as efficient memory management to achieve state-of-the-art performance. In this paper, we analyze the performance, particularly the throughput (tokens generated per unit of time), of 20 LLMs using two inference libraries: vLLM and HuggingFace's pipelines. We investigate how various hyperparameters, which developers must configure, influence inference performance. Our results reveal that throughput landscapes are irregular, with distinct peaks, highlighting the importance of hyperparameter optimization to achieve maximum performance. We also show that applying hyperparameter optimization when upgrading or downgrading the GPU model used for inference can improve throughput from HuggingFace pipelines by an average of 9.16% and 13.7%, respectively.

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 30 of its 57 references that are in the map. First posted on arXiv 2 Aug 2024.

Builds on

30 of 57 references.

References · 30

  1. 2017Attention Is All You Needcited by 59,932
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  4. 2023Mistral 7Bcited by 3,065
  5. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  6. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
  7. 2024Mixtral of Expertscited by 1,785
  8. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
  9. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
  10. 2024A Survey on Large Language Models for Code Generationcited by 646
  11. 2023Textbooks Are All You Needcited by 561
  12. 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 559
18 more
  1. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
  2. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
  3. 2018An Empirical Model of Large-Batch Trainingcited by 268
  4. 2022Efficient Training of Language Models to Fill in the Middlecited by 248
  5. 2020IntelliCode Compose: Code Generation Using Transformercited by 225
  6. 2024A Survey on Efficient Inference for Large Language Modelscited by 197
  7. 2023From Words to Watts: Benchmarking the Energy Costs of Large Language Model Inferencecited by 168
  8. 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systemscited by 101
  9. 2022Productivity Assessment of Neural Code Completioncited by 97
  10. 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
  11. 2023A Survey on Large Language Models for Software Engineeringcited by 58
  12. 2024A Performance Study of LLM-Generated Code on Leetcodecited by 48
  13. 2024LLM Inference Serving: Survey of Recent Advances and Opportunitiescited by 46
  14. 2023Cost-Effective Hyperparameter Optimization for Large Language Model Generation Inferencecited by 40
  15. 2021Understanding Performance Problems in Deep Learning Systemscited by 12
  16. 2024Green AI: A Preliminary Empirical Study on Energy Consumption in DL Models Across Different Runtime Infrastructurescited by 11
  17. 2023Batching for Green AI -- An Exploratory Study on Inferencecited by 4
  18. 2020Hyperparameter Optimization for AST Differencingcited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 3.

5 papers.