Lightweight Scheduling Policies for Continuously Batched LLM Serving Across GPU Architectures
Organizations: Carnegie Mellon University, School of Computer Science
Abstract
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.
Figures & tables
| POLICY | PRIORITY SIGNAL |
|---|---|
| First-in, first-out (FIFO) | Arrival order. |
| Service-tier priority (Tier) | Service tier, then arrival order. |
| Shortest prompt first (SPF) | Visible prompt length. |
| Longest prompt first (LPF) | Negative prompt length. |
| Shortest remaining tokens first (SRTF) | GPT-3 output length. |
| Aging shortest-prompt-first (Aging) | Prompt waiting age. |
LLM Inference Scheduling
Large language model inference scheduling allocates requests, batches, compute, and KV-cache memory to balance latency, throughput, and service-level objectives.
See all 162 papers