23/30
Part 7 of 7 · Follow-upsLearn
The pipeline got slow. Split the time before you change anything
A prep site's Anthropic list asks how you'd debug a slow inference pipeline (1 source). Don't guess at the model. Split a slow request's time into its parts, and find the one that grew:
total time
time to first token
waiting in the queuetoo few GPUs, or a router piling onto one
prefilllonger prompts, or a prefix cache that stopped hitting
every token after it
step timebigger batches, longer contexts, a long prompt in one step
number of tokensthe model now writes longer answers
network and clientslow reading of the stream, proxies that buffer it
Each branch has its own fix, so the split is the debugging. A prompt change that made answers 40% longer looks exactly like a slower model in the total, and nothing like one in the split.