How do latency and compute constraints influence model selection?

Quick Overview

Asks how serving limits such as tail latency, throughput, memory, cost and target hardware shape which model you choose. Tests the ability to set a budget, fit stronger models into it with compression and cascades, and compare candidates on accuracy and latency together.

How do latency and compute constraints influence model selection?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How do latency and compute constraints influence model selection? ```hint Start from the budget Before comparing any two models, list what you would have to measure on the target hardware, and which of those numbers the product actually sets a limit on. ``` ```hint Keep the accuracy, cut the cost Think about ways to keep most of a large model's accuracy while paying much less for each prediction at serving time. ``` ### What a Strong Answer Covers - Which constraints make up the budget (tail latency, throughput, memory, cost, target hardware) and why tail latency is the number to hold - How the budget narrows the candidate model families, including the cost of computing features - Techniques that fit a stronger model into a fixed budget - How to compare candidates on accuracy and latency together and make the final choice ### Follow-up Questions - Why hold the p99 latency instead of the mean, and how would you measure it? - How does dynamic batching affect throughput and latency, and when does it hurt? - How would you check whether INT8 quantization hurts accuracy for your model, and what would you do if it does? - How would you decide between a single mid-sized model and a two-stage cascade?

Overview: Asks how serving limits such as tail latency, throughput, memory, cost and target hardware shape which model you choose. Tests the ability to set a budget, fit stronger models into it with compression and cascades, and compare candidates on accuracy and latency together.

General logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

How do latency and compute constraints influence model selection?

What a Strong Answer Covers Guidance

  • Which constraints make up the budget (tail latency, throughput, memory, cost, target hardware) and why tail latency is the number to hold
  • How the budget narrows the candidate model families, including the cost of computing features
  • Techniques that fit a stronger model into a fixed budget
  • How to compare candidates on accuracy and latency together and make the final choice

Follow-up Questions Guidance

  • Why hold the p99 latency instead of the mean, and how would you measure it?
  • How does dynamic batching affect throughput and latency, and when does it hurt?
  • How would you check whether INT8 quantization hurts accuracy for your model, and what would you do if it does?
  • How would you decide between a single mid-sized model and a two-stage cascade?