arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.15899cs.DCcs.LG
收藏

适用于跨GPU架构的连续批处理LLM服务的轻量级调度策略

Lightweight Scheduling Policies for Continuously Batched LLM Serving Across GPU Architectures

Carnegie Mellon University, School of Computer Science(卡内基梅隆大学计算机科学学院)

Ashman Mehra, Akshan Agrawal, Aryeh Carmi

AI总结:

本文针对跨GPU架构的连续批处理LLM服务,实现轻量级调度策略,通过多GPU、多模型的1152组实验,发现老化最短prompt优先是多数场景的实用基线,相关数据集已上传至Hugging Face。

摘要:

大语言模型(LLM)服务的性能日益受到模型规模、GPU速度以及自回归解码阶段调度的限制,其中连续批处理会在token粒度上将到达和完成的请求序列交错处理。本文研究轻量级调度策略能否在不改变模型架构、内核或部署学习型调度器的前提下,改善延迟-吞吐量的权衡关系。我们实现了基于Python/PyTorch的连续批处理测试平台,采用真实的Hugging Face执行环境,并使用源自ShareGPT的流量、6种Qwen、Gemma和Mistral模型,以及Modal L40S、A100和H100 GPU,在1152次GPU-模型-调度器-工作负载组合运行中评估8种调度策略。在固定模型、GPU、工作负载、批大小和预填充预算的条件下,调度器的选择会改变吞吐量、首token延迟(TTFT)、完成延迟以及尾部性能表现。在多数L40S和混合工作负载场景中,老化最短prompt优先是最强的实用基线,而先知剩余长度调度表明,仅作业规模知识不足以优化性能,因为批处理和硬件效应也会影响性能。本文所用的自定义数据集已上传至Hugging Face。

英文摘要:

Large language model serving is increasingly limited not only by model size and GPU speed, but also by scheduling during autoregressive decoding, where continuous batching interleaves requests at token granularity as sequences arrive and finish. We study whether lightweight scheduling policies can improve latency-throughput tradeoffs without changing model architectures, kernels, or deploying learned schedulers. We implement a Python/PyTorch continuous-batching testbench with real Hugging Face execution and evaluate eight policies across 1,152 GPU-model-scheduler-workload runs using ShareGPT-derived traffic, six Qwen, Gemma, and Mistral models, and Modal L40S, A100, and H100 GPUs. Scheduler choice changes throughput, TTFT, completion latency, and tail behavior under fixed model, GPU, workload, batch size, and prefill budget. Aging shortest-prompt-first is the strongest practical baseline in many L40S and mixed-workload settings, while oracle remaining-length scheduling shows that job-size knowledge alone is insufficient because batching and hardware effects also shape performance. The custom dataset has been uploaded to Hugging Face.

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

↑