FastAPI in front
vLLM/TGI both expose APIs, but you usually want a thin app-layer in front of them — for auth, rate limiting, request logging, output validation, and your own business logic. FastAPI is the canonical pick.
The five things to monitor in production
- Latency — P50, P95, P99 response times. Watch for regressions after model swaps.
- Quality — sample outputs and run them through LLM-as-judge periodically. Catches silent quality drift.
- Drift — compare current input distributions to baseline. Did your users start asking different questions?
- Errors — log and alert on malformed outputs, refusals, hallucinations, schema validation failures.
- Cost — GPU utilization, requests per dollar, per-customer cost. The flywheel is broken if you can't see the dollar curve.