All Questions
Llm Inference Serving easy

A non-streaming endpoint generates reports of about 2,000 tokens at roughly 40 tokens/s per sequence. Your API gateway has a 30-second idle timeout, and many requests fail with 504 errors. What is the best fix?

  1. A Add more GPU replicas, since the extra hardware will make each individual report generate faster.
  2. B Increase the batch size, so the server finishes more reports per second and each completes sooner.
  3. C Stream tokens or use an async job, since a ~50 s generation cannot finish in a 30 s idle window.
  4. D Retry failed requests automatically, since the 504s are transient and a retry usually succeeds.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions