Skip to main content

6 posts tagged with "Disaggregation"

Disaggregated inference serving

View All Tags

MoRI in llm-d: P/D Disaggregation and Expert Parallelism for Long Context with GLM-5.3 on MI355X

· 24 min read

Serving a large mixture-of-experts (MoE) model with llm-d moves two kinds of data between GPUs. With prefill/decode disaggregation (P/D), the KV cache that prefill computes has to reach the decode GPUs. With expert parallelism, every MoE layer sends tokens to the GPUs that hold their experts and gathers the results. We wanted AMD users of llm-d to carry both through the AMD communication library MoRI (Modular RDMA Interface), straight from stock llm-d and vLLM.

We wired MoRI upstream into the llm-d routing sidecar and vLLM's KV connector and expert-parallel backend. We then ran amd/GLM-5.3-Quark-MXFP4-AttnFP8, a MoE model, at 128k–512k context on AMD Instinct™ MI355X GPUs. The first half of this post covers the stack; the second covers the case study: where P/D helped and what it cost.

Bringing First-Class SGLang Serving to llm-d

· 12 min read
Yuchen Tian
Software Engineer, Google
Sage Ahrac
Research Engineer, IBM Research
Nishtha Jain
Software Engineering Manager, Google
Bob Tian
Software Engineer, Google
Shangming Cai
Core Maintainer, SGLang
Rain Jiang
Core Maintainer, SGLang
Abdullah Gharaibeh
Senior Staff Software Engineer, Google

In Serving GLM-5.2 for Agentic Workloads on llm-d, we showed how llm-d serves long-context coding agents on NVIDIA H200 GPUs with vLLM—combining disaggregated prefill and decode pools, wide expert parallelism, prefix- and load-aware routing, and tiered KV caching. Since then, contributors from the llm-d and SGLang communities have made SGLang a first-class, Kubernetes-native inference engine in llm-d's GLM-5.2 well-lit path, the project's tested reference deployment. We also measured SGLang's multi-tier KV cache on single-replica and multi-replica clusters. This post tells that story in three parts:

  1. Engine-agnostic llm-d architecture: how llm-d decouples Kubernetes workload orchestration, prefix-affinity routing, and disaggregated serving from individual model servers so vLLM and SGLang share a common operational model.
  2. First-class SGLang integration: how the SGLang and llm-d communities adapted SGLang's Wide-EP runtime to work natively with llm-d's Kubernetes routing and disaggregated serving.
  3. Tiered KV-cache offloading: how pairing SGLang's hierarchical KV cache with llm-d's prefix-aware routing and Kubernetes failover keeps long agent sessions cached across host RAM and shared storage—surviving high concurrency, pod evictions, and cold restarts.

Serving Moonshot AI's Kimi K3.1 Pro with llm-d across TPUs and GPUs

· 9 min read
Keelin McDonell
Keelin McDonell
Product Manager, Google
Ashok Chandrasekar
Ashok Chandrasekar
Staff Software Engineer, Google
Anish Shah
Anish Shah
Software Engineer, Google
Joey Wang
Joey Wang
Software Engineer, Google
Syeda Anjum
Syeda Anjum
Cloud Solution Architect, Google
Gopala Suryanarayana
Gopala Suryanarayana
Product Manager, Google
Newton Jain
Newton Jain
Product Manager, Google
Christopher Pirillo
Christopher Pirillo
Staff Software Engineer, Google
Inferact Team
Inferact Team
RadixArk Team
RadixArk Team

Running multi-trillion-parameter Mixture-of-Experts (MoE) models in production shifts the primary engineering bottleneck from model weights to distributed systems orchestration. With Moonshot AI's Kimi K3.1 Pro (moonshotai/Kimi-K3.1-Pro), infrastructure engineers must accommodate a ~2.8-trillion-parameter footprint (~104B active parameters per token across 896 routed experts), a 1M-token context window, and a hybrid 93-layer attention stack (69 Kimi Delta Attention layers paired with 24 Gated Multi-head Latent Attention layers).

At this footprint, the model weights alone surpass the High-Bandwidth Memory (HBM) capacity of any single machine, requiring multi-node Tensor and Expert Parallelism across high-bandwidth interconnects. Compounding the hardware footprint, long-horizon agentic sessions expose the limits of stateless Kubernetes load balancing: 1M-token KV caches rapidly exhaust accelerator HBM, uncoordinated routing forces replicas to recompute identical multi-turn prefixes, and compute-heavy prefill bursts stall ongoing token generation.

To eliminate these bottlenecks at launch, we worked with Inferact (vLLM) and RadixArk (SGLang) to deliver Day-0 distributed serving recipes on llm-d. Running llm-d as a unified, Kubernetes-native inference control plane, the same stack serves Kimi K3.1 Pro across both TPUs (Ironwood TPU v7x) and NVIDIA GPUs (GB300 NVL72), here on Google Cloud (A4X-Max). Because the control plane is accelerator- and cloud-independent, platform teams gain a portable serving stack that handles state-aware KV routing, hierarchical memory offloading, and prefill/decode disaggregation out of the box.

Topology as an End-to-End Contract: P/D Disaggregated Inference in llm-d on GKE

· 31 min read
Xia Hua
Xia Hua
Software Engineer, Google
Ryan Lee
Ryan Lee
Software Engineer, Google
Jian Yang
Jian Yang
Software Engineer, Google
Abdullah Gharaibeh
Senior Staff Software Engineer, Google

Lessons from bringing up RDMA-backed Prefill/Decode serving across H200, B200, GB200, and GB300 on GKE

Prefill/Decode (P/D) disaggregation splits LLM serving into two pools of workers: prefill workers process the prompt, and decode workers generate the output tokens. Between the two, every request hands its KV cache over the network. The path those bytes take (which NIC, which switches, how many hops) is set by three layers that don't coordinate by default: the platform decides which network paths exist at all, the resource allocator picks each worker's GPU and NIC, and the router picks which prefill worker pairs with which decode worker.

We learned how much that matters while bringing up llm-d's P/D path on four GCP GPU platforms: A3 Ultra (H200), A4 (B200), A4X (GB200 NVL72), and A4X Max (GB300 NVL72). The bring-up itself was a first: llm-d's P/D guide had no high-performance GKE RDMA recipe before this work built one on A3 Ultra, then carried the same allocation-and-transport contract through A4, A4X, and A4X Max (allocation). The problems we hit shared one shape: one layer lost what another knew, and the symptom appeared far from the cause.

The lesson is that topology is not only a transport optimization; it is an end-to-end contract spanning allocator, kernel, NIC, transport, engine, and router. Keeping RDMA fast depends on every layer holding its part: a mismatched GPU and NIC, a missing route, a silent fallback to TCP, or a topology-blind pairing anywhere along the way degrades the whole path. Concretely, the platform must discover topology, publishing each device's PCIe root, NIC, and rail as attributes Kubernetes can see. Allocation must preserve it, giving each worker a GPU and a NIC that belong together. The runtime must verify it, confirming that KV really moves over RDMA. And the router must consume it, pairing prefill and decode workers that are close on the network. Two results from our clusters show what that is worth:

  • A silent fallback from RDMA to TCP is not a slowdown but an outage. Forcing one on purpose under benchmark load made 436 of 5,400 requests time out; eliminating one on A4X cut mean KV-transfer time by more than 93%.
  • Mean time-to-first-token (TTFT) fell from 2.15 s to 1.157 s once each worker had a matched GPU and NIC and a verified RDMA channel, and then to 0.33 s, a further 3.5× reduction, once the router also paired workers by topology (evaluation).

An earlier post, Networking for Distributed Inference in llm-d, covered the transport stack itself: NIXL (the KV-transfer library), UCX (the communication library underneath it), and backend performance. This post follows topology from the platform through allocation and transport into routing.

Serving Multimodal at Scale in llm-d

· 22 min read
Xiyue Yu
Software Engineer, Google
Alexey Roytman
Senior Technical Staff Member, IBM
Guy Girmonsky
AI Platforms Research Engineer , IBM
Revital Eres
Software Engineer at, IBM
Kaushik Mitra
Software Engineer, Google
Rahul Gurnani
Software Engineer, Google

Text inference has a comfortable shape in llm-d. A request arrives as a few thousand tokens, prefill and decode run back to back on one replica, and a prefix-aware router keeps the KV cache warm. Every layer of the stack — scheduler, load balancer, autoscaler — is calibrated against that shape.

Then someone attaches an image, and it is tempting to think of the result as the same request with a picture bolted on. It is not. A multimodal request differs from a text-only one in almost every property a serving system actually reads: how big it is, how much it costs, how long it takes before the first output token, what identity its cache entries have, and how many stages it has to move through. The parts of the stack that were calibrated on text keep working, silently, on numbers that no longer mean what they used to.

This post walks those differences deliberately. First what makes media content different from text content. Then what that does to an inference request, difference by difference. Then, for each one, what llm-d actually does about it — the token estimator, the content-hash routing path, the retuned affinity gate, and the encode tier. Model server like vllm is the engine throughout; its per-replica mechanisms are the floor, not the answer.

Scaling Vision-Heavy Kimi-VL with Heterogeneous E/PD on llm-d and SGLang

· 7 min read
Xiaojun(Robin) Zhang
Xiaojun(Robin) Zhang
AI Software Solutions Engineer, Intel
Weifeng(Matrix) Yao
Weifeng(Matrix) Yao
AI Principal Engineer, Intel
Fan Zhao
Fan Zhao
Senior Engineering Director, Intel
Yuan Wu
Yuan Wu
AI Frameworks Engineer, Intel
Jianan Gu
Jianan Gu
AI Frameworks Engineer, Intel
Carlos Costa
Distinguished Engineer, IBM
Alex Nails
Alex Nails
Member of Technical Staff, RadixArk

Vision-language model (VLM) inference involves several stages: vision encoding, language model prefill, and language model decode. Each stage has different compute and memory characteristics, making heterogeneous disaggregation a natural fit. This gives us the flexibility to place different stages to different accelerator resources based on their compute and memory characteristics.

In this post, we evaluate a vision-heavy Kimi-VL serving workload on llm-d and SGLang. We place vision encoding stage in 4 Intel Arc Pro B60 (Intel B60) GPUs while keeping prefill and decode stage on 1 NVIDIA H200 GPU. Compared with the collocated baseline, the measured heterogeneous E/PD configuration achieved 2.4x-2.8x higher throughput and reduced mean Time To First Token (TTFT) by roughly 69%-80% under load.