How llm-d/llm-d-latency-predictor works
This repository provides separate HTTP services for training latency models from request traces and serving TTFT/TPOT predictions. The principal workflow is trace submission to training, model availability through HTTP synchronization, then single or bulk prediction requests. The graph also captures model readiness and shared model types. Source excerpts are partial, so internal training details and deployment wiring are limited to relationships explicitly shown in the excerpts or README.
Main entry points: prediction_server.py Prediction API · training_server.py Training API · types.py Model types
Components 9
Model training
- Training API
training/training_server.py - Model trainer
training/training_server.py - Model artifacts
training/training_server.py
Prediction serving
- Prediction API
prediction/prediction_server.py - Latency predictor
prediction/prediction_server.py - Model synchronizer
prediction/prediction_server.py
Shared domain
- Model types
common/types.py
Other components
- Ecosystem client
- Training service
Connections 9
- Ecosystem client → Training API: submits traces
README.md - Training API → Model trainer: adds samples
training/training_server.py - Ecosystem client → Prediction API: requests predictions
README.md - Prediction API → Latency predictor: predicts
prediction/prediction_server.py - Prediction API → Model synchronizer: reloads models
prediction/prediction_server.py - Model synchronizer → Training service: checks and downloads
prediction/prediction_server.py - Training service → Model artifacts: provides model files
training/training_server.py - Model trainer → Model types: uses model types
training/training_server.py - Latency predictor → Model types: uses model types
prediction/prediction_server.py