Design a Serverless Inference Platform for Hundreds of Open Models

Last updated: November 29, 2026

Quick Overview

Design a multi-tenant serverless API that serves hundreds of open-weight models behind one OpenAI-compatible endpoint, routing requests to GPU replicas, autoscaling per model, and keeping cold starts and tail latency low while GPU utilization stays high.

Together AI
ML System Design
Machine Learning Engineer
Together AI
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Hard

0

0

0 solved


Design a multi-tenant serverless API that serves hundreds of open-weight models behind one OpenAI-compatible endpoint, routing requests to GPU replicas, autoscaling per model, and keeping cold starts and tail latency low while GPU utilization stays high.

This is the core of Together AI's serverless product: a long tail of models with spiky traffic, a few very hot ones, and customers who compare price per token and time to first token across providers. The interviewer looks for a design that treats GPU memory and model loading as the scarce resources and makes explicit trade-offs between utilization and latency.

What the Interviewer Expects
  • Separates the control plane (placement, autoscaling) from the data plane (gateway, router, engines)
  • Routes on load signals such as queue depth and free KV cache, plus prefix-cache affinity
  • Treats model load time as the cold-start bottleneck and attacks it with caching and fast weight loading
  • Handles the hot head and long tail with different placement strategies
  • Defines SLOs for time to first token and inter-token latency and ties autoscaling to them
  • Plans for GPU and node failures mid-stream
Key Topics to Cover
model serving
autoscaling
cold start
request routing
multi-tenancy
GPU utilization
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • How would you serve thousands of customer LoRA adapters on shared base models?
  • What signal should trigger scale-up: GPU utilization, queue length, or something else?
  • How would you give enterprise tenants guaranteed capacity without stranding GPUs?
  • How would you roll out a new engine version or kernel without a latency regression?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Requirements

Functional: one API for chat, completions and embeddings across ~200 models; streaming; per-key rate limits and usage metering. Non-functional: p50 time to first token under ~300 ms for warm models, s...

High-Level Design

Gateway: auth, rate limiting, request validation, tokenization estimate, metering events. Router: per-model replica sets; picks a replica using live stats (queue depth, free KV blocks, running...


Submit Your Answer
Markdown supported

Related Questions