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

DeepServe:大规模无服务器大语言模型服务

DeepServe: Serverless Large Language Model Serving at Scale

Junhao Hu, Jiang Xu, Zhixia Liu, Yulong He, Yuetao Chen, Hao Xu, Jiang Liu, Jie Meng, Baoquan Zhang, Shining Wan, Gengyuan Dan, Zhiyu Dong, Zhihao Ren, Changhon… 展开作者

Junhao Hu, Jiang Xu, Zhixia Liu, Yulong He, Yuetao Chen, Hao Xu, Jiang Liu, Jie Meng, Baoquan Zhang, Shining Wan, Gengyuan Dan, Zhiyu Dong, Zhihao Ren, Changhong Liu, Tao Xie, Dayun Lin, Qin Zhang, Yue Yu, Hao Feng, Xusheng Chen, Yizhou Shan

AI总结:

本文提出无服务器 AI 平台 DEEPSERVE,通过分层抽象、FLOWSERVE 引擎、混合 PD 调度和冷启动优化,在 Ascend NPU 集群上实现大规模 LLM 服务。

摘要:

本文提出 DEEPSERVE,这是一个可扩展的无服务器 AI 平台,旨在在云环境中高效地大规模服务大语言模型(LLM)。DEEPSERVE 通过四个主要设计组件解决资源分配、服务效率和冷启动延迟等关键挑战。首先,DEEPSERVE 使用一种称为 request-job-task 模型的简单无服务器抽象,帮助管理跨训练后和模型服务任务的多样化 AI 工作负载。其次,DEEPSERVE 集成了名为 FLOWSERVE 的自研服务引擎,采用受微内核启发的设计、以 NPU 为中心的执行以及基于 SPMD 的并行性来优化 LLM 服务。第三,DEEPSERVE 包含针对 PD 分离实例与 PD 同置实例并存配置而定制的新型调度策略。第四,DEEPSERVE 包含预热 pod、DRAM 预加载和 NPU-fork 等优化,使 DEEPSERVE 能够在数秒内扩展至 64 个实例。DEEPSERVE 已投入生产一年多,运行在大型 Ascend NPU 集群上,并向客户提供用于微调、智能体服务和模型服务的行业标准 API。

英文摘要:

In this paper, we propose DEEPSERVE, a scalable and serverless AI platform designed to efficiently serve large language models (LLMs) at scale in cloud environments. DEEPSERVE addresses key challenges such as resource allocation, serving efficiency, and cold start latencies through four main design components. First, DEEPSERVE uses a simple serverless abstraction called the request-job-task model, which helps manage diverse AI workloads across posttraining and model-serving tasks. Second, DEEPSERVE integrates an in-house serving engine named FLOWSERVE using a microkernel-inspired design, NPU-centric execution, and SPMD-based parallelism to optimize LLM serving. Third, DEEPSERVE includes novel scheduling policies tailored for a configuration with both PD-disaggregated and PD-colocated instances. Fourth, DEEPSERVE includes optimizations such as pre-warmed pods, DRAM pre-loading, and NPU-fork, which allow DEEPSERVE to scale up to 64 instances in seconds. DEEPSERVE has been in production for over a year, operating on a large Ascend NPU cluster and providing industrystandard APIs for fine-tuning, agent serving, and model serving to our customers.

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

↑