Inference Engineering

Vertical

Mixture of experts

45 entries · 10 sections

Editor’s pick

II Inference Engines 10

  1. LMDeploy Tool

    Toolkit pairing the C++ TurboMind engine with a PyTorch engine, with weight and KV-cache quantization and Ascend support.

    Datacenter Engines · Apache-2.0 · 8.2k stars · Updated 2026-11

  2. DeepInfer Tool

    DeepSeek's production engine, released for offline inference with expert parallelism, batch invariance, and Blackwell and Ascend support.

    Datacenter Engines · Apache-2.0 · 26k stars · Updated 2026-11

  3. TokenSpeed Tool

    Engine for agentic workloads that splits a C++ state-machine control plane from a Python execution plane, with pluggable kernels.

    Datacenter Engines · MIT · 3k stars · Updated 2026-11

  4. FastDeploy Tool

    PaddlePaddle-based LLM and VLM deployment toolkit from Baidu, with prefill-decode disaggregation and many Chinese accelerator backends.

    Datacenter Engines · Apache-2.0 · 3.7k stars · Updated 2026-09

  5. Chitu Tool

    Engine from Tsinghua's PACMAN group for NVIDIA and Chinese accelerators that scales from CPU+GPU hybrid boxes to clusters.

    Datacenter Engines · Apache-2.0 · 3k stars · Updated 2026-11

  6. ATOM Tool

    AMD's lightweight vLLM-style engine built on AITER kernels for Instinct GPUs, also usable as a vLLM plugin.

    Datacenter Engines · MIT · 209 stars · Updated 2026-11

  7. KTransformers Tool

    CPU–GPU heterogeneous runtime that keeps MoE experts on AMX/AVX-512 CPU kernels and plugs into SGLang; also supports MoE fine-tuning.

    Hybrid CPU–GPU & Offloading · Apache-2.0 · 20k stars · Updated 2026-11

  8. ik_llama.cpp Tool

    Fork of llama.cpp with extra quantization types and faster CPU and hybrid CPU/GPU paths, widely used to run large MoE models at home.

    Hybrid CPU–GPU & Offloading · MIT · 3.4k stars · Updated 2026-11

  9. FastLLM Tool

    C++ engine without a PyTorch dependency that splits dense and MoE models across GPUs, CPU NUMA nodes, and disk.

    Hybrid CPU–GPU & Offloading · Apache-2.0 · 5.1k stars · Updated 2026-11

  10. AirLLM Library

    Streams weights layer by layer, or expert by expert for MoE, so very large models run on GPUs with only a few gigabytes of memory.

    Hybrid CPU–GPU & Offloading · Apache-2.0 · 43k stars · Updated 2026-11

III Distributed Serving & Orchestration 2

  1. NVIDIA Dynamo Tool

    Datacenter-scale serving layer over vLLM, SGLang, and TensorRT-LLM with prefill/decode disaggregation, KV-aware routing, and tiered KV cache.

    Distributed & Disaggregated Serving · Apache-2.0 · 8.6k stars · Updated 2026-11

  2. llm-d Tool

    Kubernetes-native distributed inference stack for vLLM and SGLang with prefix-cache-aware routing, prefill/decode disaggregation, and wide expert parallelism.

    Distributed & Disaggregated Serving · Apache-2.0 · 5.3k stars · Updated 2026-11

V Model Compression 2

  1. LLM Compressor Library

    Applies GPTQ, AWQ, SmoothQuant, and FP8 or NVFP4 recipes to Hugging Face models and saves compressed-tensors checkpoints that vLLM loads directly.

    Quantization Toolkits · Apache-2.0 · 4k stars · Updated 2026-11

  2. NVIDIA Model Optimizer Library

    Formerly TensorRT Model Optimizer; FP8, NVFP4, and INT4 quantization plus pruning and distillation, exporting checkpoints to TensorRT-LLM, vLLM, and SGLang.

    Quantization Toolkits · Apache-2.0 · 5.7k stars · Updated 2026-11

VI Decoding Acceleration 3

  1. SpecForge Library

    SGLang team's framework for training EAGLE-3, P-EAGLE, and DFlash drafters online or offline, producing checkpoints that SGLang serves directly.

    Drafter Training · MIT · 1.3k stars · Updated 2026-11

  2. Speculators Library

    Generates target hidden states with vLLM, trains EAGLE-3, P-EAGLE, DFlash, and DSpark drafters, and stores them in a format vLLM loads as-is.

    Drafter Training · Apache-2.0 · 976 stars · Updated 2026-11

  3. TorchSpec Library

    Disaggregated drafter training that streams target hidden states from inference engines to trainers through Mooncake instead of writing them to disk.

    Drafter Training · MIT · 268 stars · Updated 2026-11

VII KV Cache & Attention 4

  1. DeepSeek-V2 (Multi-head Latent Attention) Paper

    Introduced multi-head latent attention, which caches one compressed latent vector per token instead of separate keys and values for every head.

    Sparse, Linear & Hybrid Attention · 2024

  2. DeepSeek-V3.2 (DeepSeek Sparse Attention) Paper

    Adds DeepSeek Sparse Attention on top of MLA, where a cheap indexer ranks past tokens and attention runs only over the selected subset.

    Sparse, Linear & Hybrid Attention · 2025

  3. DeepSeek-V4 (Compressed Sparse Attention) Paper

    Preview report on interleaving Compressed Sparse Attention and Heavily Compressed Attention layers to make million-token contexts affordable to serve.

    Sparse, Linear & Hybrid Attention · 2026

  4. Kimi Linear Paper

    Hybrid architecture that interleaves Kimi Delta Attention, a gated linear attention, with MLA layers to cut KV cache size for long contexts.

    Sparse, Linear & Hybrid Attention · 2025 · Code

VIII Scheduling & Parallelism 8

  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.

    Parallelism & MoE Serving · 2024 · Code

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

    Parallelism & MoE Serving

  3. GShard Paper

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

    Parallelism & MoE Serving · ICLR 2021

  4. MegaScale-Infer Paper

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

    Parallelism & MoE Serving · SIGCOMM 2025

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

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

    Parallelism & MoE Serving · 2025 · Code

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

    Parallelism & MoE Serving · experimental · Apache-2.0 · 254 stars · Updated 2026-11

  7. EPLB Library

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

    Parallelism & MoE Serving · maintenance · MIT · 1.5k stars · Updated 2025-03

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

    Parallelism & MoE Serving

IX Kernels & GPU Programming 9

  1. FlashInfer Library

    Attention, sampling, MoE, and GEMM kernels built for LLM serving, with JIT-compiled variants used as backends by vLLM and SGLang.

    Kernel Libraries · Apache-2.0 · 7k stars · Updated 2026-11

  2. DeepGEMM Library

    DeepSeek's JIT-compiled tensor-core kernels for FP8, FP4, and BF16 GEMMs, grouped MoE GEMMs, and MoE fused with communication.

    Kernel Libraries · MIT · 9.2k stars · Updated 2026-11

  3. AITER Library

    AMD's operator library for inference and training on ROCm, combining Triton, Composable Kernel, and hand-written assembly backends.

    Kernel Libraries · MIT · 621 stars · Updated 2026-11

  4. TileKernels Library

    DeepSeek's TileLang kernels for MoE routing, FP8 and FP4 quantization, Engram gating, and hyper-connections on NVIDIA GPUs and Ascend NPUs.

    Kernel Libraries · MIT · 2.1k stars · Updated 2026-10

  5. TileRT Tool

    Tile-level runtime that splits LLM operators into fine-grained tasks and overlaps compute, I/O, and communication for low-latency decoding.

    Megakernels & Superoptimizers · experimental · MIT · 1.9k stars · Updated 2026-09

  6. DeepEP Library

    Expert-parallel dispatch and combine kernels with high-throughput NVLink/RDMA modes for prefill and low-latency modes for decoding.

    Collective Communication · MIT · 10k stars · Updated 2026-11

  7. UCCL Library

    GPU communication library with an NCCL/RCCL-compatible collective layer, P2P transfers for KV cache and weights, and GPU-driven EP.

    Collective Communication · Apache-2.0 · 1.6k stars · Updated 2026-11

  8. pplx-garden Library

    Perplexity's RDMA transfer engine and point-to-point MoE dispatch/combine kernels for ConnectX and AWS EFA; supersedes pplx-kernels.

    Collective Communication · MIT · 959 stars · Updated 2026-09

  9. MoonEP Library

    Expert-parallel communication library that equalizes per-rank token load by planning redundant experts online from router outputs.

    Collective Communication · MIT · 1.2k stars · Updated 2026-10

XV Verticals 2

  1. DeepSeek-R1 Paper

    Report on training reasoning models with large-scale reinforcement learning, the source of the long thinking traces that reasoning-aware serving has to handle.

    Reasoning & Test-Time Compute · Nature 2025

  2. prime-rl Library

    Asynchronous RL framework using FSDP2 for training and vLLM for inference, with Slurm deployment and prefill-decode disaggregation for large MoE models.

    RL Rollouts & Post-Training · Apache-2.0 · 2.3k stars · Updated 2026-11

XVII Case Studies & Engineering Blogs 2

  1. Scaling LLM Inference: Tensor, Context, and Expert Parallelism (Meta) Article

    Meta engineers describe the parallelism techniques they use to cut latency for large-model inference, with measurements for long-context prefill.

    Production Case Studies

  2. Better MoE Model Inference with Warp Decode (Cursor) Article

    Cursor's MoE decode kernel in which each warp computes one output value, with B200 measurements for a Qwen-style model on its internal inference system.

    Production Case Studies

XVIII Learning Resources 3

  1. The Ultra-Scale Playbook Book

    Interactive Hugging Face book on data, tensor, pipeline, context, and expert parallelism on GPU clusters, with benchmarks for each strategy.

    Books

  2. DeepSeek-V3/R1 Inference System Overview Article

    First-hand account of serving V3/R1 with cross-node expert parallelism, a prefill-decode split, compute-communication overlap, and load balancing.

    Deep Dives & Essays · CC0-1.0 · 8.1k stars · Updated 2025-05

  3. Deploying DeepSeek with PD Disaggregation and Large-Scale Expert Parallelism Article

    Reproduces DeepSeek-style serving in SGLang on 96 H100s by combining prefill-decode disaggregation, DeepEP, two-batch overlap, and EPLB.

    Deep Dives & Essays