Flover: A Temporal Fusion Framework for Efficient Autoregressive Model Parallel Inference

被引:0
|
作者
Yao, Jinghan [1 ]
Alnaasan, Nawras [1 ]
Chen, Tian [1 ]
Shafi, Aamir [1 ]
Subramoni, Hari [1 ]
Panda, Dhabaleswar K. [1 ]
机构
[1] Ohio State Univ, Dept Comp Sci & Engn, Columbus, OH 43210 USA
关键词
Autoregressive model; Inference frameworks; Parallel Pipelining; Distributed inference;
D O I
10.1109/HiPC58850.2023.00026
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Autoregressive models, despite their commendable performance in a myriad of generative tasks, face challenges stemming from their inherently sequential structure. Inference on these models, by design, harnesses a temporal dependency, where the current token's probability distribution is conditioned on preceding tokens. This inherent characteristic severely impedes computational efficiency during inference as a typical inference request can require more than thousands of tokens, where generating each token requires a load of entire model weights, making the inference more memory-bound. The large overhead becomes profound in real deployment where requests arrive randomly, necessitating various generation lengths. Existing solutions, such as dynamic batching and concurrent instances, introduce significant response delays and bandwidth contention, falling short of achieving optimal latency and throughput. To address these shortcomings, we propose Flover - a temporal fusion framework for efficiently inferring multiple requests in parallel. We deconstruct the general generation pipeline into pre-processing and token generation, and equip the framework with a dedicated work scheduler for fusing the generation process temporally across all requests. By orchestrating the token-level parallelism, Flover exhibits optimal hardware efficiency and significantly spares the system resources. By further employing a fast buffer reordering algorithm that allows memory eviction of finished tasks, it brings over 11x inference speedup on GPT and 16x on LLAMA compared to the cutting-edge solutions provided by NVIDIA FasterTransformer. Crucially, by leveraging the advanced tensor parallel technique, Flover proves efficacious across diverse computational landscapes, from single-GPU setups to distributed scenarios, thereby offering robust performance optimization that adapts to variable use cases.
引用
收藏
页码:107 / 116
页数:10
相关论文
共 50 条
  • [1] Efficient inference for autoregressive coefficients in the presence of trends
    Qiu, D.
    Shao, Q.
    Yang, L.
    JOURNAL OF MULTIVARIATE ANALYSIS, 2013, 114 : 40 - 53
  • [2] Exact and Efficient Temporal Steering of Software Behavioral Model Inference
    Lamprier, Sylvain
    Ziadi, Tewfik
    Baskiotis, Nicolas
    Hillah, Lom Messan
    2014 19TH INTERNATIONAL CONFERENCE ON ENGINEERING OF COMPLEX COMPUTER SYSTEMS (ICECCS 2014), 2014, : 166 - 175
  • [3] Likelihood inference for a nonstationary fractional autoregressive model
    Johansen, Soren
    Nielsen, Morten Orregaard
    JOURNAL OF ECONOMETRICS, 2010, 158 (01) : 51 - 66
  • [4] Robust inference for the bivariate bifurcating autoregressive model
    Bui, QM
    Huggins, RM
    AUSTRALIAN & NEW ZEALAND JOURNAL OF STATISTICS, 1998, 40 (02) : 151 - 163
  • [5] Bayesian inference for merged panel autoregressive model
    Kumar, Jitendra
    Agiwal, Varun
    COMMUNICATIONS IN STATISTICS-THEORY AND METHODS, 2022, 51 (18) : 6197 - 6217
  • [6] Bayesian inference for a mixture double autoregressive model
    Yang, Kai
    Zhang, Qingqing
    Yu, Xinyang
    Dong, Xiaogang
    STATISTICA NEERLANDICA, 2023, 77 (02) : 188 - 207
  • [7] Estimating a spatial autoregressive model with autoregressive disturbances based on the indirect inference principle
    Bao, Yong
    Liu, Xiaotian
    SPATIAL ECONOMIC ANALYSIS, 2021, 16 (04) : 506 - 529
  • [8] Efficient inference for parameters of unobservable periodic autoregressive time series
    Mei, Jingning
    Shao, Q.
    Liu, R.
    COMMUNICATIONS IN STATISTICS-THEORY AND METHODS, 2017, 46 (15) : 7390 - 7408
  • [9] Efficient Parallel Reinforcement Learning Framework Using the Reactor Model
    Kwok, Jacky
    Lohstroh, Marten
    Lee, Edward A.
    PROCEEDINGS OF THE 36TH ACM SYMPOSIUM ON PARALLELISM IN ALGORITHMS AND ARCHITECTURES, SPAA 2024, 2024, : 41 - 51
  • [10] Inference in a similarity-based spatial autoregressive model
    Lieberman, Offer
    Rossi, Francesca
    ECONOMETRIC REVIEWS, 2023, 42 (05) : 471 - 486