05Where does head-of-line blocking come from under FCFS, when does shortest-job-first help, and how does it work without job lengths?▼mediumNewAnthropicPerplexityTogether AIunlockedOne 32K-token prompt in front of ten short ones costs each of them more than a second of TTFT. The answer separates the half of the job length you know from the half you do not, and schedules each differently.Open full answer →
08Two tenants share a replica. Should fairness count requests or tokens, and how does the scheduler enforce it step by step?▼hardNewTogether AIFireworks AIBaseten○ sign inRequest-fair scheduling hands 96% of the GPU to the tenant with long documents. The answer derives the token weights from the roofline, shows the counter that enforces them per step, and the one rule that stops a tenant from banking credit.Open full answer →
09The scheduler admits a 100K-token prompt while 64 users are decoding. Walk through what happens to their inter-token latency, step by step.▼mediumNewAnthropicGoogle DeepMindPerplexity○ sign inChunked prefill keeps the decoders running, so the damage looks bounded. The walkthrough shows the inter-token gap climbing from 10 ms to a full second, new arrivals locked out for 8.6 seconds, and a slowdown that outlives the prefill.Open full answer →
11Design a scheduler that admits a request only if it predicts the TTFT and TPOT targets will both hold. What does it predict, and how?▼expertNewOpenAIAnthropicGoogle DeepMind◆ premiumThe two targets are coupled: the TPOT target caps the prefill chunk, which caps prefill throughput, which caps the backlog the TTFT target can absorb. The answer builds the step model, derives the admission rule and shows what to do with requests that fail it.Open full answer →
14Choose the speculative draft length per request at runtime. What signal, what policy, and how much does it beat a fixed gamma?▼expertNewOpenAIAnthropicGoogle DeepMind◆ premiumCode wants eight draft tokens and chat wants two, and a fixed gamma serves both badly. The answer simulates three policies on a mixed workload, finds the gain is 5% with a cheap drafter and 19% with an expensive one, then explains why batching takes most of it away.Open full answer →
06What does SGLang's overlap scheduler hide, how does it build the next batch before the current tokens exist, and what does it cost?▼hardNewxAI (SpaceXSI)DatabricksTogether AI○ sign inThe GPU finishes a decode step and waits while Python appends tokens, checks stop strings and plans the next batch. The answer shows how the loop reorders that work, where the placeholder tokens live, and the request that pays for it.Open full answer →
06Design serving for a chat product and a batch API on the same GPU pool. How much batch work fits, and how do you protect chat latency?▼hardNewOpenAIAnthropicGoogle○ sign inA chat fleet sized for its peak sits more than half idle over a day, and a batch API can soak it up. The answer measures the idle replica-hours, finds what limits batch throughput (it is not compute), and decides where the two workloads meet.Open full answer →
04At peak traffic the engine preempts requests constantly. Diagnose it from the metrics and fix it.▼mediumNewFireworks AITogether AIAnyscaleunlockedPrompts fit, but their outputs exhaust the pool. Work through a page-level memory ledger, choose the next diagnostic check, and test a concurrency fix against queueing and goodput.Open full answer →