Easy and Efficient Transformer : Scalable Inference Solution For large NLP model

Gongzheng Li, Yadong Xi, Jingzhen Ding, Duan Wang, Bai Liu +3 more
4/26/2021
cs.CL
transformer-attention

Official code: NetEase-FuXi/EET (262 stars, Python, Apache-2.0, last commit 2024-11-30).

Abstract

Recently, large-scale transformer-based models have been proven to be effective over various tasks across many domains. Nevertheless, applying them in industrial production requires tedious and heavy works to reduce inference costs.

Show full abstract

To fill such a gap, we introduce a scalable inference solution: Easy and Efficient Transformer (EET), including a series of transformer inference optimization at the algorithm and implementation levels. First, we design highly optimized kernels for long inputs and large hidden sizes. Second, we propose a flexible CUDA memory manager to reduce the memory footprint when deploying a large model. Compared with the state-of-the-art transformer inference library (Faster Transformer v4.0), EET can achieve an average of 1.40-4.20x speedup on the transformer decoder layer with an A100 GPU

View on arXivView PDF

Code Implementations(1)

NetEase-FuXi/EETOfficial100%
Apache-2.0

Easy and Efficient Transformer : Scalable Inference Solution For Large NLP model

26243Python, C++Mar 23, 20212 years agoApache-2.0
bertbert-inference-performanceeetgpt2gpt2-inference-performance

Similar Papers

Cite this paper

@article{li2021easy,
  title  = {Easy and Efficient Transformer : Scalable Inference Solution For large NLP model},
  author = {Gongzheng Li and Yadong Xi and Jingzhen Ding and Duan Wang and Bai Liu and Changjie Fan and Xiaoxi Mao and Zeng Zhao},
  year   = {2021},
  eprint = {2104.12470},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.12470}
}

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/2104.12470.svg)](https://codeofpaper.com/paper/2104.12470)

Discussion