Mixture of experts
45 entries · 10 sections
Editor’s pick
II Inference Engines 10
LMDeploy Tool
Toolkit pairing the C++ TurboMind engine with a PyTorch engine, with weight and KV-cache quantization and Ascend support.
DeepInfer Tool
DeepSeek's production engine, released for offline inference with expert parallelism, batch invariance, and Blackwell and Ascend support.
TokenSpeed Tool
Engine for agentic workloads that splits a C++ state-machine control plane from a Python execution plane, with pluggable kernels.
FastDeploy Tool
PaddlePaddle-based LLM and VLM deployment toolkit from Baidu, with prefill-decode disaggregation and many Chinese accelerator backends.
Chitu Tool
Engine from Tsinghua's PACMAN group for NVIDIA and Chinese accelerators that scales from CPU+GPU hybrid boxes to clusters.
ATOM Tool
AMD's lightweight vLLM-style engine built on AITER kernels for Instinct GPUs, also usable as a vLLM plugin.
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.
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.
FastLLM Tool
C++ engine without a PyTorch dependency that splits dense and MoE models across GPUs, CPU NUMA nodes, and disk.
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.
III Distributed Serving & Orchestration 2
NVIDIA Dynamo Tool
Datacenter-scale serving layer over vLLM, SGLang, and TensorRT-LLM with prefill/decode disaggregation, KV-aware routing, and tiered KV cache.
llm-d Tool
Kubernetes-native distributed inference stack for vLLM and SGLang with prefix-cache-aware routing, prefill/decode disaggregation, and wide expert parallelism.
V Model Compression 2
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.
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.
VI Decoding Acceleration 3
SpecForge Library
SGLang team's framework for training EAGLE-3, P-EAGLE, and DFlash drafters online or offline, producing checkpoints that SGLang serves directly.
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.
TorchSpec Library
Disaggregated drafter training that streams target hidden states from inference engines to trainers through Mooncake instead of writing them to disk.
VII KV Cache & Attention 4
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.
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.
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.
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.
VIII Scheduling & Parallelism 8
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.
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.
IX Kernels & GPU Programming 9
FlashInfer Library
Attention, sampling, MoE, and GEMM kernels built for LLM serving, with JIT-compiled variants used as backends by vLLM and SGLang.
DeepGEMM Library
DeepSeek's JIT-compiled tensor-core kernels for FP8, FP4, and BF16 GEMMs, grouped MoE GEMMs, and MoE fused with communication.
AITER Library
AMD's operator library for inference and training on ROCm, combining Triton, Composable Kernel, and hand-written assembly backends.
TileKernels Library
DeepSeek's TileLang kernels for MoE routing, FP8 and FP4 quantization, Engram gating, and hyper-connections on NVIDIA GPUs and Ascend NPUs.
TileRT Tool
Tile-level runtime that splits LLM operators into fine-grained tasks and overlaps compute, I/O, and communication for low-latency decoding.
DeepEP Library
Expert-parallel dispatch and combine kernels with high-throughput NVLink/RDMA modes for prefill and low-latency modes for decoding.
UCCL Library
GPU communication library with an NCCL/RCCL-compatible collective layer, P2P transfers for KV cache and weights, and GPU-driven EP.
pplx-garden Library
Perplexity's RDMA transfer engine and point-to-point MoE dispatch/combine kernels for ConnectX and AWS EFA; supersedes pplx-kernels.
MoonEP Library
Expert-parallel communication library that equalizes per-rank token load by planning redundant experts online from router outputs.
XV Verticals 2
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.
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.
XVII Case Studies & Engineering Blogs 2
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.
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.
XVIII Learning Resources 3
Interactive Hugging Face book on data, tensor, pipeline, context, and expert parallelism on GPU clusters, with benchmarks for each strategy.
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.
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.