arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.18789cs.DCcs.CLcs.LG
收藏

FlexLLM:具有SLO保证的LLM推理与微调令牌级协同服务

FlexLLM: Token-Level Co-Serving of LLM Inference and Finetuning with SLO Guarantees

Carnegie Mellon University(卡内基梅隆大学);Purdue University(普渡大学);Anthropic PBC(Anthropic 公益公司);Stanford University(斯坦福大学);Mistral AI;Amazon Web Services(亚马逊云科技)

Gabriele Oliaro, Xupeng Miao, Xinhao Cheng, Vineeth Kada, Mengdi Wu, Ruohan Gao, Yingyi Huang, Remi Delacourt, April Yang, Yingcheng Wang, Colin Unger, Zhihao Jia

AI总结:

FlexLLM通过令牌级计算融合与混合调度,在共享GPU上协同服务LLM推理和PEFT微调,实现高达80%内存节省、SLO保证及最高6.8倍微调吞吐量提升。

摘要:

对大型语言模型(LLM)进行微调对于任务适配至关重要,然而当今的服务栈将推理和微调隔离在单独的GPU集群上,浪费资源且硬件利用率不足。我们提出了FlexLLM,这是首个通过在令牌级别融合计算,在共享GPU上协同服务LLM推理和基于PEFT的微调的系统。FlexLLM的静态编译优化——依赖并行化和图剪枝,显著缩减了激活内存,端到端GPU内存节省高达80%。在运行时,一种新颖的令牌级微调机制与混合令牌调度器相结合,在每次协同服务迭代中动态交错推理和训练令牌,在满足严格延迟SLO的同时最大化利用率。在LLaMA-3.1-8B、Qwen-2.5-14B和Qwen-2.5-32B上的端到端基准测试中,FlexLLM在高达20请求/秒的速率下保持推理SLO合规性,并在重推理负载下将微调吞吐量提升1.9-4.8倍,在轻负载下提升2.5-6.8倍,即使在峰值需求下也保留了超过76%的峰值微调进度。FlexLLM可在https://flexllm.github.io公开获取。

英文摘要:

Finetuning large language models (LLMs) is essential for task adaptation, yet today's serving stacks isolate inference and finetuning on separate GPU clusters -- wasting resources and under-utilizing hardware. We introduce FlexLLM, the first system to co-serve LLM inference and PEFT-based finetuning on shared GPUs by fusing computation at the token level. FlexLLM's static compilation optimizations -- dependent parallelization and graph pruning significantly shrink activation memory, leading to end-to-end GPU memory savings by up to 80%. At runtime, a novel token-level finetuning mechanism paired with a hybrid token scheduler dynamically interleaves inference and training tokens within each co-serving iteration, meeting strict latency SLOs while maximizing utilization. In end-to-end benchmarks on LLaMA-3.1-8B, Qwen-2.5-14B, and Qwen-2.5-32B, FlexLLM maintains inference SLO compliance at up to 20 req/s, and improves finetuning throughput by $1.9-4.8\times$ under heavy inference workloads and $2.5-6.8\times$ under light loads, preserving over 76% of peak finetuning progress even at peak demand. FlexLLM is publicly available at https://flexllm.github.io.

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

↑