19/30
Part 6 of 7 · The worked exampleLearn

A worked example: a token-generation service for 100,000 requests a second

The prompt, from a prep site's Anthropic question list: design a scalable system for a token-generation service that handles up to 100,000 requests per second (1 source).

1. Clarify. Token can mean a model's output or an access token for an API. Ask. Here it's model output, so the next questions size it:

  • Which model? Assume one the size of the shop's, 7.61 billion parameters in bf16.
  • How long are the prompts and the answers? Assume the shop's: 1,860 tokens in, 250 out, 2,000 tokens of cache each.
  • What do users expect? Streaming, a first token within 0.35 s, and tokens no slower than 30 ms apart.
  • Is it steady or spiky? Plan for 100,000 as the peak.
Predict

Of these assumptions, which one moves the GPU count the most if it doubles?

Pick an answer above to see the rest