{"id":213728,"date":"2026-10-22T05:02:12","date_gmt":"2026-10-22T05:02:12","guid":{"rendered":"https:\/\/www.europesays.com\/ai\/213728\/"},"modified":"2026-10-22T05:02:12","modified_gmt":"2026-10-22T05:02:12","slug":"llm-d-1-0-an-open-source-stack-for-distributed-inference","status":"publish","type":"post","link":"https:\/\/www.europesays.com\/ai\/213728\/","title":{"rendered":"llm-d 1.0, an open source stack for distributed inference"},"content":{"rendered":"<p>One endpoint, many accelerators<\/p>\n<p>An agent fleet is not one workload. Interactive turns need low latency, background loops and reinforcement learning (RL) rollouts need high throughput, and demand swings by the minute. llm-d puts your accelerator pools behind a single endpoint, with one router, one KV cache index, and one flow-control policy in front of the whole fleet. Agents call a single API; the router picks the replica for each step and keeps a session&#8217;s context on the replicas that already hold it. Adding capacity, mixing accelerator generations, or moving a model to a different pool becomes a platform change, not an agent rewrite. <a href=\"https:\/\/developers.googleblog.com\/torchtpu-running-pytorch-natively-on-tpus-at-google-scale\/\" target=\"_blank\" rel=\"nofollow noopener\">TorchTPU<\/a> brings Google Cloud TPUs into that fleet, running PyTorch models natively inside upstream vLLM and SGLang without model rewrites. For more, see the <a href=\"https:\/\/llm-d.ai\/docs\/dev\/infrastructure\/providers\/gke#tpu-configuration\" target=\"_blank\" rel=\"nofollow noopener\">llm-d on Google Kubernetes Engine (GKE) TPU guide<\/a>.<\/p>\n<p>Routing that remembers context<\/p>\n<p>The llm-d router builds on Gateway API Inference, the Kubernetes project for inference-optimized routing that we launched. On GKE, <a href=\"https:\/\/cloud.google.com\/kubernetes-engine\/docs\/concepts\/about-gke-inference-gateway#llm-d-router\" rel=\"nofollow noopener\" target=\"_blank\">GKE Inference Gateway<\/a> runs the llm-d router as a managed service, simplifying installation and management and <a href=\"https:\/\/cloud.google.com\/kubernetes-engine\/docs\/how-to\/setup-multicluster-inference-gateway\" rel=\"nofollow noopener\" target=\"_blank\">extending routing across regions<\/a>. The router tracks the replicas holding each cached prefix and weighs load and predicted latency when it picks one. When accelerator memory fills up, rather than dropping it, llm-d uses vLLM\u2019s OffloadingConnector, Mooncake, or SGLang\u2019s HiCache to move KV cache to host memory and then to SSD or Google Cloud Managed Lustre. This setup helps prevent prefix-eviction storms under heavy, multi-turn, and long-context conversational loads across mixed TPU and GPU fleets.<\/p>\n<p>On an agentic coding workload on Ironwood TPU (TPU 7x), prefix-aware routing plus host memory offload cut median time-to-first-token (TTFT) by more than 85% and raised total throughput 2.4x versus a plain Kubernetes Service, as of October 2026 (<a href=\"https:\/\/github.com\/llm-d\/llm-d\/blob\/main\/guides\/models\/qwen3-coder-480b\/README.md\" target=\"_blank\" rel=\"nofollow noopener\">source<\/a>).<\/p>\n<p>Disaggregation that upgrades safely<\/p>\n<p>Prefill is compute-heavy and decode is memory-bound, so running both on the same replicas makes each wait on the other. llm-d runs prefill, decode, and multimodal encode as separate pools, with wide expert parallelism spreading large mixture-of-experts models across nodes. In 1.0, <a href=\"https:\/\/llm-d.ai\/docs\/dev\/architecture\/model-server-orchestration\/disaggregatedset\" target=\"_blank\" rel=\"nofollow noopener\">DisaggregatedSet<\/a> \u2014 built on LeaderWorkerSet, the Kubernetes API for multi-host inference that we started \u2014 manages these pools as one unit. Rolling updates move prefill and decode together on matching versions while each phase scales independently. For more, see the <a href=\"https:\/\/llm-d.ai\/docs\/well-lit-paths\/foundations\/pd-disaggregation\" target=\"_blank\" rel=\"nofollow noopener\">disaggregated serving guide<\/a>.<\/p>\n<p>Async inference that runs alongside real-time inference<\/p>\n<p>For latency-tolerant traffic, llm-d 1.0 introduces <a href=\"https:\/\/github.com\/llm-d\/llm-d-async\" target=\"_blank\" rel=\"nofollow noopener\">llm-d-async-processor<\/a>, which pulls requests from queues like Google Cloud Pub\/Sub or Redis and routes them alongside real-time traffic. Using queue and pool-dispatch gates, the processor checks available capacity and enforces strict priority lanes and quotas so background jobs run in slack capacity without starving interactive users.<\/p>\n<p>Time-slicing to put idle RL capacity to work<\/p>\n<p>During RL training, accelerators often sit idle 40% to 60% of the time during rollout generation or weight updates. llm-d now supports <a href=\"https:\/\/github.com\/llm-d-incubation\/llm-d-rl-time-slicing\" target=\"_blank\" rel=\"nofollow noopener\">Google Cloud TPU and GPU time-slicing<\/a> to interleave async inference into those quiet cycles, raising aggregate accelerator duty cycles from a ~40% baseline to &gt;70% (<a href=\"https:\/\/cloud.google.com\/blog\/products\/containers-kubernetes\/introducing-co-operative-time-slicing-for-rl-in-llm-d\" rel=\"nofollow noopener\" target=\"_blank\">source<\/a>).<\/p>\n<p>Benchmarks you can trust<\/p>\n<p>Tuning a distributed inference stack across routers, KV cache tiers, and prefill\/decode pools takes repeatable measurement under realistic multi-turn load. <a href=\"https:\/\/prism.llm-d.ai\/\" target=\"_blank\" rel=\"nofollow noopener\">Prism<\/a> is llm-d\u2019s open-source analysis dashboard for exploring published benchmarks across llm-d\u2019s well-lit paths, backed by standardized <a href=\"https:\/\/github.com\/llm-d\/llm-d-benchmark\" target=\"_blank\" rel=\"nofollow noopener\">llm-d-benchmark<\/a> recipes and <a href=\"https:\/\/github.com\/kubernetes-sigs\/inference-perf\" target=\"_blank\" rel=\"nofollow noopener\">inference-perf<\/a> workloads. Inspect the exact configurations behind the numbers, or upload runs from your own cluster to compare throughput, latency, and cost curves side by side.<\/p>\n<p>Running llm-d 1.0 on Google Cloud<\/p>\n<p>llm-d builds on Kubernetes components you may already run: Gateway API, LeaderWorkerSet, Dynamic Resource Allocation, Prometheus, and OpenTelemetry. Running llm-d on Google Cloud brings these pieces together with managed infrastructure:<\/p>\n<p><a href=\"https:\/\/cloud.google.com\/kubernetes-engine\/docs\/concepts\/about-gke-inference-gateway#llm-d-router\" rel=\"nofollow noopener\" target=\"_blank\">GKE Inference Gateway<\/a> is the llm-d router operating in Gateway Mode, a managed GKE Gateway that handles the L7 proxy and load balancing and calls the llm-d Endpoint Picker on every request, simplifying installation and management so you don&#8217;t run the proxy yourself. More importantly, GKE Inference Gateway is how you scale llm-d <a href=\"https:\/\/cloud.google.com\/kubernetes-engine\/docs\/how-to\/setup-multicluster-inference-gateway\" rel=\"nofollow noopener\" target=\"_blank\">across clusters and regions<\/a> with global failover and Model Armor safety checks.Autoscaling on inference signals. KEDA and Horizontal Pod Autoscaler (HPA) scale pools based on queue depth, saturation, and predicted latency, while Kueue enforces per-model quota on shared accelerators.Mixed accelerator node pools. Google Cloud TPU and GPU pools run behind the same llm-d endpoint, deployed with verified Helm charts.KV cache offloading across layers. Google Cloud Managed Lustre provides a shared remote tier beneath local TPU and GPU HBM and host CPU RAM so long-context workloads run without exhausting accelerator memory.In production<\/p>\n<p>This GKE llm-d stack carries production traffic, and it has been tested at fleet scale:<\/p>\n<p>Gemini platform (formerly Vertex AI) serves production traffic through GKE Inference Gateway, doubling its prefix cache hit rate from 35% to 70%, cutting TTFT by more than 35% for coding agents and cutting P95 TTFT by more than 50% under bursty chat traffic (<a href=\"https:\/\/cloud.google.com\/blog\/products\/containers-kubernetes\/how-gke-inference-gateway-improved-latency-for-vertex-ai\" rel=\"nofollow noopener\" target=\"_blank\">source<\/a>).In a published benchmark across a 17,000-node multi-region GKE deployment serving a mixture-of-experts model in the US and Europe, multi-cluster GKE Inference Gateway and the llm-d router scaled throughput 2.9x across three clusters with a 99.9% success rate and less than 1% routing overhead (<a href=\"https:\/\/cloud.google.com\/blog\/products\/containers-kubernetes\/gpu-and-tpu-utilization-with-multi-cluster-gke-inference-gateway\" rel=\"nofollow noopener\" target=\"_blank\">source<\/a>).In a published benchmark on A3 Mega cluster serving a 70B-parameter model, llm-d with multi-connector KV cache offloading to Google Cloud Managed Lustre in addition to Host CPU RAM, delivered an approximately 40% improvement in TTFT and a 30% reduction in end-to-end latency responding to 50k-token prompts compared to CPU RAM offload only, while reducing GPU-hour requirements by nearly 60% (<a href=\"https:\/\/cloud.google.com\/blog\/topics\/developers-practitioners\/scaling-llm-inference-multi-node-kv-cache-offloading-with-gke-managed-lustre\" rel=\"nofollow noopener\" target=\"_blank\">source<\/a>).<\/p>\n<p>Organizations running llm-d on Google Cloud are putting these same capabilities to work in different ways, for instance prefix-aware routing to raise cache hit rates, open interfaces that fit an existing service mesh, and flow control to hold latency for priority tiers when traffic spikes.<\/p>\n","protected":false},"excerpt":{"rendered":"One endpoint, many accelerators An agent fleet is not one workload. Interactive turns need low latency, background loops&hellip;\n","protected":false},"author":2,"featured_media":213646,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[24,407,98274,12668,132,1429,335],"class_list":["post-213728","post","type-post","status-publish","format-standard","has-post-thumbnail","category-google","tag-ai","tag-ai-infrastructure","tag-containers-u0026-kubernetes","tag-gke","tag-google","tag-google-ai","tag-open-source"],"_links":{"self":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts\/213728","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/comments?post=213728"}],"version-history":[{"count":0,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts\/213728\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/media\/213646"}],"wp:attachment":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/media?parent=213728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/categories?post=213728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/tags?post=213728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}