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 条
  • [41] A Parallel Framework for Simultaneous fNIRS/fMRI Fusion
    Yuan, Zhen
    MULTIMODAL BIOMEDICAL IMAGING IX, 2014, 8937
  • [42] Y Recurrent Event Network: Autoregressive Structure Inference over Temporal Knowledge Graphs
    Jin, Woojeong
    Qu, Meng
    Jin, Xisen
    Ren, Xiang
    PROCEEDINGS OF THE 2020 CONFERENCE ON EMPIRICAL METHODS IN NATURAL LANGUAGE PROCESSING (EMNLP), 2020, : 6669 - 6683
  • [43] A hybrid inference framework for model selection
    Chai Xin
    Yang Bao-an
    Xie Zhi-ming
    PROCEEDINGS OF THE 2006 INTERNATIONAL CONFERENCE ON MANAGEMENT SCIENCE & ENGINEERING (13TH), VOLS 1-3, 2006, : 324 - 329
  • [44] A collaboration of an ontology and an autoregressive model to build an efficient chatbot model
    Nguyen T.T.S.
    Ho D.H.T.
    Nguyen N.T.A.
    Do P.M.T.
    International Journal of Intelligent Information and Database Systems, 2024, 16 (03) : 241 - 257
  • [45] Efficient Training and Inference in Highly Temporal Activity Recognition
    Charkhabi, Masoud
    Rahurkar, Nivedita
    2019 INTERNATIONAL CONFERENCE ON IMAGE AND VIDEO PROCESSING, AND ARTIFICIAL INTELLIGENCE, 2019, 11321
  • [46] A Deep Temporal Fusion Framework for Scene Flow Using a Learnable Motion Model and Occlusions
    Schuster, Rene
    Unger, Christian
    Stricker, Didier
    2021 IEEE WINTER CONFERENCE ON APPLICATIONS OF COMPUTER VISION (WACV 2021), 2021, : 247 - 255
  • [47] Inference in the spatial autoregressive efficiency model with an application to Dutch dairy farms
    Skevas, Ioannis
    European Journal of Operational Research, 2021, 283 (01) : 356 - 364
  • [48] Bayesian empirical likelihood inference and order shrinkage for a hysteretic autoregressive model
    Wang, Wenshan
    Song, Xinyuan
    Han, Guichen
    Yang, Kai
    STATISTICAL PAPERS, 2025, 66 (02)
  • [49] Statistical inference for the binomial autoregressive model with time-varying parameters
    Zhang, Rui
    Dong, Xiaogang
    METRIKA, 2025,
  • [50] Statistical Inference of Uncertain Autoregressive Model via the Principle of Least Squares
    Wang, Han
    Liu, Yang
    Shi, Haiyan
    AXIOMS, 2024, 13 (11)