LightSeq: A High Performance Inference Library for Transformers

Xiaohui Wang, Ying Xiong, Yang Wei, Mingxuan Wang, Lei Li
10/23/2020
cs.MScs.LG
transformer-attention

Official code: bytedance/lightseq (3,289 stars, C++, last commit 2023-05-16).

Abstract

Transformer, BERT and their variants have achieved great success in natural language processing. Since Transformer models are huge in size, serving these models is a challenge for real industrial applications.

Show full abstract

In this paper, we propose LightSeq, a highly efficient inference library for models in the Transformer family. LightSeq includes a series of GPU optimization techniques to to streamline the computation of neural layers and to reduce memory footprint. LightSeq can easily import models trained using PyTorch and Tensorflow. Experimental results on machine translation benchmarks show that LightSeq achieves up to 14x speedup compared with TensorFlow and 1.4x compared with FasterTransformer, a concurrent CUDA implementation. The code is available at https://github.com/bytedance/lightseq.

View on arXivView PDF

Code Implementations(1)

bytedance/lightseqOfficial100%

LightSeq: A High Performance Library for Sequence Processing and Generation

3,289332C++, CudaDec 6, 20193 years agoNOASSERTION
acceleratebartbeam-searchbertcuda+7 more

Similar Papers

Cite this paper

@article{wang2020lightseq,
  title  = {LightSeq: A High Performance Inference Library for Transformers},
  author = {Xiaohui Wang and Ying Xiong and Yang Wei and Mingxuan Wang and Lei Li},
  year   = {2020},
  eprint = {2010.13887},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.13887}
}

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

Discussion