Efficient Heterogeneous Large Language Model Decoding with Model-Attention Disaggregation

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Chen, Shaoyuan, Xiao, Wencong, Lin, Yutong, Zhang, Mingxing, Shan, Yingdi, Jiang, Jinlei, Chen, Kang, Wu, Yongwei
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916681804152832
author Chen, Shaoyuan
Xiao, Wencong
Lin, Yutong
Zhang, Mingxing
Shan, Yingdi
Jiang, Jinlei
Chen, Kang
Wu, Yongwei
author_facet Chen, Shaoyuan
Xiao, Wencong
Lin, Yutong
Zhang, Mingxing
Shan, Yingdi
Jiang, Jinlei
Chen, Kang
Wu, Yongwei
contents Transformer-based large language models (LLMs) exhibit impressive performance in generative tasks but also introduce significant challenges in real-world serving due to inefficient use of the expensive, computation-optimized accelerators. Although disaggregated serving architectures have been proposed to split different phases of LLM inference, the efficiency of decoding phase is still low. This is caused by the varying resource demands of different operators in the transformer-based LLMs. Specifically, the attention operator is memory-intensive, exhibiting a memory access pattern that clashes with the strengths of modern accelerators, especially for long context requests. To enhance the efficiency of LLM decoding, we introduce model-attention disaggregation. This approach leverages a collection of cheap, memory-optimized devices for the attention operator while still utilizing high-end accelerators for other parts of the model. This heterogeneous setup ensures that each component is tailored to its specific workload, maximizing overall performance and cost efficiency. Our comprehensive analysis and experiments confirm the viability of splitting the attention computation over multiple devices. Also, the communication bandwidth required between heterogeneous devices proves to be manageable with prevalent networking technologies. To further validate our theory, we develop and deploy Lamina, an LLM inference system that incorporates model-attention disaggregation in a distributed heterogeneous cluster. Experimental results indicate that Lamina can provide 16.1 ~ 90.1% higher estimated throughput than existing solutions with similar costs.
format Preprint
id arxiv_https___arxiv_org_abs_2405_01814
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Efficient Heterogeneous Large Language Model Decoding with Model-Attention Disaggregation
Chen, Shaoyuan
Xiao, Wencong
Lin, Yutong
Zhang, Mingxing
Shan, Yingdi
Jiang, Jinlei
Chen, Kang
Wu, Yongwei
Machine Learning
Distributed, Parallel, and Cluster Computing
Transformer-based large language models (LLMs) exhibit impressive performance in generative tasks but also introduce significant challenges in real-world serving due to inefficient use of the expensive, computation-optimized accelerators. Although disaggregated serving architectures have been proposed to split different phases of LLM inference, the efficiency of decoding phase is still low. This is caused by the varying resource demands of different operators in the transformer-based LLMs. Specifically, the attention operator is memory-intensive, exhibiting a memory access pattern that clashes with the strengths of modern accelerators, especially for long context requests. To enhance the efficiency of LLM decoding, we introduce model-attention disaggregation. This approach leverages a collection of cheap, memory-optimized devices for the attention operator while still utilizing high-end accelerators for other parts of the model. This heterogeneous setup ensures that each component is tailored to its specific workload, maximizing overall performance and cost efficiency. Our comprehensive analysis and experiments confirm the viability of splitting the attention computation over multiple devices. Also, the communication bandwidth required between heterogeneous devices proves to be manageable with prevalent networking technologies. To further validate our theory, we develop and deploy Lamina, an LLM inference system that incorporates model-attention disaggregation in a distributed heterogeneous cluster. Experimental results indicate that Lamina can provide 16.1 ~ 90.1% higher estimated throughput than existing solutions with similar costs.
title Efficient Heterogeneous Large Language Model Decoding with Model-Attention Disaggregation
topic Machine Learning
Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2405.01814