Inference, Serving & Production·Question 33 of 76Intermediate

How do you choose inference hardware: NVIDIA GPUs, AMD, TPUs, or cloud silicon like Inferentia and Trainium?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Start from the workload's binding constraint and the software you would have to own, not the spec sheet, and settle it with a benchmark denominated in dollars per million tokens at your SLO.

Full worked answer

Start from the workload's binding constraint and the software you would have to own, not the spec sheet, and settle it with a benchmark denominated in dollars per million tokens at your SLO.

Match the constraint. Decode is memory bandwidth and capacity bound, so HBM capacity and TB/s matter more than peak FLOPS. Capacity has a second-order effect people miss: a 192 GB MI300X can hold a model that would need two 80 GB cards, which removes tensor-parallel all-reduces from every layer and can beat the "faster" option. An H200 at 141 GB tells a similar story. Prefill and large-batch serving are compute bound, so there tensor-core throughput and low-precision support (FP8, and FP4 on Blackwell-class parts) is what you are buying.

Software usually casts the deciding vote. NVIDIA gets day-one support in vLLM, SGLang and TensorRT-LLM, plus the widest kernel coverage for speculative decoding, LoRA and structured output. ROCm has closed a lot of ground: MI355X is in the main open stacks, MI450-based Helios racks are running production workloads for Anthropic, Meta, Microsoft, OpenAI and Oracle Cloud Infrastructure, ROCm 10 is out, and vLLM's Model Runner V2 is the default on ROCm. TPUs can now be served from PyTorch through TorchTPU with vLLM or SGLang as well as through JAX, and can be excellent on price-performance. Trainium has the TorchNeuron PyTorch backend (beta on Trn2 and Trn3) alongside Neuron compilation. So the risk on non-NVIDIA silicon is less a different framework and more operator and kernel coverage, dynamic shapes and maturity; the payoff is unit cost if your model and features are well supported.

The metric that matters is dollars per million tokens at your SLO, on your model, with your traffic shape. Sticker price per GPU-hour is meaningless. A cheaper chip that halves your achievable batch size is more expensive, and a chip that misses your latency target at any batch size is infinitely expensive.

Then reality. Availability and commitment terms often dominate the technical comparison: the best chip you cannot get for six months loses to the adequate one you can reserve today. Multi-minute weight loads make spot capacity a poor fit for interactive serving. Hedge portability by keeping an OpenAI-compatible serving interface and avoiding hand-written kernels, so switching is a config change and a requalification, not a rewrite.

What a good answer covers

  • Start from the workload's binding constraint and the software you would have to own, not the spec sheet,…
  • Decode is memory bandwidth and capacity bound, so HBM capacity and TB/s matter more than peak FLOPS
  • Capacity has a second-order effect people miss
  • An H200 at 141 GB tells a similar story
  • Prefill and large-batch serving are compute bound, so there tensor-core throughput and low-precision…

Key terms: Match the constraint · The metric that matters · Then reality

Interviewer follow-ups to expect

  1. Why might one GPU with more HBM beat two smaller GPUs with the same total memory?

  2. What would make you reject a chip that wins on dollars per token?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep