01 · LLM inference server
Pacer
An LLM inference server that keeps its latency promises when the hardware slows down.
Built from scratch in PyTorch: paged KV cache, continuous batching and chunked prefill, verified token-exact. The scheduler predicts each step’s latency with a physics-informed model, wraps the prediction in an online conformal risk bound, and orders prefills by deadline.
- 85%
- of requests on time during a hardware slowdown, vs 49% for the best baseline
- 8.5–10.4%
- observed risk against a 10% target, under drift
- 7.0 vs 4.71
- req/s of capacity at a 90% SLO, vs the best fixed chunk budget
- 7.3%
- latency-model error, where gradient-boosted trees reached 50.8%
Python · PyTorch · Conformal prediction · C++17 · pybind11
Measured on CPU. A C++17 port of the scheduler hot path (8.6× faster) is in an open pull request.




