Torpor: GPU-Enabled Serverless Computing for Low-Latency, Resource-Efficient Inference

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Yu, Minchen, Wang, Ao, Chen, Dong, Yu, Haoxuan, Luo, Xiaonan, Li, Zhuohao, Wang, Wei, Chen, Ruichuan, Nie, Dapeng, Yang, Haoran, Ding, Yu
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909677773651968
author Yu, Minchen
Wang, Ao
Chen, Dong
Yu, Haoxuan
Luo, Xiaonan
Li, Zhuohao
Wang, Wei
Chen, Ruichuan
Nie, Dapeng
Yang, Haoran
Ding, Yu
author_facet Yu, Minchen
Wang, Ao
Chen, Dong
Yu, Haoxuan
Luo, Xiaonan
Li, Zhuohao
Wang, Wei
Chen, Ruichuan
Nie, Dapeng
Yang, Haoran
Ding, Yu
contents Serverless computing offers a compelling cloud model for online inference services. However, existing serverless platforms lack efficient support for GPUs, hindering their ability to deliver high-performance inference. In this paper, we present Torpor, a serverless platform for GPU-efficient, low-latency inference. To enable efficient sharing of a node's GPUs among numerous inference functions, Torpor maintains models in main memory and dynamically swaps them onto GPUs upon request arrivals (i.e., late binding with model swapping). Torpor uses various techniques, including asynchronous API redirection, GPU runtime sharing, pipelined model execution, and efficient GPU memory management, to minimize latency overhead caused by model swapping. Additionally, we design an interference-aware request scheduling algorithm that utilizes high-speed GPU interconnects to meet latency service-level objectives (SLOs) for individual inference functions. We have implemented Torpor and evaluated its performance in a production environment. Utilizing late binding and model swapping, Torpor can concurrently serve hundreds of inference functions on a worker node with 4 GPUs, while achieving latency performance comparable to native execution, where each model is cached exclusively on a GPU. Pilot deployment in a leading commercial serverless cloud shows that Torpor reduces the GPU provisioning cost by 70% and 65% for users and the platform, respectively.
format Preprint
id arxiv_https___arxiv_org_abs_2306_03622
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Torpor: GPU-Enabled Serverless Computing for Low-Latency, Resource-Efficient Inference
Yu, Minchen
Wang, Ao
Chen, Dong
Yu, Haoxuan
Luo, Xiaonan
Li, Zhuohao
Wang, Wei
Chen, Ruichuan
Nie, Dapeng
Yang, Haoran
Ding, Yu
Distributed, Parallel, and Cluster Computing
Serverless computing offers a compelling cloud model for online inference services. However, existing serverless platforms lack efficient support for GPUs, hindering their ability to deliver high-performance inference. In this paper, we present Torpor, a serverless platform for GPU-efficient, low-latency inference. To enable efficient sharing of a node's GPUs among numerous inference functions, Torpor maintains models in main memory and dynamically swaps them onto GPUs upon request arrivals (i.e., late binding with model swapping). Torpor uses various techniques, including asynchronous API redirection, GPU runtime sharing, pipelined model execution, and efficient GPU memory management, to minimize latency overhead caused by model swapping. Additionally, we design an interference-aware request scheduling algorithm that utilizes high-speed GPU interconnects to meet latency service-level objectives (SLOs) for individual inference functions. We have implemented Torpor and evaluated its performance in a production environment. Utilizing late binding and model swapping, Torpor can concurrently serve hundreds of inference functions on a worker node with 4 GPUs, while achieving latency performance comparable to native execution, where each model is cached exclusively on a GPU. Pilot deployment in a leading commercial serverless cloud shows that Torpor reduces the GPU provisioning cost by 70% and 65% for users and the platform, respectively.
title Torpor: GPU-Enabled Serverless Computing for Low-Latency, Resource-Efficient Inference
topic Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2306.03622