arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.17246cs.DCcs.OS
收藏

BLITZSCALE:采用 O(1) 主机缓存的快速且实时的大模型自动扩缩容

BLITZSCALE: Fast and Live Large Model Autoscaling with O(1) Host Caching

Dingyan Zhang, Haotian Wang, Yang Liu, Xingda Wei, Yizhou Shan, Rong Chen, Haibo Chen

AI总结:

针对大模型无服务器服务扩缩容慢、参数缓存开销大的问题,BLITZSCALE 利用 GPU 计算网络多播和层级实时卸载,以 O(1) 缓存显著降低尾延迟与 GPU 服务时间。

摘要:

模型自动扩缩容是实现无服务器模型即服务(model-as-a-service)的关键机制,但它面临扩缩容速度与用于缓存参数的存储/内存使用之间的根本性权衡,无法满足跨多台主机的频繁扩缩容需求。关键问题在于数据平面性能缓慢,并且在参数加载期间,已扩缩容的实例仍处于停止状态。本文首先表明,通过在 GPU 之间经由计算网络加载参数,可以在无缓存或 O(1) 缓存的情况下使数据平面变得快速,原因在于:(1)其速度可与主机缓存相媲美且未被充分利用;(2)借助网络优化的多播,扩缩容多个实例只需无缓存或 O(1) 缓存。其次,通过将推理的扩缩容抽象从粗粒度的实例级细化为细粒度的层级,可以使自动扩缩容变为实时。这使我们能够将层计算从过载的服务实例卸载到已扩缩容的实例,而无需等待参数完全加载。在真实工作负载下,我们的系统 BLITZSCALE 与最先进的自动扩缩容系统(ServerlessLLM)相比,尾延迟最高降低 94%;并且在相同服务水平协议下,与 DistServe 和 vLLM 等不支持自动扩缩容的服务系统相比,它将用于服务的 GPU 时间减少了 49%。

英文摘要:

Model autoscaling is the key mechanism to achieve serverless model-as-a-service, but it faces a fundamental trade-off between scaling speed and storage/memory usage to cache parameters, and cannot meet frequent scaling requirements across multiple hosts. The key problem is that data plane performance is slow, and scaled instances remain stopped while parameters are loading. In this paper, we first show that the data plane can be made fast with no or O(1) caching by loading parameters through the compute network between GPUs because: (1) its speed is comparable to host cache and is underutilized, and (2) scaling multiple instances requires no or O(1) caching with network-optimized multicast. Second, autoscaling can be made live by breaking the scaling abstraction for inference from a coarse-grained instance-level to a fine-grained layer-level. This allows us to offload the layer computation from the overloaded serving instances to the scaled ones without waiting for the parameters to be fully loaded. Under real-world workloads, our system BLITZSCALE achieves up to 94 % lower tail latency reductions compared to state-of-the-art autoscaling system (ServerlessLLM), and it reduces the GPU time used for serving by 49 % when compared with serving systems that do not support autoscaling like DistServe and vLLM with the same service-level-agreement.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑