Learning Sets / Serving and Scale
Serving and Scale
Run a model on your own hardware: batch requests, quantize, decode speculatively, size, scale and buy capacity, and keep the slowest replies in check.
Covers: Batching, Quantization, Speculative Decoding, Capacity and Autoscaling, Tail Latency, Prefill, Decode and KV Cache, GPU Capacity Planning.
Start with E-09, The Slowest One Decides. Accountneeded
- E-09 The Slowest One Decides Work out how often a chat message waits longer than its checks usually take Accountneeded
A game checks every chat message with several small models at once, and posts it when all of them have answered. Work out how often a message waits longer than its checks usually take.
- Difficulty
- Easy 2
- Type
- Estimate the Cost, Exact answer
- Points
- 20 points
- E-14 Busy Enough to Commit? Find how busy a GPU must be before a one-year commitment saves money Accountneeded
A game studio rents one GPU by the hour. Find how busy it must be before a one-year commitment costs less.
- Difficulty
- Easy 2
- Type
- Estimate the Cost, Exact answer
- Points
- 20 points
- E-06 Bigger Batches, Slower Words Pick the batch size that finishes the most replies, with each one finished in time Accountneeded
A financial-services group runs a model on its own GPUs. Find how many replies one GPU can finish in an hour, with every reply finished within its time limit.
- Difficulty
- Medium 4
- Type
- Estimate the Cost, Exact answer
- Points
- 40 points
- M-13 Four Bits or Eight? Pick the quantized model format that serves a deployment fastest Accountneeded
A helpdesk company wants to store its model's weights in fewer bits. Read its benchmark and the deployment, and pick the format that serves the model fastest.
- Difficulty
- Medium 4
- Type
- Compare Two Designs, Multiple choice
- Points
- 40 points
- M-42 Back Up, Still Down Find out why an AI assistant stays down after its failed servers came back This Week’s Incident: Part 1 of 4 Accountneeded
Half of a company’s GPU servers failed this afternoon and came back about half an hour ago, but its assistant is still down.
- Difficulty
- Medium 4
- Type
- Diagnose, Multiple choice
- Points
- 40 points
- E-13 One Message, Many Calls Work out how many calls reach the fleet, compared with what it can finish This Week’s Incident: Part 2 of 4 Locked
Three layers each retry a failing call, so one message reaches the GPU fleet many times.
- Difficulty
- Easy 3
- Type
- Estimate the Cost, Exact answer
- Points
- 30 points
- M-43 The First Move Choose what to do first to bring the assistant back This Week’s Incident: Part 3 of 4 Locked
The assistant is still down and the runbook is open. Choose what to do first.
- Difficulty
- Medium 4
- Type
- Choose the Approach, Multiple choice
- Points
- 40 points
- M-44 What Kept It Down Choose the one change that lets the next outage end on its own This Week’s Incident: Part 4 of 4 Locked
The assistant is back, and the team can fund one change from the postmortem. Choose the one that lets the next outage end by itself.
- Difficulty
- Medium 4
- Type
- Choose the Approach, Multiple choice
- Points
- 40 points
- M-45 Nine O’Clock, Every Weekday Find why users wait each morning even though the autoscaler adds replicas quickly Accountneeded
A financial-services group’s search assistant makes its first users wait every weekday morning, though its autoscaler adds replicas within a minute. Find the change that ends the wait.
- Difficulty
- Medium 4
- Type
- Diagnose, Multiple choice
- Points
- 40 points
- E-07 Draft Model at Rush Hour Decide when to run speculative decoding to get the fastest average reply time Accountneeded
A small draft model can make a large model write replies faster. Work out the fastest average reply time over a day of quiet and busy hours.
- Difficulty
- Medium 5
- Type
- Compare Two Designs, Exact answer
- Points
- 50 points
- E-15 Cheaper by the Hour Price a million tokens on two GPUs at the speed users need Accountneeded
A helpdesk company picks between two GPU types for its assistant. Find which serves a million tokens for less at the speed users need, and give that cost.
New to batching? Try E-06, Bigger Batches, Slower Words first. Accountneeded
- Difficulty
- Medium 5
- Type
- Compare Two Designs, Exact answer
- Points
- 50 points
- M-23 After the Surge Read how a self-hosted model behaved after a traffic surge, and pick the change to make Accountneeded
A ten-minute traffic surge hit a self-hosted model, and the service still hasn’t recovered.
- Difficulty
- Medium 5
- Type
- Read the Chart, Multiple choice
- Points
- 50 points
- M-25 The Stream That Froze Find what to change when users say their streaming replies keep stalling Accountneeded
Read one replica’s log and its config, then pick the change to make.
- Difficulty
- Medium 5
- Type
- Choose the Approach, Multiple choice
- Points
- 50 points
- M-47 One Upgrade Each Pick the change that meets each tool’s targets Accountneeded
A research firm runs two tools on one model, and each misses a target. Pick the pair of changes that meets every target.
- Difficulty
- Medium 5
- Type
- Compare Two Designs, Multiple choice
- Points
- 50 points
- C-13 Ninety-Nine in a Hundred Keep a latency promise without paying for every request twice Best on a computer Accountneeded
A helpdesk company promises tenants that 99 of every 100 replies arrive within a few seconds. Set its fleet’s request policy so that it keeps that promise.
New to tail latency? Try E-09, The Slowest One Decides first. Accountneeded
- Difficulty
- Medium 7
- Type
- Design Under Constraints, Config
- Points
- 70 points
- K-07 The Slowest One Percent Write code that meets the reply time promised for each kind of ticket, when a few model calls run far too long Best on a computer Accountneeded
Player-support replies usually arrive on time, but a few model calls take far too long.
New to tail latency? Try E-09, The Slowest One Decides first. Accountneeded
- Difficulty
- Hard 8
- Type
- Design Under Constraints, Code
- Points
- 80 points
- M-24 Two Workloads, Eight Replicas Choose how a router should send each kind of traffic within its own pool Accountneeded
Two workloads each run on their own replicas. Read how each one behaves, and choose its routing rule.
New to prefill and decode? Try M-25, The Stream That Froze first. Accountneeded
- Difficulty
- Hard 8
- Type
- Compare Two Designs, Multiple choice
- Points
- 60 points
- M-46 How Many to Commit? Choose a one-year GPU commitment from a month of demand Accountneeded
Corvane Group’s platform team rents GPUs for its AI assistants. Read a month of demand, and choose how many GPUs to commit for a year.
New to GPU commitments? Try E-14, Busy Enough to Commit? first. Accountneeded
- Difficulty
- Hard 8
- Type
- Read the Chart, Multiple choice
- Points
- 60 points