arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.05601cs.DC
收藏

支持GPU的机器学习推理功能即服务

GPU-enabled Function-as-a-Service for Machine Learning Inference

Ming Zhao, Kritshekhar Jha, Sungho Hong

摘要:

功能即服务(FaaS)正在成为一种重要的云计算服务模型,因为它可以提高各种应用程序的可扩展性和可用性,特别是需要可扩展资源和复杂软件配置的机器学习(ML)推理任务。这些推理任务严重依赖GPU来实现高性能;然而,现有的FaaS解决方案目前缺乏对GPU的支持。功能独特的事件触发和短暂的性质对在FaaS上启用GPU提出了新的挑战,这必须考虑传输数据的开销(例如,ML模型参数和输入/输出)。本文提出了一种新的支持GPU的FaaS解决方案,使ML推理功能能够有效地利用GPU来加速其计算。首先,它扩展了现有的FaaS框架,如OpenFaaS,以支持FaaS集群中跨GPU的功能调度和执行。其次,它提供了在GPU内存中缓存ML模型以提高模型推理功能的性能,并提供了GPU内存的全局管理以提高缓存利用率。第三,它提供了协同设计的GPU功能调度和缓存管理,以优化ML推理功能的性能。具体而言,本文提出了本地感知调度,最大限度地利用GPU内存的缓存命中和GPU核心的并行处理。基于真实世界的跟踪和ML模型的全面评估表明,所提出的支持GPU的FaaS适用于ML推理任务,与默认的负载均衡调度器相比,所提出的本地感知调度器实现了48倍的加速。

英文摘要:

Function-as-a-Service (FaaS) is emerging as an important cloud computing service model as it can improve the scalability and usability of a wide range of applications, especially Machine-Learning (ML) inference tasks that require scalable resources and complex software configurations. These inference tasks heavily rely on GPUs to achieve high performance; however, support for GPUs is currently lacking in the existing FaaS solutions. The unique event-triggered and short-lived nature of functions poses new challenges to enabling GPUs on FaaS, which must consider the overhead of transferring data (e.g., ML model parameters and inputs/outputs) between GPU and host memory. This paper proposes a novel GPU-enabled FaaS solution that enables ML inference functions to efficiently utilize GPUs to accelerate their computations. First, it extends existing FaaS frameworks such as OpenFaaS to support the scheduling and execution of functions across GPUs in a FaaS cluster. Second, it provides caching of ML models in GPU memory to improve the performance of model inference functions and global management of GPU memories to improve cache utilization. Third, it offers co-designed GPU function scheduling and cache management to optimize the performance of ML inference functions. Specifically, the paper proposes locality-aware scheduling, which maximizes the utilization of both GPU memory for cache hits and GPU cores for parallel processing. A thorough evaluation based on real-world traces and ML models shows that the proposed GPU-enabled FaaS works well for ML inference tasks, and the proposed locality-aware scheduler achieves a speedup of 48x compared to the default, load balancing only schedulers.

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

↑