Smart request scheduling can cut your LLM inference costs by a third
INFERMAX, proposed in this paper, helps find the perfect balance between preempting and queuing LLM requests.
30% latency reduction through optimized preemption strategies
Think database query optimization, but for LLM inference scheduling.
https://arxiv.org/abs/2411.07447
π― Original Problem:
LLM inference systems lack comprehensive analysis of scheduler performance across configurations. Current deployment requires expensive GPU testing, while development suffers from trial-and-error approaches without known performance limits.
-----
π§ Solution in this Paper:
β INFERMAX introduces an analytical framework using inference cost models to compare different schedulers.
β It formulates optimal scheduling as a constraint satisfaction problem to establish performance upper bounds.
β The framework implements unified scheduling algorithms handling both waiting and running request queues.
β It uses linear cost models to predict batch execution times based on token processing and KV cache access.
-----
π‘ Key Insights from this Paper:
β Preempting requests can reduce GPU costs by 30% compared to avoiding preemptions
β This is most effective with short requests and high memory utilization
β Preempting long requests degrades performance by 30% due to recomputation overhead
β Cost-based scheduling similar to database query optimization proves effective
-----
π Results:
β Comprehensive analysis worth 200 GPU hours of testing
β 30% latency reduction through optimized preemption strategies
β 9% relative error in prediction accuracy compared to actual GPU runs










