VIII. Scheduling & Parallelism
How requests are batched and scheduled, and how models are split across GPUs and nodes.
31 entries · 5 subsections
Editor’s pick
VIII.1 Batching & Scheduling 6
Orca Paper
Schedules one model iteration at a time, so finished requests leave and new ones join the batch every step; the origin of continuous batching.
Sarathi-Serve Paper
Splits prompts into chunks and mixes them with ongoing decodes under a fixed token budget, so admitting new requests does not stall running ones.
Fairness in Serving Large Language Models (VTC) Paper
Defines fairness over weighted input and output token counts and enforces it with a work-conserving Virtual Token Counter scheduler.
DeepSpeed-FastGen Paper
Introduced Dynamic SplitFuse, which builds each forward pass from prompt chunks and decode tokens to keep the batch at a steady token count.
NanoFlow Paper
Splits batches into nano-batches and overlaps compute-, memory-, and network-bound operations inside one GPU to raise serving throughput.
vLLM Optimization and Tuning Docs
Covers vLLM preemption, chunked-prefill token budgets, and parallelism choices that trade throughput against latency.
VIII.2 Prefill–Decode Disaggregation 6
DistServe Paper
Removes prefill-decode interference by giving each phase its own GPUs, then tunes resources and parallelism per phase against TTFT and TPOT targets.
Splitwise Paper
Runs prompt and token-generation phases on separate machine pools, possibly of different GPU generations, and ships KV state between them.
NIXL Library
Transfer library with one API over GPU, CPU, file, and object memory, used by engines to move KV blocks through UCX, libfabric, GDS, and other plugins.
Mooncake: A KVCache-centric Disaggregated Architecture for LLM Serving Paper
Kimi's serving design, with separate prefill and decode clusters around a KV pool in spare CPU memory and SSD, plus prediction-based rejection under overload.
vLLM Disaggregated Prefilling Docs
Experimental vLLM mode that runs prefill and decode in separate instances linked by KV connectors such as NIXL, LMCache, and Mooncake.
Guide to running SGLang prefill and decode servers separately, with Mooncake, NIXL, or Ascend transfer backends and a router in front.
VIII.3 Parallelism & MoE Serving 10
DeepSeek-V3 Technical Report Paper
Covers MLA, auxiliary-loss-free expert balancing, and multi-token prediction, plus prefill and decode deployment with expert parallelism and redundant experts.
Megatron-LM Paper
Splits attention heads and MLP weights across GPUs so each transformer layer needs only two all-reduces; the tensor parallelism engines still use.
llm-d Wide Expert Parallelism Guide Docs
Deploys a large MoE across nodes with DP/EP, prefill/decode disaggregation, and a router that targets individual data-parallel ranks.
GShard Paper
Scaled sparsely gated MoE transformers across thousands of TPU cores using top-2 routing, expert capacity limits, and XLA sharding annotations.
MegaScale-Infer Paper
Puts attention and expert layers on separate GPU pools and pipelines micro-batches between them over a custom M2N communication library.
Step-3 (Attention-FFN Disaggregation) Paper
Model-system co-design report pairing a factorized attention design with attention-FFN disaggregation to lower decoding cost.
vLLM AFD Plugin Library
External vLLM plugin that runs attention and FFN of DeepSeek-family MoE models as separately scaled services on NVIDIA GPUs and Ascend NPUs.
EPLB Library
DeepSeek's reference algorithm for replicating heavily loaded experts and packing replicas across GPUs and nodes, with hierarchical and global policies.
vLLM Expert Parallel Deployment Docs
How to serve MoE models in vLLM with expert parallelism over data-parallel attention, including DeepEP backends and EPLB settings.
vLLM Parallelism and Scaling Docs
Decision guide for tensor, pipeline, and data parallelism in vLLM on one node or many, including Ray-based multi-node setup.
VIII.4 Long-Context Inference 5
Ring Attention Paper
Splits a long sequence across devices, each computing blockwise attention while passing key-value blocks to its neighbor and hiding the transfer behind compute.
vLLM Context Parallel Deployment Docs
How vLLM spreads long-context prefill and decode across GPUs, covering partial-query and partial-KV strategies and decode context parallelism.
Context Parallelism for Scalable Million-Token Inference Paper
Meta's pass-KV and pass-Q ring-attention variants for inference, scaling long-context prefill across many nodes over RDMA or TCP.
MInference Library
Speeds up long-context prefill by assigning each head a sparse attention pattern offline and building its index online; the kernels now live in vLLM and SGLang.
Star Attention Paper
Two-phase long-sequence inference where hosts encode context blocks with local attention, then query and output tokens attend globally across hosts.
VIII.5 Multi-LoRA & Multi-Tenant Serving 4
S-LoRA Paper
Serves thousands of adapters by keeping them in host memory, paging active ones into a GPU pool shared with the KV cache, and batching them with custom kernels.
vLLM LoRA Adapters Docs
Per-request LoRA serving in vLLM, with multi-adapter batches, runtime loading through API endpoints, and resolver plugins.
Punica Paper
Introduced the SGMV kernel, which batches requests for different LoRA adapters of one base model into a single GPU pass.
SGLang LoRA Serving Docs
Covers multi-adapter batches, dynamic adapter loading, GPU pinning, and kernel backend choice for LoRA serving in SGLang.