A served LLM needs continuous batching, KV-cache management, paged attention, and quantization to hit production QPS. Inference servers like vLLM and TGI handle this — exposing OpenAI-compatible APIs while squeezing 5-10x throughput from each GPU.
Build → deploy pipeline for a quantized model on Kubernetes.
vs static batching, gives 3-10x throughput because slow requests don't block the batch. Standard in vLLM, TGI.
Treats KV cache like virtual memory — fixed pages, no fragmentation. Cuts GPU memory waste from ~60% to <5%.
AWQ-INT4 or FP8 gives ~2x throughput with <1% quality loss on most benchmarks. Always benchmark on your goldens.
For 70B+ models, split across 2-8 GPUs (TP). Communication overhead is real — TP=4 is usually the sweet spot.
Long-prompt + short-output and short-prompt + long-output behave differently. Bench with your actual traffic mix.
Prefix sharing across requests (same system prompt) reuses KV pages. Order requests by prefix to maximize sharing.
Sign in to share your feedback and join the discussion.