Quick optimization checklist
Understanding delay time
Two metrics affect request response time:
Delay time breaks down into:
- Initialization time: Downloading Docker image
- Cold start time: Loading model into GPU memory
If cold start exceeds 7 minutes, the worker is marked unhealthy. Extend with
RUNPOD_INIT_TIMEOUT=800 (seconds).Reduce cold starts
Use cached models (recommended)
For models on Hugging Face, cached models provide the fastest cold starts and lowest cost.Bake models into images
For private models, embed them in your Docker image. Models load from high-speed local NVMe storage instead of downloading at runtime.Maintain active workers
Set active workers > 0 to eliminate cold starts entirely. Formula:Active workers = (Requests/min × Request duration in seconds) / 60
Example: 6 requests/min × 30 seconds = 3 active workers needed.