arXiv · 2010.13887
LightSeq: A High Performance Inference Library for Transformers
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. 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.
Explore related subjects
Keep this discovery
Xiaohui Wang, Ying Xiong, Yang Wei, Mingxuan Wang, Lei Li. 2020-10-23. LightSeq: A High Performance Inference Library for Transformers. https://arxiv.org/abs/2010.13887
Cite the original work for its findings. Save a collection to share your selection of sources.