Serving Multi-Stage Generative Models by Decode-Time Compute Characteristics
summary
An inference engine prototype for multi‑stage generative models implements decoupled schedulers per autoregressive loop and a control-plane/data-plane (MQ metadata + RDMA/MECO payloads) to move tokens between stages. It outlines a five‑stage pipeline (preprocess, encoders, thinker, token+MTP, codec→WAV), fuses token+MTP to avoid cross‑schedule latency, and enforces separate KV‑cache pools and stage‑specific memory layouts to contain peaks like a 1‑minute video encoder hitting >30 GB. Roadmap adds diffusion, cross‑node pipelines, and more model types.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 0:27Agenda and Principles
- 1:29Multi Stage Decoding
- 1:54Omni and TTS Examples
- 5:15Why Single Loop Fails
- 6:45Which Models Fit Where
- 8:53Compute Characteristics
- 10:23Decoupled Scheduling
- 10:53Scheduler Communication
- 12:12KV Cache and Memory
- 14:31Five Stage Pipeline
- 16:36Fusing Token and MTP
- 17:54Memory Isolation in Practice
- 19:26Recap and Roadmap
- 21:37Q and A Use Cases
- 26:22Contributing to SGLang
