Optimise LLM inference latency and throughput

HardSystem design35 minMLESWEPro outline

The question

Your model serving cost is too high and tail latency is poor. Walk through how you would improve both.

What the interviewer is looking for

  • Separates prefill and decode behaviour
  • Uses continuous batching and paged KV cache
  • Considers quantization of weights and KV cache with quality checks
  • Mentions prefix caching and speculative decoding
  • Measures before and after with clear metrics

Your answer

Saved in this browser only. Nobody else sees it.

Why this question

Written by BlogLLM in the style of a publicly reported Alibaba Qwen (Tongyi Lab) question type: design distributed training at very large GPU counts and handle communication bottlenecks; optimise inference latency and throughput with quantization, KV cache and batching.

Reported in: cnblogs.com

Practice question written by BlogLLM based on publicly reported interview formats. Not an official Alibaba Qwen (Tongyi Lab) question.