LLM agents execute queries as workflows of dependent inference and tool stages, with different agent and model choices yielding different answer quality and resource demands. The latency of a configuration changes with server load and model residency, while uncertain stage durations and stage dependencies obscure which agents will finish soon and when each model will be needed. We present Presage, an end-to-end serving system that addresses these challenges through server-aware adaptation and predictive scheduling. Its adapter combines a graph-based, query-specific quality predictor with a server-aware latency estimator and efficient Pareto sampling to select configurations predicted to meet quality targets at low latency. During execution, Presage exploits correlations among stages to predict each agent's remaining service time and prioritize execution, and forecasts when stage dependencies will release model demand to guide GPU allocation and model switching. Across diverse workloads, Presage reduces the average end-to-end latency by 10.4-97.1% while improving answer quality by 3.1-80.3% over existing methods.
翻译:暂无翻译