← All questions
Inference & ServingHard· Model Serving· Throughput vs Latency· Speculative Decoding· Resource Allocation

How would you serve the same 70B model to both an inter...

Attempting to use a single serving configuration for both interactive and batch workloads is suboptimal for both. Instead, you should implement separate serving paths. The interactive path should be optimized for latency, utilizing smaller batches and techniques like speculative decoding. The batch pipeline should be optimized for throughput and cost, utilizing larger batch sizes, more aggressive quantization, and relaxed TTFT SLOs.

Code playground (Python)