Skip to main content
QUICK REVIEW

[Paper Review] EnergonAI: An Inference System for 10-100 Billion Parameter Transformer Models

Jiangsu Du, Ziming Liu|arXiv (Cornell University)|Sep 6, 2022
Parallel Computing and Optimization TechniquesComputer Science4 citations
TL;DR

EnergonAI is a high-performance, programmable inference system for 10–100 billion parameter Transformer models, leveraging a novel hierarchy-controller architecture to unify tensor and pipeline parallelism. It achieves superior latency and throughput through non-blocking pipeline parallelism, distributed redundant computation elimination, and peer memory pooling, outperforming FasterTransformer in variable-length inference and enabling larger model inference on single GPUs with minimal performance cost.

ABSTRACT

Large transformer models display promising performance on a wide range of natural language processing (NLP) tasks. Although the AI community has expanded the model scale to the trillion parameter level, the practical deployment of 10-100 billion parameter models is still uncertain due to the latency, throughput, and memory constraints. In this paper, we proposed EnergonAI to solve the challenges of the efficient deployment of 10-100 billion parameter transformer models on single- or multi-GPU systems. EnergonAI adopts a hierarchy-controller system architecture to coordinate multiple devices and efficiently support different parallel patterns. It delegates the execution of sub-models to multiple workers in the single-controller style and applies tensor parallelism and pipeline parallelism among the workers in a multi-controller style. Upon the novel architecture, we propose three techniques, i.e. non-blocking pipeline parallelism, distributed redundant computation elimination, and peer memory pooling. EnergonAI enables the users to program complex parallel code the same as a serial one. Compared with the FasterTransformer, we have proven that EnergonAI has superior performance on latency and throughput. In our experiments, EnergonAI can achieve 37% latency reduction in tensor parallelism, 10% scalability improvement in pipeline parallelism, and it improves the model scale inferred on a single GPU by using a larger heterogeneous memory space at cost of limited performance reduction.

Motivation & Objective

  • Address the performance and programmability gap in deploying large-scale Transformer models (10–100B parameters) on multi-GPU systems.
  • Overcome limitations of existing inference systems that are either too coupled (like C++/CUDA kernels) or inefficiently adapted from training systems.
  • Design a system that supports both tensor and pipeline parallelism with low communication overhead and high scalability.
  • Enable users to write serial-like code while achieving high performance across heterogeneous memory and distributed devices.
  • Break the memory wall in large model inference by efficiently managing GPU and peer device memory without sacrificing latency or throughput.

Proposed method

  • Propose a hierarchy-controller system architecture combining centralized engine and distributed runtime to coordinate multi-GPU inference.
  • Implement non-blocking pipeline parallelism using asynchronous execution and pipelined communication to reduce idle time and improve throughput.
  • Introduce distributed redundant computation elimination to avoid redundant forward passes in pipeline stages, reducing computation cost.
  • Design peer memory pooling (PMEP) to offload model layers to peer GPUs instead of CPU, enabling better overlap of computation and communication.
  • Use a static offloading strategy with prefetching to minimize communication latency and maintain high GPU utilization.
  • Support both single-controller and multi-controller execution modes to flexibly handle tensor and pipeline parallelism within a unified programming model.

Experimental results

Research questions

  • RQ1How can a distributed inference system efficiently coordinate multiple GPUs for 10–100B parameter Transformer models with low latency and high throughput?
  • RQ2What architectural design enables both high programmability and high performance in large model inference, especially when adapting from training systems?
  • RQ3How can redundant computation in pipeline parallelism be eliminated across distributed workers without sacrificing correctness or efficiency?
  • RQ4To what extent can peer GPU memory be leveraged to extend effective model size on a single GPU without incurring high communication overhead?
  • RQ5Can a system achieve better scalability and lower latency than existing frameworks like FasterTransformer in variable-length and large-scale inference scenarios?

Key findings

  • EnergonAI reduces latency by 37% compared to FasterTransformer in tensor parallelism experiments on fixed-length inputs.
  • In pipeline parallelism, EnergonAI achieves 10% better scalability than FasterTransformer, demonstrating improved load balancing and communication efficiency.
  • With peer memory pooling (PMEP), EnergonAI maintains local GPU throughput with only 2.3–3.9% degradation when offloading layers to a peer GPU, even for models up to twice the size.
  • In contrast, CPU offloading in BMInf causes up to 81% throughput reduction due to high communication-to-computation ratio, while EnergonAI’s PMEP achieves near-transparent offloading with better latency.
  • EnergonAI enables inference of models up to 2× larger on a single GPU by utilizing heterogeneous memory space, with only limited performance degradation.
  • The system achieves superior performance in variable-length inference, where EnergonAI outperforms FasterTransformer due to better handling of dynamic sequence lengths and communication scheduling.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.