TensorX
返回文献探索

Paper · arXiv 2401.02669

Infinite-LLM: Efficient LLM Service for Long Context with DistAttention and Distributed KVCache

Bin Lin, Tao Peng, Chen Zhang, Minmin Sun, Lanbo Li, Hanyu Zhao, Wencong Xiao, Qi Xu, Xiafei Qiu, Shen Li, Zhigang Ji, Yong Li, Wei Lin

17 upvotesJanuary 5, 2024arXiv 预印本
AI 摘要

DistKV-LLM, a distributed LLM serving system using DistAttention, improves cloud-based LLM performance and context length handling through optimized resource management.

Large Language ModelsLLMsLLM servicedynamic auto-regressive naturelong context lengthsdistributed attention algorithmKV CacheDistAttentionDistKV-LLMGPUCPUdata centerend-to-end throughputcontext lengths

Abstract

The rapid proliferation of Large Language Models (LLMs) has been a driving force in the growth of cloud-based LLM services, which are now integral to advancing AI applications. However, the dynamic auto-regressive nature of LLM service, along with the need to support exceptionally long context lengths, demands the flexible allocation and release of substantial resources. This presents considerable challenges in designing cloud-based LLM service systems, where inefficient management can lead to performance degradation or resource wastage. In response to these challenges, this work introduces DistAttention, a novel distributed attention algorithm that segments the KV Cache into smaller, manageable units, enabling distributed processing and storage of the attention module. Based on that, we propose DistKV-LLM, a distributed LLM serving system that dynamically manages KV Cache and effectively orchestrates all accessible GPU and CPU memories spanning across the data center. This ensures a high-performance LLM service on the cloud, adaptable to a broad range of context lengths. Validated in a cloud environment with 32 NVIDIA A100 GPUs in configurations from 2 to 32 instances, our system exhibited 1.03-2.4x end-to-end throughput improvements and supported context lengths 2-19x longer than current state-of-the-art LLM service systems, as evidenced by extensive testing across 18 datasets with context lengths up to 1,900K.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
Infinite-LLM: Efficient LLM Service for Long Context with DistAttention and Distributed KVCache | TensorX