Mind the Memory Gap: Unveiling GPU Bottlenecks in Large-Batch LLM Inference

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Recasens, Pol G., Agullo, Ferran, Zhu, Yue, Wang, Chen, Lee, Eun Kyung, Tardieu, Olivier, Torres, Jordi, Berral, Josep Ll.
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866915383737319424
author Recasens, Pol G.
Agullo, Ferran
Zhu, Yue
Wang, Chen
Lee, Eun Kyung
Tardieu, Olivier
Torres, Jordi
Berral, Josep Ll.
author_facet Recasens, Pol G.
Agullo, Ferran
Zhu, Yue
Wang, Chen
Lee, Eun Kyung
Tardieu, Olivier
Torres, Jordi
Berral, Josep Ll.
contents Large language models have been widely adopted across different tasks, but their auto-regressive generation nature often leads to inefficient resource utilization during inference. While batching is commonly used to increase throughput, performance gains plateau beyond a certain batch size, especially with smaller models, a phenomenon that existing literature typically explains as a shift to the compute-bound regime. In this paper, through an in-depth GPU-level analysis, we reveal that large-batch inference remains memory-bound, with most GPU compute capabilities underutilized due to DRAM bandwidth saturation as the primary bottleneck. To address this, we propose a Batching Configuration Advisor (BCA) that optimizes memory allocation, reducing GPU memory requirements with minimal impact on throughput. The freed memory and underutilized GPU compute capabilities can then be leveraged by concurrent workloads. Specifically, we use model replication to improve serving throughput and GPU utilization. Our findings challenge conventional assumptions about LLM inference, offering new insights and practical strategies for improving resource utilization, particularly for smaller language models. The code is publicly available at https://github.com/FerranAgulloLopez/vLLMBatchingMemoryGap.
format Preprint
id arxiv_https___arxiv_org_abs_2503_08311
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Mind the Memory Gap: Unveiling GPU Bottlenecks in Large-Batch LLM Inference
Recasens, Pol G.
Agullo, Ferran
Zhu, Yue
Wang, Chen
Lee, Eun Kyung
Tardieu, Olivier
Torres, Jordi
Berral, Josep Ll.
Distributed, Parallel, and Cluster Computing
Machine Learning
Large language models have been widely adopted across different tasks, but their auto-regressive generation nature often leads to inefficient resource utilization during inference. While batching is commonly used to increase throughput, performance gains plateau beyond a certain batch size, especially with smaller models, a phenomenon that existing literature typically explains as a shift to the compute-bound regime. In this paper, through an in-depth GPU-level analysis, we reveal that large-batch inference remains memory-bound, with most GPU compute capabilities underutilized due to DRAM bandwidth saturation as the primary bottleneck. To address this, we propose a Batching Configuration Advisor (BCA) that optimizes memory allocation, reducing GPU memory requirements with minimal impact on throughput. The freed memory and underutilized GPU compute capabilities can then be leveraged by concurrent workloads. Specifically, we use model replication to improve serving throughput and GPU utilization. Our findings challenge conventional assumptions about LLM inference, offering new insights and practical strategies for improving resource utilization, particularly for smaller language models. The code is publicly available at https://github.com/FerranAgulloLopez/vLLMBatchingMemoryGap.
title Mind the Memory Gap: Unveiling GPU Bottlenecks in Large-Batch LLM Inference
topic Distributed, Parallel, and Cluster Computing
Machine Learning
url https://arxiv.org/abs/2503.08311