Design LLM Inference Serving on MI300X Accelerators

Last updated: November 29, 2026

Quick Overview

Design a service that serves a 70B-parameter chat model on MI300X-class GPUs with 192 GB of HBM each, meeting a latency target for time to first token and inter-token latency while maximizing tokens per second per GPU.

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

0

0

0 solved


Design a service that serves a 70B-parameter chat model on MI300X-class GPUs with 192 GB of HBM each, meeting a latency target for time to first token and inter-token latency while maximizing tokens per second per GPU.

An ML system design round in the style of AMD's AI inference and ROCm framework teams, who work on vLLM and SGLang support where the large HBM capacity of MI300X changes the parallelism trade-off. The interviewer checks memory math, batching and KV cache design, parallelism choices and serving reliability.

What the Interviewer Expects
  • Do the memory math for weights and KV cache
  • Choose tensor parallel degree using HBM capacity and Infinity Fabric bandwidth
  • Explain continuous batching and paged KV cache
  • Separate prefill and decode concerns and their latency metrics
  • Cover quantization (FP8 weights and KV cache) and its quality checks
  • Describe routing, autoscaling and overload behavior
Key Topics to Cover
LLM inference
KV cache
continuous batching
tensor parallelism
quantization
capacity planning
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 long 128k-token contexts without exhausting KV memory?
  • When would you disaggregate prefill and decode onto different GPUs?
  • How would speculative decoding help, and when does it hurt?
  • How would you detect a quality regression after switching to FP8 kernels?
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

Targets: p95 time to first token under 1 s for 2k-token prompts, p95 inter-token latency under 50 ms, throughput as high as possible. Model: 70B dense transformer with grouped query attention (80 laye...

High-Level Design

A gateway handles auth and rate limits and routes to model replicas. Each replica is an inference engine (vLLM on ROCm) running on one or more GPUs with continuous batching, a paged KV cache and fused...


Submit Your Answer
Markdown supported

Related Questions