ISO: Overlap of Computation and Communication within Seqenence For LLM Inference

Bin Xiao, Lei Su
9/4/2024
cs.DCcs.CLcs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

In the realm of Large Language Model (LLM) inference, the inherent structure of transformer models coupled with the multi-GPU tensor parallelism strategy leads to a sequential execution of computation and communication. This results in substantial underutilization of computing resources during the communication phase. To mitigate this inefficiency, various techniques have been developed to optimize the use of computational power throughout the communication process. These strategies primarily involve overlapping matrix computations and communications, as well as interleaving micro-batches across different requests. Nonetheless, these approaches either fall short of achieving ideal overlap or impose certain limitations on their application. To overcome these challenges, this paper introduces a novel strategy for computation-communication overlap that operates at the sequence level. This method not only enhances the degree of overlap but also minimizes the constraints on its applicability. Experimental evaluations conducted using 30b/70b models have demonstrated significant improvements in efficiency. Specifically, the proposed technique has been shown to reduce time consumption by approximately 35% on 4090 GPU and by roughly 15% on A800 GPU during the prefill stage of LLM inference.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{xiao2024iso,
  title  = {ISO: Overlap of Computation and Communication within Seqenence For LLM Inference},
  author = {Bin Xiao and Lei Su},
  year   = {2024},
  eprint = {2409.11155},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.11155v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.11155.svg)](https://codeofpaper.com/paper/2409.11155)

Discussion