Decode Token Parallelism: Memory-Efficient Distributed Attention Parallelism for Scalable LLM Decoding
Susav Shrestha, Brad Settlemyer, Narasimha Reddy
Abstract
Serving large language models at high concurrency with long contexts requires KV-cache capacity and attention bandwidth that grow with the decode pool. Existing parallelization strategies trade one against the other: data parallelism replicates model weights, limiting KV capacity; tensor parallelism stops scaling attention at the model's KV-head count and pushes dense collectives across nodes; and decode context parallelism (DCP) recovers capacity by sharding the sequence but adds cross-node aggregation of partial attention results. We observe that during decode, dense layers and attention scale differently: dense layers amortize weight reads across the batch and run efficiently within a single NVLink domain, whereas attention cost grows with every active request's KV cache. We present Decode Token Parallelism (TKNP), a decode-pool architecture that decouples weight placement from attention ownership. TKNP distributes a single model copy across nodes in balanced layer blocks. The active node holding a block executes its projections and MLP for the full batch using intra-node tensor parallelism, while every node computes attention for its own requests against locally resident KV cache. This extends request-local attention across nodes without replicating weights: only current-token activations cross the network, dense all-reduces remain within NVLink, and attention requires no cross-node merging of partial results. Implemented in vLLM and evaluated on Llama 3.1 405B and Nemotron-4 340B on up to 64 H100 GPUs, TKNP improves completion throughput for long-context, high-concurrency workloads by up to 1.7× over DCP and by up to 2.06× over data parallelism at matched GPU count.
Create a lesson
Related papers
LeanSparse: Memory-Efficient Serving for Native Sparse-Attention LLMs
Shared title terminology · Zaifeng Pan, Chris Wu, Xinwei Qiang et al.
StarMPI-SVD: Distributed-Memory Parallel Star-M Tensor SVD
Shared title terminology · Naman Pesricha, Grey Ballard, Srinivas Eswar et al.
AscMLA: Unlocking FP4 Efficiency for Long-Context MLA Decoding through Asymmetric Scaling
Shared title terminology · Zechun Zhou, Zhiyong Zheng, Xiaomin Zhang et al.
Matching Architecture to Workload: Comparing RISC-V Parallel Accelerators for Energy-Efficient Embedded Computing
Shared title terminology · Luca Colombo, Luigi Ghionda, Amirhossein Kiamarzi et al.
LEDGE: An Efficient Simulator for Distributed LLM Serving on Heterogeneous Edge Devices
Shared title terminology · Zihao Wang, Ye Tian, Tajana Rosing et al.
DexAttention: Distributed Sparse Attention through Rapid Online Planning and Persistent GPU Execution
Shared title terminology · Sirui Chen, Xuehai Qian