Design a model inference pipeline
I was asked this
No reports yet. Sign in to say where you were asked it.
An AI/ML design interview question asked in Nuro's technical phone screen, last asked Jan 2026. It tests model serving, inference and ml infrastructure.
Design a production inference pipeline for a trained model that serves predictions to downstream applications. Treat it as ML infrastructure: how online requests come in and reach the right model, how model artifacts are stored, versioned and deployed, how features are fetched at request time, and how the service stays fast, available and safe to change.
Requirements
- Functional: an online prediction API; routing to the right model and version; features fetched or computed at inference time; a batch path for offline scoring; model artifacts stored, versioned, validated and deployed; A/B tests, canaries and rollback for new versions.
- Non-functional: low latency (tens of milliseconds at p99 is a reasonable target), high availability, horizontal scaling, efficient use of GPUs or CPUs, monitoring of model quality, data drift, latency, errors and resource use.
Clarifying questions
- What kind of model (size, CPU or GPU), and what latency and throughput targets?
- Online, batch, or both? How many requests per second at peak?
- Where do features come from, and must training and serving compute them the same way?
- How often are new versions deployed, and who decides they are ready?
- Are labels available later to measure quality in production?
What a strong answer covers
- Request path: API gateway, a router that picks the model and version (by tenant, experiment or canary rule), model servers behind a load balancer.
- A model registry with versioned artifacts, metadata and validation gates (offline metrics, latency tests, a check against a reference set) before deployment.
- A feature store with an online low-latency store and the same definitions used offline, to avoid training–serving skew; caching and timeouts with fallbacks for missing features.
- Throughput: dynamic batching on GPUs, model optimizations (quantization, compiled runtimes), autoscaling on queue depth or utilization.
- Safe rollout: shadow traffic, canary with automatic rollback on error or latency regressions, A/B tests with the metrics decided up front.
- Monitoring: latency, errors and resources per version; input drift and prediction drift; quality once labels arrive; prediction logs for debugging and retraining.
Follow-ups
- A new version is better offline but worse in the A/B test. What could explain it?
- The feature store is down. What does the service return?
- Serve 50 small models for different customers on shared GPUs.
Where it's asked
- Nuro · Technical phone screen · Last asked Jan 2026
What it tests
model serving · inference · ml infrastructure
No official answer yet. Draw yours on the right; publish it and it shows under Community.
Nothing published yet. Publish your canvas and it shows here for others to open and remix.
