BatOpt: Optimizing GPU-Based Deep Learning Inference Using Dynamic Batch Processing

计算机科学 图形处理单元的通用计算 推论 图形处理单元 深度学习 云计算 人工智能 并行计算 操作系统 计算机图形学(图像) 绘图
作者
Deyu Zhang,Yunzhen Luo,Yaobo Wang,Xiaoyan Kui,Ju Ren
出处
期刊:IEEE Transactions on Cloud Computing [Institute of Electrical and Electronics Engineers]
卷期号:12 (1): 174-185 被引量:2
标识
DOI:10.1109/tcc.2024.3350561
摘要

Deep learning (DL) has been applied in billions of mobile devices due to its astonishing performance in image, text, and audio processing. However, limited by the computing capability of mobile devices, a large amount of DL inference tasks need to be offloaded to edge or cloud servers, which makes powerful GPU servers are struggling to ensure the quality of service(QoS). To better utilize the highly parallel computing architecture of GPU to improve the QoS, we propose BatOpt, a framework that uses dynamic batch processing to strike a good balance between service latency and GPU memory usage in DL inference services. Specifically, BatOpt innovatively models the DL inference service as a $M/G(a,b)/1/N$ queue, with the consideration of stochastic task arrivals, which enables it to predict the service latency accurately in different system states. Furthermore, we propose an optimization algorithm to trade off the service latency and GPU memory usage in different system states by analyzing the queueing model. We have implemented BatOpt on Pytorch and evaluated it on an RTX 2080 GPU using real DL models. BatOpt brings up to 31x and 4.3x times performance boost in terms of service latency, compared to single-input and fixed-batch-size strategies, respectively. And BatOpt's maximum GPU memory usage is only 0.3x that of greedy-dynamic-batch-size strategy on the premise of the same service latency.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
科研通AI6.4应助zcy采纳,获得10
刚刚
Ava应助务实寻真采纳,获得10
刚刚
charint发布了新的文献求助10
刚刚
汪汪智完成签到,获得积分10
刚刚
1秒前
樂乐发布了新的文献求助10
1秒前
1秒前
2秒前
2秒前
小力啵啵完成签到 ,获得积分10
2秒前
YIYI完成签到,获得积分20
3秒前
科研通AI6.3应助SHHHH采纳,获得10
3秒前
拼搏翠安完成签到 ,获得积分10
3秒前
3秒前
SiboN完成签到,获得积分10
3秒前
情怀应助maxiaole采纳,获得10
3秒前
xlz_0226完成签到,获得积分10
3秒前
4秒前
小二郎应助科研通管家采纳,获得10
4秒前
4秒前
4秒前
4秒前
Jasper应助科研通管家采纳,获得10
4秒前
在水一方应助科研通管家采纳,获得10
4秒前
烟花应助科研通管家采纳,获得10
4秒前
Lucas应助SJJ采纳,获得10
4秒前
5秒前
隐形曼青应助milk采纳,获得10
5秒前
大模型应助科研通管家采纳,获得10
5秒前
Nole应助科研通管家采纳,获得10
5秒前
清风朗月发布了新的文献求助10
5秒前
Jasper应助科研通管家采纳,获得20
5秒前
5秒前
明明明月应助科研通管家采纳,获得10
5秒前
科研通AI6.2应助Lzy采纳,获得10
5秒前
烟雨夕阳完成签到,获得积分10
5秒前
司纤户羽发布了新的文献求助10
5秒前
万物皆可爱应助Man采纳,获得10
5秒前
5秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Nondestructive Testing Handbook: Vol. 4, Thermal and Infrared Testing (IR), 4th ed 800
日本現代怪異事典 副読本 700
悉尼大学博士学位论文,题目:Modelling and testing of one-sided stitched laminated composites. 作者:Kristopher P. Plain 630
Machine Learning for Asset Management and Pricing 600
Numerical analysis of the coupled atmosphere-ocean models (CAO II). II 600
Models for the coupled atmosphere and ocean 600
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7377545
求助须知:如何正确求助?哪些是违规求助? 8985167
关于积分的说明 19106784
捐赠科研通 7017827
什么是DOI,文献DOI怎么找? 3226162
关于科研通互助平台的介绍 2389537
邀请新用户注册赠送积分活动 2206809