EWSJF:一种用于混合工作负载LLM推理的自适应调度器与混合分区
EWSJF: An Adaptive Scheduler with Hybrid Partitioning for Mixed-Workload LLM Inference
AI总结:
EWSJF通过自适应学习调度策略,提升混合负载下LLM推理的吞吐量和响应速度。
摘要:
在混合负载下为大型语言模型(LLM)服务是一项基本的调度挑战——短的、对延迟敏感的交互查询与长的、以吞吐量为导向的批量请求并存。标准的先进先出(FCFS)策略会遭受严重的头部阻塞,导致尾部延迟高且硬件利用率低。我们引入了EWSJF(基于有效工作负载的最短作业优先),这是一种自适应的请求级调度器,能够在实时中学习工作负载结构,以共同提高公平性和吞吐量。EWSJF在执行级调度器之前运行,并集成了四个组件:(1)Refine-and-Prune,一种无监督的分区算法,发现性能同质的请求组;(2)动态队列路由,将请求分配到这些组中;(3)密度加权评分,一种基于上下文的优先级函数,平衡紧急性和公平性;(4)贝叶斯元优化,根据实时性能反馈不断调整评分和分区参数。在vLLM上实现的EWSJF将端到端吞吐量提高了超过30%,并且将短请求的平均时间到第一个标记减少了多达4倍,相比FCFS。这些结果表明,自适应、基于学习的请求调度是高效和响应式LLM服务的关键缺失层。实现可在https://anonymous.4open.science/r/vllm_0110-32D8上获得。
英文摘要:
Serving Large Language Models (LLMs) under mixed workloads--short, latency-sensitive interactive queries alongside long, throughput-oriented batch requests--poses a fundamental scheduling challenge. Standard First-Come, First-Served (FCFS) policies suffer from severe head-of-line blocking, leading to high tail latency and underutilized hardware. We introduce EWSJF (Effective Workload-based Shortest Job First), an adaptive request-level scheduler that learns workload structure in real time to jointly improve fairness and throughput. EWSJF operates upstream of execution-level schedulers and integrates four components: (1) Refine-and-Prune, an unsupervised partitioning algorithm that discovers performance-homogeneous request groups; (2) Dynamic Queue Routing for assigning requests to these groups; (3) Density-Weighted Scoring, a context-aware prioritization function balancing urgency and fairness; and (4) Bayesian Meta-Optimization, which continuously tunes scoring and partitioning parameters based on live performance feedback. Implemented in vLLM, EWSJF improves end-to-end throughput by over 30% and reduces average Time-To-First-Token for short requests by up to 4x compared to FCFS. These results demonstrate that adaptive, learning-based request scheduling is a critical missing layer for efficient and responsive LLM serving. Implementation available at https://anonymous.4open.science/r/vllm_0110-32D8.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。