Inference Engineering

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

  1. 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.

    OSDI 2022

  2. 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.

    OSDI 2024 · Code

  3. 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.

    OSDI 2024 · Code

  4. 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.

    2024 · Code

  5. NanoFlow Paper

    Splits batches into nano-batches and overlaps compute-, memory-, and network-bound operations inside one GPU to raise serving throughput.

    OSDI 2025 · Code

  6. 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

  1. 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.

    OSDI 2024 · Code

  2. Splitwise Paper

    Runs prompt and token-generation phases on separate machine pools, possibly of different GPU generations, and ships KV state between them.

    ISCA 2024

  3. 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.

    Apache-2.0 · 1.4k stars · Updated 2026-11

  4. 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.

    FAST 2025 · Code

  5. 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.

  6. SGLang PD Disaggregation Docs

    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

  1. 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.

    2024 · Code

  2. 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.

    2019 · Code

  3. 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.

  4. GShard Paper

    Scaled sparsely gated MoE transformers across thousands of TPU cores using top-2 routing, expert capacity limits, and XLA sharding annotations.

    ICLR 2021

  5. MegaScale-Infer Paper

    Puts attention and expert layers on separate GPU pools and pipelines micro-batches between them over a custom M2N communication library.

    SIGCOMM 2025

  6. Step-3 (Attention-FFN Disaggregation) Paper

    Model-system co-design report pairing a factorized attention design with attention-FFN disaggregation to lower decoding cost.

    2025 · Code

  7. 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.

    experimental · Apache-2.0 · 254 stars · Updated 2026-11

  8. EPLB Library

    DeepSeek's reference algorithm for replicating heavily loaded experts and packing replicas across GPUs and nodes, with hierarchical and global policies.

    maintenance · MIT · 1.5k stars · Updated 2025-03

  9. 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.

  10. 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

  1. 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.

    ICLR 2024 · Code

  2. 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.

  3. 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.

    MLSys 2025

  4. 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.

    maintenance · MIT · 1.2k stars · Updated 2026-11

  5. 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.

    ICML 2025 · Code

VIII.5 Multi-LoRA & Multi-Tenant Serving 4

  1. 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.

    MLSys 2024

  2. vLLM LoRA Adapters Docs

    Per-request LoRA serving in vLLM, with multi-adapter batches, runtime loading through API endpoints, and resolver plugins.

  3. Punica Paper

    Introduced the SGMV kernel, which batches requests for different LoRA adapters of one base model into a single GPU pass.

    MLSys 2024

  4. SGLang LoRA Serving Docs

    Covers multi-adapter batches, dynamic adapter loading, GPU pinning, and kernel backend choice for LoRA serving in SGLang.