<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Yuan Tang</title>
    <description>Personal blog of Yuan Tang</description>
    <link>https://terrytangyuan.github.io/</link>
    <atom:link href="https://terrytangyuan.github.io/feed.xml" rel="self" type="application/rss+xml" />
    <pubDate>Sat, 31 Oct 2026 03:16:31 +0000</pubDate>
    <lastBuildDate>Sat, 31 Oct 2026 03:16:31 +0000</lastBuildDate>
    <generator>Jekyll v3.10.0</generator>
    
      <item>
        <title>From Working Group to SIG Architecture: Spotlight on AI Conformance</title>
        <description>&lt;p&gt;&lt;em&gt;Originally posted on the &lt;a href=&quot;https://kubernetes.io/blog/2026/10/29/sig-arch-ai-conformance-2026/&quot;&gt;Kubernetes Blog&lt;/a&gt; as part of the SIG Architecture spotlight series. The interview was conducted by Frederico Muñoz (SAS Institute) and Kirti Goyal (independent).&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;In this SIG Architecture spotlight we talked with &lt;a href=&quot;https://github.com/janetkuo&quot;&gt;Janet Kuo&lt;/a&gt; (Google)
and &lt;a href=&quot;https://github.com/terrytangyuan&quot;&gt;Yuan Tang&lt;/a&gt; (TensorScale AI) about the journey of AI Conformance in
Kubernetes, from the initial &lt;a href=&quot;https://github.com/kubernetes/community/blob/main/governance.md#working-groups&quot;&gt;Working
Group&lt;/a&gt; to the
integration &lt;a href=&quot;https://www.kubernetes.dev/community/community-groups/sigs/architecture/&quot;&gt;SIG Architecture&lt;/a&gt;
as a subproject.&lt;/p&gt;

&lt;h2 id=&quot;introductions&quot;&gt;Introductions&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Frederico Muñoz and Kirti Goyal (FK): Hi Janet, Yuan, and thank you for the opportunity to learn a
bit more about AI Conformance. Can you tell us a bit about yourselves and how you got involved in
Kubernetes?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Janet Kuo&lt;/strong&gt;: I’m a Senior Staff Software Engineer at Google and have been a Kubernetes maintainer
since 2015, joining the community just as we were racing toward the 1.0 launch. I started my journey
writing the core workload controllers that standardized how applications are orchestrated on
Kubernetes. Today, I lead SIG Apps as a Co-chair &amp;amp; TL, and also lead the
&lt;a href=&quot;https://www.cncf.io/announcements/2025/11/11/cncf-launches-certified-kubernetes-ai-conformance-program-to-standardize-ai-workloads-on-kubernetes/&quot;&gt;AI Conformance program&lt;/a&gt;.
My current focus is to ensure Kubernetes remains the best platform for the next generation of
workloads, such as AI.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Yuan Tang&lt;/strong&gt;: I’m a co-founder of TensorScale AI where we build AI infrastructure for world models. Prior to that, I was a Senior Principal Software Engineer at Red Hat, where I led the development of Red Hat AI platform and upstream open source strategy. I became involved in Kubernetes early
on by fostering collaborations between the Kubernetes community and projects I was leading,
including Kubeflow, Argo, and KServe. I later helped found and lead &lt;a href=&quot;https://github.com/kubernetes-sigs/wg-serving&quot;&gt;WG Serving&lt;/a&gt; and the AI Conformance program, advancing
innovation and strengthening community collaboration around running AI workloads on Kubernetes.&lt;/p&gt;

&lt;h2 id=&quot;program-working-group-subproject-the-many-shapes-of-ai-conformance&quot;&gt;Program, Working Group, Subproject: the many shapes of AI Conformance&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;FK: AI Conformance started as a CNCF Program, was it then you got involved?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Janet Kuo:&lt;/strong&gt; I was actually involved from day one since I pitched the original idea. It became
obvious then that everyone was starting to run AI on Kubernetes, but vendors were building their
infrastructure stacks in different ways. I got worried about ecosystem fragmentation. So I wrote up
the initial Kubernetes AI Conformance Proposal, took it to the CNCF leadership to get their buy-in,
and started the AI Conformance Program. Once we had the green light, I reached out to my fellow
co-chairs Yuan Tang, Rita Zhang, and Mario Fahlandt to get the community rallied around it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Yuan Tang:&lt;/strong&gt; Yes. I was a co-chair of WG Serving at that time and some of the initiatives such as
the &lt;a href=&quot;https://gateway-api-inference-extension.sigs.k8s.io/&quot;&gt;Gateway AI Inference Extension&lt;/a&gt; quickly
gained traction. There was a strong interest among the community to include inference-related
requirements in the Kubernetes AI Conformance program.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;FK: How would you describe the motivation behind the creation of the AI Conformance Working Group?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Janet and Yuan&lt;/strong&gt;: The motivation behind creating the Kubernetes AI Conformance &lt;a href=&quot;https://github.com/kubernetes/community/blob/main/governance.md#working-groups&quot;&gt;Working Group&lt;/a&gt; (AI WG) was
to address the rapid convergence of AI workloads onto Kubernetes while preventing ecosystem
fragmentation.&lt;/p&gt;

&lt;p&gt;As AI adoption accelerated, organizations began running increasingly complex workloads, including
distributed training, large-scale inference, GPU-intensive pipelines, and emerging agentic AI
systems across many different Kubernetes platforms. However, vendors were implementing AI
infrastructure capabilities differently, especially around GPUs, networking, scheduling, and
inference orchestration. That created portability challenges, operational inconsistency, and growing
vendor lock-in concerns.&lt;/p&gt;

&lt;p&gt;The AI WG was formed to bring the community together around:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;vendor-neutral AI infrastructure standards,&lt;/li&gt;
  &lt;li&gt;interoperable Kubernetes-based AI platforms,&lt;/li&gt;
  &lt;li&gt;consistent operational behavior for AI workloads,&lt;/li&gt;
  &lt;li&gt;and common requirements for scalable AI deployment.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;FK: WGs are temporary by nature, based on outcomes: would you say the main goals of the WG were achieved?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Janet and Yuan&lt;/strong&gt;: Yes, the WG achieved its primary initial goals.&lt;/p&gt;

&lt;p&gt;The WG has succeeded in moving the ecosystem from: fragmented, vendor-specific AI infrastructure
approaches to a shared, community-defined baseline for AI workloads on Kubernetes.&lt;/p&gt;

&lt;p&gt;Some concrete indicators of success include:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Launching the Certified Kubernetes AI Conformance Program&lt;/li&gt;
  &lt;li&gt;Defining formal Kubernetes AI Requirements (KARs)&lt;/li&gt;
  &lt;li&gt;Getting broad participation from major ecosystem players&lt;/li&gt;
  &lt;li&gt;Growing certified platforms from 18 to 31 within a few months&lt;/li&gt;
  &lt;li&gt;Aligning around newer Kubernetes primitives needed for AI workloads&lt;/li&gt;
  &lt;li&gt;Establishing a roadmap for automated conformance verification&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Most importantly, the WG created consensus that AI workloads are now a first-class Kubernetes use case.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/ai-conformance-kubecon.jpg&quot; alt=&quot;KubeCon stage with 4 persons in it, one of them talking.&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;FK: AI Conformance was specifically highlighted at the latest KubeCon: is this a reflection of the
growing importance of AI throughout the project?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Janet and Yuan&lt;/strong&gt;: Yes, the prominence of AI Conformance at the latest &lt;a href=&quot;https://www.cncf.io/kubecon-cloudnativecon-events/&quot;&gt;KubeCon + CloudNativeCon&lt;/a&gt; is a strong reflection of how
central AI has become to the Kubernetes ecosystem overall.&lt;/p&gt;

&lt;p&gt;A few years ago, AI workloads on Kubernetes were still viewed as somewhat specialized, mostly tied
to ML platforms or GPU-heavy research environments. What’s changed is that AI is now becoming a
mainstream infrastructure concern for nearly every large-scale platform operator.&lt;/p&gt;

&lt;p&gt;That shift naturally elevates AI from an application running on Kubernetes to a core workload
category Kubernetes must optimize for.&lt;/p&gt;

&lt;p&gt;The AI Conformance initiative reflects that evolution. It signals that the community now sees AI
infrastructure requirements, things like accelerator scheduling, high-performance networking,
workload-aware orchestration, and low-latency inference, as important enough to standardize at the
ecosystem level.&lt;/p&gt;

&lt;p&gt;Its visibility at KubeCon also shows a broader strategic realization: if Kubernetes is going to
remain the universal control plane for modern infrastructure, it needs to provide a consistent
foundation for AI workloads across clouds, on-prem, and edge environments.&lt;/p&gt;

&lt;p&gt;So the emphasis on AI Conformance is not just about chasing AI hype; it’s about Kubernetes adapting
to a major shift in workload patterns and ensuring the ecosystem evolves cohesively rather than
fragmenting into vendor-specific AI stacks.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/ai-conformance-sponsors.jpg&quot; alt=&quot;(slide) Initial adopters and major contributors: Akamai (logo), Alibaba Cloud (logo), AWS (logo), Broadcom (logo), CoreWeave (logo), DaoCloud (logo), Google Cloud (logo), Kubermatic (logo), Microsoft Azure (logo), NVIDIA (logo), Oracle (logo), SUSE (logo), Red Hat (logo), SAP (logo)&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;from-working-group-to-sig-architecture-subproject&quot;&gt;From Working Group to SIG Architecture subproject&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;FK: How would you describe the change from WG to SIG? Is it a reflection of AI as something that
requires ongoing architectural governance?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Janet and Yuan&lt;/strong&gt;: In Kubernetes, Working Groups are meant to be temporary. Our WG had a specific
goal to get the initial Kubernetes AI Conformance requirements published and get the certification
process off the ground. Once we hit those milestones, we &lt;a href=&quot;https://github.com/kubernetes/community/tree/main/archive/wg-ai-conformance&quot;&gt;archived the WG&lt;/a&gt; and moved AI
Conformance to be a &lt;a href=&quot;https://github.com/kubernetes/community/tree/main/sig-architecture#subprojects&quot;&gt;permanent subproject&lt;/a&gt; under
SIG Architecture.&lt;/p&gt;

&lt;p&gt;Moving to SIG Architecture definitely proves that AI needs ongoing governance. AI isn’t just a
passing trend or a one-off workload. It has become a core part of what Kubernetes runs every day.
Because SIG Architecture already owns overall Kubernetes Conformance and API design principles,
housing the AI Conformance subproject there makes perfect sense. It makes sure our AI Conformance
requirements stay aligned with the rest of the Kubernetes ecosystem for the long haul.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;FK: And with that change, how would you describe the main goals and areas of intervention of the subproject?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Janet and Yuan&lt;/strong&gt;: Now that we’re a subproject, our main goal is to keep the AI Conformance
standards current, vendor-neutral, and standard-setting. We want to make sure Kubernetes captures
the latest advancements in AI infrastructure while keeping the ecosystem fair for everyone. When we
find gaps where no clear community pattern exists, we help foster and form new standards to solve
them.&lt;/p&gt;

&lt;h2 id=&quot;ai-conformance-and-kubernetes&quot;&gt;AI Conformance and Kubernetes&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;FK: AI Infrastructure is evolving very quickly, while Kubernetes APIs are designed to remain
stable for years. Is this something you consider a challenge?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Janet and Yuan&lt;/strong&gt;: It’s definitely a tricky balance. AI moves very fast, while Kubernetes is
designed to be stable and boring. But we actually structured the program around this exact tension.&lt;/p&gt;

&lt;p&gt;First, we use a tiered graduation model. When new AI infrastructure concepts emerge, we introduce
them as recommended SHOULD requirements. That gives the ecosystem room to experiment and agree on
best practices without locking Kubernetes into rigid APIs too early. Once those APIs stabilize and
with ecosystem adoption, we graduate them to mandatory MUST requirements.&lt;/p&gt;

&lt;p&gt;Second, we intentionally keep our focus on the infrastructure layer. We test for core capabilities
like accelerator support through &lt;a href=&quot;https://kubernetes.io/docs/concepts/scheduling-eviction/dynamic-resource-allocation/&quot;&gt;Dynamic Resource Allocation&lt;/a&gt; (DRA), rather than getting bogged down
in specific AI frameworks or model servers. That keeps the base platform stable while letting the AI
tooling evolve as fast as it needs to.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;FK: DRA has evolved, also due to the work of WG Device Management, as an important part of
Kubernetes (and especially so for AI workloads), with SIG Architecture having an important role in
how it’s integrated in Kubernetes: do you find any parallel in this? Specifically, do you think
there will be a heavier focus in the integration with the evolving Kubernetes architecture as part
of SIG Architecture?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Janet and Yuan&lt;/strong&gt;: There is a huge parallel there. Whenever we face a massive, complicated
challenge that touches multiple parts of the codebase and involves multiple SIGs, a Working Group is
the best place to start. It lets experts from different SIGs get together to figure out the problem,
and build consensus.&lt;/p&gt;

&lt;p&gt;Being part of SIG Architecture means there will be a much heavier focus on how AI capabilities weave
into the evolving Kubernetes architecture. Instead of treating AI as an add-on layer, we’re looking
at how core Kubernetes primitives, like scheduling and resource allocation, need to adapt at a
foundational level to support the next decade of AI workloads.&lt;/p&gt;

&lt;h2 id=&quot;final-remarks&quot;&gt;Final remarks&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;FK: For interested contributors, what’s the best way to get involved with the AI Conformance subproject?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Janet and Yuan&lt;/strong&gt;: We’re always looking for new contributors. The easiest way to get started is by checking out our
main repo at &lt;a href=&quot;https://github.com/kubernetes-sigs/ai-conformance&quot;&gt;kubernetes-sigs/ai-conformance&lt;/a&gt; and
join our &lt;a href=&quot;https://www.kubernetes.dev/community/community-groups/sigs/architecture/#meetings&quot;&gt;meetings&lt;/a&gt;. If
you’re interested in defining new AI Conformance requirements, you can jump into PR reviews or
propose your own using our &lt;a href=&quot;https://github.com/kubernetes-sigs/ai-conformance/tree/main/kars/NNNN-kar-template&quot;&gt;KAR template&lt;/a&gt;. If
you want to write code, we always need help expanding our automated Go test suites in the &lt;a href=&quot;https://github.com/kubernetes-sigs/ai-conformance/tree/main/test&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;test/&lt;/code&gt; directory&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;For vendors looking to certify their platforms, all the details are at
&lt;a href=&quot;https://github.com/cncf/k8s-ai-conformance&quot;&gt;cncf/k8s-ai-conformance&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;FK: Any final comments you would like to share?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Janet and Yuan&lt;/strong&gt;: We’ve been blown away by how
fast the community has rallied around this. When we first announced the AI Conformance program
during the keynote at &lt;a href=&quot;https://www.cncf.io/reports/kubecon-cloudnativecon-north-america-2025/&quot;&gt;KubeCon NA 2025&lt;/a&gt;, we weren’t sure what
the response would be. But by the time we gave our update keynote at &lt;a href=&quot;https://events.linuxfoundation.org/kubecon-cloudnativecon-europe/&quot;&gt;KubeCon EU 2026&lt;/a&gt;, we had grown from 18
certified platforms to 31 in just a few months.&lt;/p&gt;

&lt;p&gt;That kind of growth shows just how much the industry wanted a unified, vendor-neutral standard. It
gives organizations the confidence that they can run their AI workloads on any certification
Kubernetes platform without getting locked into a proprietary stack.&lt;/p&gt;

&lt;p&gt;If you’re a platform vendor, we’d love to see you get certified. If you’re a developer interested in
the intersection of AI and cloud-native infrastructure, come join us in SIG Architecture!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;FK: Excellent, thank you both for guiding us in this journey on AI and AI Conformance in Kubernetes.&lt;/strong&gt;&lt;/p&gt;
</description>
        <pubDate>Thu, 29 Oct 2026 00:00:00 +0000</pubDate>
        <link>https://terrytangyuan.github.io/2026/10/29/from-working-group-to-sig-architecture-spotlight-on-ai-conformance/</link>
        <guid isPermaLink="true">https://terrytangyuan.github.io/2026/10/29/from-working-group-to-sig-architecture-spotlight-on-ai-conformance/</guid>
        
        <category>Open Source</category>
        
        <category>Kubernetes</category>
        
        <category>Artificial Intelligence</category>
        
        <category>Machine Learning</category>
        
        <category>Interview</category>
        
        
      </item>
    
      <item>
        <title>VEX-Bench: A Benchmark for Evaluating LLM Agents on Software Supply Chain Vulnerability Triage</title>
        <description>&lt;p&gt;&lt;strong&gt;Authors&lt;/strong&gt;: Yuan Tang and Edward Tsien&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally posted on &lt;a href=&quot;https://research.redhat.com/blog/2026/09/29/vex-bench-a-benchmark-for-evaluating-llm-agents-on-software-supply-chain-vulnerability-triage/&quot;&gt;Red Hat Research Blog&lt;/a&gt;&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Researchers and engineers from Red Hat and Purdue University have introduced VEX-Bench, the first benchmark for evaluating LLM agents’ ability to determine whether a known vulnerability in a third-party dependency is actually exploitable in a downstream software project. The work has been accepted for presentation at the Conference on Empirical Methods in Natural Language Processing (&lt;a href=&quot;https://2026.emnlp.org/&quot;&gt;EMNLP&lt;/a&gt;), held October 24-29 in Budapest, Hungary. EMNLP is widely recognized as one of the premier, highly influential international tier-one venues for publishing peer-reviewed research in the fields of natural language processing and artificial intelligence.&lt;/p&gt;

&lt;p&gt;Software composition analysis (SCA) tools such as GitHub Dependabot and OSV-Scanner help surface potential exposures by matching package names and versions against vulnerability databases. This approach is deliberately broad: it flags any project that carries an affected dependency version, regardless of whether the vulnerable code is ever reached. The result is a high volume of false alerts (in the VEX-Bench dataset, 70.7% of scanner-flagged cases are not exploitable in practice), and security analysts spend substantial time triaging them case by case. Reachability analysis partially addresses this, but determining whether a call path is feasible, and whether project configuration or runtime environment prevents exploitation, remains beyond current automated tools. LLM agents, with their ability to read code across repositories and reason about advisory text, are plausible candidates for this task, yet until now no benchmark existed to measure how well they perform it.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/vexbench-overview.png&quot; alt=&quot;VEX-Bench Task Overview&quot; /&gt;
&lt;em&gt;VEX-BENCH sources task instances from real-world projects by pairing codebases with third-party dependency vulnerabilities (CVEs) to determine real-world exploitability. Provided with the project’s source code and CVE identifier, LLM agents search external information and analyze code to produce a vulnerability status (Affected / Not Affected), a justification label (e.g., code_not_reachable), and reasoning grounded in the codebase.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;VEX-Bench fills that gap with 75 real-world cases drawn from the top-starred open source repositories on GitHub, covering Go, Python, and Java. Each case pairs a target codebase with a CVE identifier for a known vulnerability in one of its third-party dependencies. The agent operates directly on the full project (a median of 273K lines of code across more than 2,600 files) with no curated file selection, no pre-computed call graph, and no advisory text beyond what it retrieves externally. It must produce a binary exploitability status and, when the verdict is Not Affected, a justification drawn from four categories adapted from the CISA Vulnerability Exploitability eXchange (VEX) vocabulary: “code_not_reachable”, “code_not_present”, “requires_configuration”, and “requires_environment”. Ground-truth labels were assigned by five security experts through a calibration-then-scaling annotation protocol, with an inter-annotator Fleiss’ Kappa of 0.667 at calibration and an 88.3% label agreement rate during the review phase. All experiments run inside isolated Docker containers with no access to benchmark labels, eliminating the possibility that agents circumvent the task by reading evaluation artifacts.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/vexbench-dataset-composition.png&quot; alt=&quot;Dataset Composition&quot; /&gt;
&lt;em&gt;Dataset composition and codebase size across 75 cases, 67 CVEs, and 35 projects in Go, Python, and Java.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/vexbench-label-distribution.png&quot; alt=&quot;Label Distribution&quot; /&gt;
&lt;em&gt;Binary vulnerability status distribution and fine-grained justification categories across benchmark cases.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The authors evaluated nine models, spanning both closed-source and open weight systems, across three agent harnesses: Claude Code, Codex CLI, and OpenCode. On the binary status task, Claude Opus 4.6 achieves the highest F1 of 81.6% and GPT-5.5 the highest precision at 88.7%; for fine-grained justification, only GPT-5.5 exceeds 70% macro-F1. By comparison, traditional SCA tools (OSV-Scanner, Trivy) achieve F1 scores of 40.5% and 36.1% in the same cases. This is the classic high recall but low precision that reflects precisely the false-alert burden practitioners experience.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/vexbench-model-performance.png&quot; alt=&quot;Model Performance Results&quot; /&gt;
&lt;em&gt;Performance metrics across nine models with token and cost averages.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Performance consistently drops from the binary to the justification task across all nine configurations, with gaps ranging from roughly 10 to 15 percentage points, indicating that current agents can identify affected projects with reasonable reliability but fall short of the depth of analysis needed to explain why a vulnerability is not exploitable. Among open weight models, DeepSeek-V4-Pro and GLM-5.1 offer accuracy within a few points of the top closed-source configurations at roughly one-tenth the inference cost. The harness framework was found to have a substantially larger effect on per-case token usage than on classification accuracy.&lt;/p&gt;

&lt;p&gt;The paper is &lt;a href=&quot;https://arxiv.org/abs/2609.08040&quot;&gt;available on arXiv&lt;/a&gt; and will be available throughout the EMNLP 2026 proceedings. Code and data are available at &lt;a href=&quot;https://github.com/steven1518/vex-bench&quot;&gt;https://github.com/steven1518/vex-bench&lt;/a&gt;.&lt;/p&gt;

</description>
        <pubDate>Tue, 29 Sep 2026 00:00:00 +0000</pubDate>
        <link>https://terrytangyuan.github.io/2026/09/29/vex-bench-a-benchmark-for-evaluating-llm-agents-on-software-supply-chain-vulnerability-triage/</link>
        <guid isPermaLink="true">https://terrytangyuan.github.io/2026/09/29/vex-bench-a-benchmark-for-evaluating-llm-agents-on-software-supply-chain-vulnerability-triage/</guid>
        
        <category>Artificial Intelligence</category>
        
        <category>Machine Learning</category>
        
        <category>Open Source</category>
        
        
      </item>
    
      <item>
        <title>Stop Surprise LLM Bills With Production-Ready Cost Controls</title>
        <description>&lt;p&gt;&lt;em&gt;Originally posted on &lt;a href=&quot;https://omnigent.ai/blog/stop-surprise-llm-bills&quot;&gt;Omnigent Blog&lt;/a&gt;&lt;/em&gt;.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt;: Omnigent controls LLM costs at four points: smart routing keeps trivial tasks off expensive models, progressive budgets warn before they block, custom pricing tracks self-hosted models, and the usage page shows where tokens go. Roll it out in phases: visibility first, then routing, then budgets.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;LLM bills blow through monthly budgets when one debugging session or a runaway multi-agent workflow spirals.&lt;/p&gt;

&lt;p&gt;LLM costs scale with token consumption, not with how much software you ship. Every character costs money. Long conversations accumulate context, multi-agent workflows multiply that, and a hard cap that fires mid-task interrupts real work. Most teams see the bill only after the money is spent.&lt;/p&gt;

&lt;p&gt;Omnigent addresses this at four points:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;Prevention&lt;/strong&gt;: Smart routing keeps trivial tasks off expensive models.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Control&lt;/strong&gt;: Progressive budgets warn before they block, then downgrade instead of stopping.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Visibility&lt;/strong&gt;: The usage page tracks spend with per-harness and per-model breakdowns.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Safeguards&lt;/strong&gt;: Thrashing detection, scheduled-task limits, and terminal approvals.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;smart-task-routing&quot;&gt;Smart task routing&lt;/h2&gt;

&lt;p&gt;The cheapest token is the one you never spend. Omnigent’s smart routing policy classifies each user message as TRIVIAL or COMPLEX and denies trivial messages from reaching expensive models.&lt;/p&gt;

&lt;h3 id=&quot;how-it-works&quot;&gt;How it works&lt;/h3&gt;

&lt;p&gt;When a session tries to use an expensive model (Opus, Fable, GPT-5), Omnigent classifies the user’s message with a lightweight LLM:&lt;/p&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;na&quot;&gt;policies&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;trivial_gate&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;function&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;path&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;omnigent.policies.builtins.routing.deny_trivial_to_expensive_model&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;arguments&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;expensive_models&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;pi&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;opus&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;fable&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;gpt-5&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The two categories:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;TRIVIAL&lt;/strong&gt; (blocked on expensive models): factual lookups, greetings and status checks, one-line code changes, short Q&amp;amp;A&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;COMPLEX&lt;/strong&gt; (allowed on any model): multi-step reasoning, code analysis, open-ended research, architecture decisions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An example flow:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;User: &quot;Fix the authentication bug in login.py&quot;
→ Classifier: COMPLEX
→ Opus request: ALLOWED

User: &quot;What&apos;s the current time?&quot;
→ Classifier: TRIVIAL
→ Opus request: DENIED
→ User switches to Haiku
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Trivial messages get routed to a cheaper tier, so complex work still runs on Opus or Fable while short lookups do not. See the &lt;a href=&quot;https://omnigent.ai/docs/build/routing&quot;&gt;routing documentation&lt;/a&gt; for the full policy reference.&lt;/p&gt;

&lt;h2 id=&quot;progressive-budget-policies&quot;&gt;Progressive budget policies&lt;/h2&gt;

&lt;p&gt;Routing cuts expensive model calls, but real workflows still burn tokens. Omnigent’s &lt;a href=&quot;https://omnigent.ai/blog/omnigent-policies&quot;&gt;contextual policy system&lt;/a&gt; adds budgets that warn before they block.&lt;/p&gt;

&lt;h3 id=&quot;session-cost-budget&quot;&gt;Session cost budget&lt;/h3&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;na&quot;&gt;policies&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;cost_budget&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;function&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;path&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;omnigent.policies.builtins.cost.cost_budget&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;arguments&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;max_cost_usd&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;5.0&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;ask_thresholds_usd&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;pi&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;1.0&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;2.5&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;]&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;expensive_models&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;pi&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;opus&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;fable&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;gpt-5&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Soft thresholds warn at $1 and $2.50. Each checkpoint prompts at most once: after you approve it, later turns stay quiet until the next threshold.&lt;/p&gt;

&lt;p&gt;The $5 hard limit is a downgrade gate, not a stop. It blocks expensive models but lets work continue on cheaper tiers (Sonnet, Haiku).&lt;/p&gt;

&lt;h3 id=&quot;per-user-daily-cost-budget&quot;&gt;Per-user daily cost budget&lt;/h3&gt;

&lt;p&gt;Per-user daily budgets track cumulative spend across all of a developer’s sessions for the current UTC day:&lt;/p&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;na&quot;&gt;policies&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;user_daily_cost_budget&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;arguments&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;max_cost_usd&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;10.0&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;ask_thresholds_usd&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;pi&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;3.0&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;7.0&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;]&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;expensive_models&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;pi&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;opus&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;fable&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;A 5-developer startup setting &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;max_cost_usd: 10.0&lt;/code&gt; caps monthly spend at ~$1,500 (5 × 30 × $10).&lt;/p&gt;

&lt;p&gt;See the &lt;a href=&quot;https://omnigent.ai/docs/policies/builtin#cost_budget&quot;&gt;cost budget policy reference&lt;/a&gt; for all arguments.&lt;/p&gt;

&lt;h2 id=&quot;custom-pricing-for-self-hosted-models&quot;&gt;Custom pricing for self-hosted models&lt;/h2&gt;

&lt;p&gt;Teams running self-hosted models on Ollama, vLLM, or a custom inference gateway used to see “unpriced spend” warnings, which disabled budget enforcement because Omnigent had no price to meter against. Declare the price yourself:&lt;/p&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;na&quot;&gt;providers&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;ollama-local&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;kind&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;local&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;openai&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;base_url&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;http://localhost:11434/v1&quot;&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;pricing&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;input_per_million&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;0.0&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;output_per_million&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;0.0&lt;/span&gt;
 
  &lt;span class=&quot;na&quot;&gt;vllm-gateway&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;kind&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;gateway&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;openai&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;base_url&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;https://inference.company.internal/v1&quot;&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;pricing&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;input_per_million&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;0.25&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;output_per_million&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;1.0&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The warnings go away and budgets meter correctly. This also covers cost attribution for self-hosted models, zero-cost local development, and internal chargeback.&lt;/p&gt;

&lt;h2 id=&quot;model-selection&quot;&gt;Model selection&lt;/h2&gt;

&lt;h3 id=&quot;sticky-model-choices&quot;&gt;Sticky model choices&lt;/h3&gt;

&lt;p&gt;The composer remembers your model choice per harness. Switch from Opus to Sonnet once, and Sonnet becomes the default for future sessions on that harness until you change it.&lt;/p&gt;

&lt;p&gt;The output-token prices differ by 5x: Opus is $15 per million, Sonnet is $3 per million. A team that moves routine coding from Opus to Sonnet pays a fifth as much for that work, and can still pick Opus per session when a task needs it.&lt;/p&gt;

&lt;p&gt;Select the model from the dropdown in the New Chat composer. The choice sticks per harness (Claude Code, Codex, and so on).&lt;/p&gt;

&lt;h2 id=&quot;cost-visibility&quot;&gt;Cost visibility&lt;/h2&gt;

&lt;h3 id=&quot;usage-page&quot;&gt;Usage page&lt;/h3&gt;

&lt;p&gt;The usage page (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/usage&lt;/code&gt;) breaks down LLM spend:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;Daily cost timeline&lt;/strong&gt;: bar chart, with zero-spend days filled in&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Cost by harness&lt;/strong&gt;: which execution environments spend the budget&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Cost by model&lt;/strong&gt;: which tiers drive spend (Opus vs Sonnet vs Haiku)&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Sortable session table&lt;/strong&gt;: session (with its model as a badge), harness, cost, last active&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;multi-model-session-display&quot;&gt;Multi-model session display&lt;/h3&gt;

&lt;p&gt;Sessions that switch models show every model used:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Session: &quot;Debug authentication flow&quot;
Model: claude-opus-4 +2
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Hover &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;+2&lt;/code&gt; to see the other models, sorted by cost. This answers “Why did this cost $3 when I thought I was on Sonnet?”&lt;/p&gt;

&lt;h3 id=&quot;sub-agent-harness-visibility&quot;&gt;Sub-agent harness visibility&lt;/h3&gt;

&lt;p&gt;Multi-harness workflows show which execution environments ran. The primary harness displays with a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;+N&lt;/code&gt; badge for the rest; hover it to see the others:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Harness: claude-code-native +1
→ Hover: &quot;antigravity&quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This matters when you run more than one provider (Anthropic, OpenAI, Gemini).&lt;/p&gt;

&lt;h2 id=&quot;safeguards&quot;&gt;Safeguards&lt;/h2&gt;

&lt;h3 id=&quot;native-terminal-cost-popups&quot;&gt;Native terminal cost popups&lt;/h3&gt;

&lt;p&gt;Approval popups render in the terminal via &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;tmux display-popup&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;┌───────────────────────────────────────────────┐
│  ⚠️  Policy approval required                 │
│                                               │
│  Session cost $1.05 passed the $1.00          │
│  warning threshold (limit $5.00).             │
│                                               │
│  [y] approve    [n] decline                   │
└───────────────────────────────────────────────┘
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The terminal popup and the web UI resolve the same approval request; whichever you answer first wins.&lt;/p&gt;

&lt;h3 id=&quot;scheduled-task-cost-budgets&quot;&gt;Scheduled task cost budgets&lt;/h3&gt;

&lt;p&gt;Unattended tasks attach a cost budget automatically:&lt;/p&gt;

&lt;div class=&quot;language-json highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;err&quot;&gt;POST&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;/v&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;/scheduled-tasks&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;title&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Daily code review&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;schedule&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;0 9 * * *&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;max_cost_usd&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;2.0&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This stops a single cron run from spending $50 on an unexpectedly large diff.&lt;/p&gt;

&lt;h3 id=&quot;detect-thrashing-policy&quot;&gt;Detect thrashing policy&lt;/h3&gt;

&lt;p&gt;The thrashing policy catches agents stuck in retry loops:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Consecutive errors (default: 5 failures)&lt;/li&gt;
  &lt;li&gt;Error rate (default: 80% over 10 results)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When it fires, it ends the session before repeated retries run up the bill. See the &lt;a href=&quot;https://omnigent.ai/docs/policies/builtin#detect_thrashing&quot;&gt;detect thrashing policy reference&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&quot;archived-session-retention&quot;&gt;Archived session retention&lt;/h3&gt;

&lt;p&gt;Auto-cleanup of archived sessions runs on a schedule you set (7, 30, 60, or 90 days) under Settings → Archived sessions, which cuts storage and clears the session list.&lt;/p&gt;

&lt;p&gt;For example, a 50-person team archiving about 200 sessions a month holds steady near 400 sessions at 60-day retention, rather than accumulating 2,400 over a year.&lt;/p&gt;

&lt;h2 id=&quot;how-the-layers-fit-together&quot;&gt;How the layers fit together&lt;/h2&gt;

&lt;p&gt;Omnigent handles LLM cost at four layers:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prevention:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Smart routing keeps trivial tasks off expensive models.&lt;/li&gt;
  &lt;li&gt;Sticky model selection makes a cheaper default stick per harness.&lt;/li&gt;
  &lt;li&gt;Neither changes how you work.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Control:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Progressive budgets go soft warning, then downgrade gate, then hard limit.&lt;/li&gt;
  &lt;li&gt;Budgets scope to a session or to a user’s whole day.&lt;/li&gt;
  &lt;li&gt;Custom pricing lets budgets meter self-hosted models.&lt;/li&gt;
  &lt;li&gt;Scheduled-task limits cap unattended runs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Visibility:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;The usage page shows daily timelines and per-harness, per-model breakdowns.&lt;/li&gt;
  &lt;li&gt;Sessions and sub-agents report every model and harness they touched.&lt;/li&gt;
  &lt;li&gt;You see spend as it happens, not at month end.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Safeguards:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Terminal popups approve or decline without leaving the terminal.&lt;/li&gt;
  &lt;li&gt;Thrashing detection ends retry loops before they run up the bill.&lt;/li&gt;
  &lt;li&gt;Archived-session retention cleans up on a schedule you set.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What is distinct here: budgets warn and downgrade rather than hard-stop, routing and budgets and visibility work together instead of in isolation, self-hosted models get real prices, and every token is attributed to a model and harness.&lt;/p&gt;

&lt;h2 id=&quot;rolling-it-out&quot;&gt;Rolling it out&lt;/h2&gt;

&lt;p&gt;Deploy in four phases, each building on the last. Turn on visibility first so later thresholds are grounded in real spend, then prevention, then hard control, then ongoing cleanup.&lt;/p&gt;

&lt;h3 id=&quot;phase-1-observe-week-1&quot;&gt;Phase 1: Observe (Week 1)&lt;/h3&gt;

&lt;p&gt;Turn on the usage page and switch the team to a cheaper default model. Spend becomes visible and the bill drops right away, with no policy config yet.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;export &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;OMNIGENT_FEATURES&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;usage_page
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;In the New Chat composer, pick Sonnet or Haiku instead of Opus from the Model dropdown. The choice sticks per harness.&lt;/p&gt;

&lt;h3 id=&quot;phase-2-prevent-week-2&quot;&gt;Phase 2: Prevent (Week 2)&lt;/h3&gt;

&lt;p&gt;Add smart routing to keep trivial requests off expensive models, and set custom pricing so budgets can meter self-hosted spend.&lt;/p&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;na&quot;&gt;policies&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;trivial_gate&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;function&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;path&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;omnigent.policies.builtins.routing.deny_trivial_to_expensive_model&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;arguments&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;expensive_models&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;pi&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;opus&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;fable&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;]&lt;/span&gt;
 
&lt;span class=&quot;c1&quot;&gt;# If using self-hosted models:&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;providers&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;ollama-local&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;kind&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;local&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;openai&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;pricing&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;input_per_million&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;0.0&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;output_per_million&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;0.0&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;phase-3-control-month-2&quot;&gt;Phase 3: Control (Month 2)&lt;/h3&gt;

&lt;p&gt;Add progressive budgets, tuning the thresholds against what Phase 1 showed you. Warnings fire before any limit, and the hard cap downgrades rather than blocks.&lt;/p&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;na&quot;&gt;policies&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;user_daily_cost_budget&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;arguments&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;max_cost_usd&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;10.0&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;ask_thresholds_usd&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;pi&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;3.0&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;7.0&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;]&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;expensive_models&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;pi&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;opus&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;fable&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;phase-4-optimize-month-3&quot;&gt;Phase 4: Optimize (Month 3+)&lt;/h3&gt;

&lt;p&gt;Turn on thrashing detection, set archived-session retention (30 or 60 days), and revisit thresholds monthly as usage shifts.&lt;/p&gt;

&lt;h3 id=&quot;budgets-by-team-size&quot;&gt;Budgets by team size&lt;/h3&gt;

&lt;p&gt;Scale the daily budget with headcount. These are starting points to tune, not hard rules:&lt;/p&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Small teams (5-15 developers)&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;user_daily_cost_budget&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;max_cost_usd&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;5.0&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# ~$150/month per dev&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;ask_thresholds_usd&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;pi&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;2.0&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;]&lt;/span&gt;
 
&lt;span class=&quot;c1&quot;&gt;# Mid-size (15-50)&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;user_daily_cost_budget&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;max_cost_usd&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;10.0&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# ~$300/month per dev&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;ask_thresholds_usd&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;pi&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;3.0&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;7.0&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;]&lt;/span&gt;
 
&lt;span class=&quot;c1&quot;&gt;# Enterprise (50+)&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;user_daily_cost_budget&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;max_cost_usd&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;25.0&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# Higher limits for experienced engineers&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;ask_thresholds_usd&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;pi&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;10.0&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;20.0&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;scheduled_task_cost_budget&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;max_cost_usd&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;2.0&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# Strict limits for automation&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;hr /&gt;

&lt;p&gt;Coding agents are now part of the daily workflow, and their cost needs the same attention as any other infrastructure. These features give teams the visibility and control to scale that usage without the surprise bill at the end of the month.&lt;/p&gt;

&lt;p&gt;Start with the &lt;a href=&quot;https://omnigent.ai/docs/policies/builtin&quot;&gt;documentation&lt;/a&gt;, set up a &lt;a href=&quot;https://omnigent.ai/docs/policies/builtin#cost_budget&quot;&gt;cost budget policy&lt;/a&gt;, and turn on &lt;a href=&quot;https://omnigent.ai/docs/build/routing&quot;&gt;smart routing&lt;/a&gt;.&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;&lt;strong&gt;Learn more:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Documentation:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://omnigent.ai/docs/policies/builtin&quot;&gt;Builtin policies&lt;/a&gt;: reference for cost budget, routing, and thrashing detection&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://omnigent.ai/docs/build/routing&quot;&gt;Smart routing&lt;/a&gt;: configure built-in or external routing to match tasks to models&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://omnigent.ai/docs/policies/overview&quot;&gt;Contextual policies overview&lt;/a&gt;: how policies intercept and control agent actions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Related posts:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://omnigent.ai/blog/omnigent-policies&quot;&gt;Allow, ask, deny: contextual policies in Omnigent&lt;/a&gt;: how the policy system works&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://omnigent.ai/blog/first-class-projects-with-defaults&quot;&gt;Organize your sessions into projects&lt;/a&gt;: keep related sessions organized with default settings&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Thu, 03 Sep 2026 00:00:00 +0000</pubDate>
        <link>https://terrytangyuan.github.io/2026/09/03/stop-surprise-llm-bills-production-ready-cost-controls/</link>
        <guid isPermaLink="true">https://terrytangyuan.github.io/2026/09/03/stop-surprise-llm-bills-production-ready-cost-controls/</guid>
        
        <category>Artificial Intelligence</category>
        
        <category>Machine Learning</category>
        
        <category>Open Source</category>
        
        
      </item>
    
      <item>
        <title>Deploying Distributed AI Inference: Blueprints &amp; Troubleshooting</title>
        <description>&lt;p&gt;&lt;em&gt;Originally posted on &lt;a href=&quot;https://developers.redhat.com/articles/2026/06/26/deploying-distributed-ai-inference-blueprints-troubleshooting&quot;&gt;Red Hat Developer&lt;/a&gt;. This is Part 3 of a three-part series on distributed AI inference. See also &lt;a href=&quot;https://terrytangyuan.github.io/2026/06/22/designing-distributed-ai-inference-core-concepts-and-scaling-dimensions/&quot;&gt;Part 1: Core Concepts and Scaling Dimensions&lt;/a&gt; and &lt;a href=&quot;https://terrytangyuan.github.io/2026/06/24/optimizing-distributed-ai-inference-advanced-deployment-patterns/&quot;&gt;Part 2: Advanced Deployment Patterns&lt;/a&gt;. The full article is also available as a &lt;a href=&quot;https://terrytangyuan.github.io/2026/06/05/distributed-ai-inference-best-practices-gotchas/&quot;&gt;single post&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Authors:&lt;/strong&gt; Fatih Nar, Yuchen Fama, Greg Pereira, Yuan Tang&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Reviewers&lt;/strong&gt;: Taneem Ibrahim, Robert Shaw, Ron Haberman, Anish Asthana&lt;/em&gt;&lt;/p&gt;

&lt;h2 id=&quot;7-deployment-blueprints-by-traffic-shape&quot;&gt;&lt;strong&gt;7. Deployment Blueprints by Traffic Shape&lt;/strong&gt;&lt;/h2&gt;

&lt;p&gt;The technique sections in &lt;a href=&quot;https://terrytangyuan.github.io/2026/06/22/designing-distributed-ai-inference-core-concepts-and-scaling-dimensions/&quot;&gt;Part 1&lt;/a&gt; and &lt;a href=&quot;https://terrytangyuan.github.io/2026/06/24/optimizing-distributed-ai-inference-advanced-deployment-patterns/&quot;&gt;Part 2&lt;/a&gt; are the tools; this section shows how they assemble into deployments. Each blueprint follows the same structure (workload signature, KPI priority, topology, the vLLM and llm-d mechanisms it leans on, and a note on cost shape), and should be read as a starting point rather than a prescription.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/distributed-ai-inference-best-practices/image1.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Figure-7 Deployment Blueprints by Traffic&lt;/p&gt;

&lt;h3 id=&quot;71-high-concurrency-conversational-chat-and-copilots&quot;&gt;&lt;strong&gt;7.1 High-concurrency conversational chat and copilots&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Signature.&lt;/strong&gt; Thousands of concurrent users, prompts in the low hundreds of tokens, outputs of similar length, high prefix reuse from system prompts and few-shot exemplars, and TPOT-dominated SLOs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Topology.&lt;/strong&gt; The deployment is PD-disaggregated, with a large prefill pool on cost-optimized GPUs such as H100s and more HBM-capable hardware such as H200/B200-class GPUs as the decode pool especially for long context workloads, where cache-aware routing via the llm-d scheduler pins each session to the decode worker holding its warm KV. EAGLE 3.1 runs on the decode workers, and LMCache offloads from HBM to pinned DRAM (and to NVMe for the longest-tail conversations) so that the decode pool’s effective cache becomes several times larger than its HBM. On the prefill side, chunked prefill (stall-free scheduling) prevents a long prompt from blocking the short ones queued behind it. At the front door, prompt compression on system prompts, debouncing and request coalescing for chatty UIs, and output token caps protect the fleet from runaway generation. The cost shape is decode-dominated, so right-sizing the decode pool is where most of the $/Mtoken savings live.&lt;/p&gt;

&lt;h3 id=&quot;72-long-context-rag-and-code-analysis&quot;&gt;&lt;strong&gt;7.2 Long-context RAG and code analysis&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Signature.&lt;/strong&gt; Lower concurrency than chat, prompts of 32k–256k tokens, outputs in the hundreds, and TTFT-dominated SLOs, because users are waiting for the first useful token of an answer over a long document.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Topology.&lt;/strong&gt; TP within the node and PCP across GPUs for the prefill phase, so the O(n²) attention work is split rather than left to blow HBM on one device. The decode pool stays small; this workload is bound more by prompt length than by concurrency.&lt;/p&gt;

&lt;p&gt;Two things buy back TTFT here, and chunked prefill is not one of them. PCP amortizes the prefill compute across devices; prefix caching skips it outright when the document has been seen before. Chunked prefill, on by default in vLLM V1, earns its keep elsewhere: it keeps one long prefill from starving the decode steps of every other request sharing the GPU. On the long prompt itself it adds a little overhead, and prefix caching becomes the whole game: the warm prefix lives in a shared cache pool any decode worker can reach, so the second pass over a contract never re-prefills it.&lt;/p&gt;

&lt;p&gt;The cost shape is prefill-dominated, so the biggest lever on $/Mtoken is prefix-cache hit rate: every avoided re-prefill of a long document is a direct saving.&lt;/p&gt;

&lt;h3 id=&quot;73-high-throughput-batch-summarization-labeling-embeddings-pipelines&quot;&gt;&lt;strong&gt;7.3 High-throughput batch (summarization, labeling, embeddings pipelines)&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Signature.&lt;/strong&gt; Latency-tolerant, throughput- and dollar-bound, typically running overnight on backlogs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Topology.&lt;/strong&gt; The pattern is DP-heavy, with as many replicas of the model as fit the budget and each replica running continuous batching maxed out. PD disaggregation tends to buy nothing here, because the wall-clock per request does not matter, so the transfer hop is not worth it. Continuous scheduling, which differs from continuous batching by letting the engine reorder requests to keep batches full even when arrival is bursty, is the right policy. Dynamic quantization can be tuned more aggressively here than in interactive workloads, because a slightly lower output quality is cheaper than a slightly larger GPU footprint. Scale-to-zero between waves via KServe’s KEDA integration keeps the cluster economical, and the workload is spot/preemptible-friendly because retries on batch jobs are cheap.&lt;/p&gt;

&lt;p&gt;The cost shape is pure $/token: with latency irrelevant, every lever (max batching, aggressive quantization, scale-to-zero, and spot capacity) goes toward driving dollars per million tokens down.&lt;/p&gt;

&lt;h3 id=&quot;74-distributed-ai-grid-model-as-a-service&quot;&gt;&lt;strong&gt;7.4 Distributed AI-grid: Model-as-a-Service&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Signature.&lt;/strong&gt; The most architecturally rich blueprint we cover. A platform team serves multiple tenants and multiple models (Qwen3.6-27B for one product, Qwen3.5-35B-A3B for another, Qwen3.5-397B-A17B reserved for the hard queries) across heterogeneous SLOs and bursty traffic, and the deployment becomes a grid rather than a collection of single-purpose pools.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Topology.&lt;/strong&gt; Each model class lives behind its own llm-d InferencePool, with KServe LLMInferenceService resources tracked in GitOps, and &lt;a href=&quot;https://developers.redhat.com/articles/2026/05/25/route-external-and-local-llms-models-as-a-service&quot;&gt;AI Gateway implementations such as Envoy AI Gateway&lt;/a&gt; sit at the front door handling tenant authentication, rate limiting, and request classification. A shared LMCache fabric across pools lets system-prompt prefixes be reused across instances of the same model, while KEDA autoscaling runs per request-class rather than per pool, so that a “gold” tenant’s bursty traffic can scale its pool aggressively while a “bronze” tenant on the same model sees slower scale-up.&lt;/p&gt;

&lt;p&gt;Three mechanisms make this work, and all three were absent or thin in Part-I.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Model cascading&lt;/strong&gt; routes easy queries to the smallest model that can handle them and escalates to the next size only when needed. A cascade of Qwen3.6-27B → Qwen3.5-35B-A3B → Qwen3.5-397B-A17B, with escalation triggered by an inexpensive confidence signal or by explicit tenant policy, &lt;a href=&quot;https://arxiv.org/abs/2603.04445&quot;&gt;can cut cluster cost by 40–60%&lt;/a&gt; on workloads where the easy fraction dominates. The cascade itself lives in the gateway rather than inside any single InferencePool, so the routing decision can change without redeploying the model.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;SLO-aware admission control&lt;/strong&gt; is operationally healthier than queuing requests that will miss their SLO, because the queue itself becomes a tail-latency anchor under load. Gold-tier requests get admitted ahead of silver, silver ahead of bronze, and requests likely to exceed token output limits or hit timeouts are rejected at the gateway with a clear error code rather than allowed to chew through GPU-seconds and then time out anyway.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Adaptive resource scheduling and hotspot prevention&lt;/strong&gt; is the layer where llm-d’s scheduler does the routing and cluster-level policy does the resource allocation. Adaptive parallelism (TP↔PP↔hybrid switching as traffic patterns shift), dynamic precision (FP8↔FP4 under thermal or load pressure), continuous prewarming of CUDA graphs via traffic-pattern time-series prediction, and MoE expert rebalancing for hot experts are all early-engineering or research today. An AI-grid design that holds up under those changes treats per-tenant SLO classes and telemetry-driven configuration as first-class concerns from the start, so that the static knobs can be swapped for adaptive ones without re-architecting.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The cost shape of this blueprint is the most non-linear of the six. Done well, it can let a platform team serve many tenants at high utilization; done poorly, it becomes a fragmented zoo of single-tenant pools each running at low utilization, and the difference between those two outcomes is almost entirely a matter of cascading, admission control, and shared cache design.&lt;/p&gt;

&lt;h3 id=&quot;75-hybrid-sovereign---cloud-burst&quot;&gt;&lt;strong&gt;7.5 Hybrid Sovereign -&amp;gt; Cloud-Burst&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Signature.&lt;/strong&gt; Regulated baseline workload that must run on-premises for data residency, sovereignty, or contractual reasons, with peaks that exceed on-prem capacity and need to burst to a public cloud region without breaking the regulatory posture.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Topology.&lt;/strong&gt; Red Hat OpenShift AI on Red Hat OpenShift provides a single control plane across both environments, with model artifacts in a shared registry and configuration drift managed by GitOps so that the on-prem and burst clusters stay aligned. llm-d’s Inference Gateway fronts both clusters, and congestion-aware, topology-aware scheduling routes individual requests to whichever cluster currently has capacity and the warm prefix. The burst cluster runs cold most of the time. What makes its capacity usable when the spike arrives, rather than tens of seconds later, is fast, deterministic warm-up: pre-pulled pinned images and kernels and a minimal standing footprint, with predictive prewarming via time-series traffic forecasting layered on as that capability matures (Section 7.4). The aim is for the CUDA graphs and KV pools to be warm before traffic shifts, not after.&lt;/p&gt;

&lt;p&gt;The cost shape is a capex-anchored on-prem baseline plus variable cloud opex paid only during bursts. The economics hold only if the burst cluster stays genuinely cold between peaks, so the lever is a fast warm-up, not standing capacity.&lt;/p&gt;

&lt;h3 id=&quot;76-edge-inference-on-a-workstation-class-gpu&quot;&gt;&lt;strong&gt;7.6 Edge inference on a workstation-class GPU&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Signature.&lt;/strong&gt; A single physical site such as a factory floor, retail location, clinic, branch office, vehicle, or regional data closet, where data residency, latency, or connectivity rule out cloud inference for the baseline workload, and backhaul to a regional cluster (when it exists at all) is expensive or intermittent. Concurrent users are typically in the 1–50 range. Both TTFT and TPOT matter to a human operator, but request volume is low enough that throughput is bounded by a single accelerator rather than by anything in the orchestration layer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Topology.&lt;/strong&gt; The pattern is a single vLLM instance per accelerator with no llm-d disaggregation, because the prefill-decode transfer hop costs more than it saves below roughly 100 concurrent sessions. KServe handles the serving lifecycle; the OpenShift footprint follows the site: Single Node OpenShift (SNO) for single-node sites, and multi-node OpenShift for regional installations with a handful of cards. GitOps pins the model artifact across the fleet so the same Qwen3.6-27B build runs in every store, clinic, or branch without per-site drift.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The model fits on 96 GB.&lt;/strong&gt; The hybrid architecture of Qwen3.6-27B is unusually edge-friendly because three of every four attention sublayers are Gated DeltaNet (a linear-attention variant whose state does not grow with context length), so only 16 of the 64 layers maintain a per-token KV cache, with 4 KV heads at head_dim 256. Per-token KV is therefore roughly 64 KB in FP16 or 32 KB in FP8, several times smaller than a pure-transformer model of comparable parameter count, and after 27 GB of FP8 weights and ~4 GB of working memory the remaining ~65 GB of VRAM holds roughly 2 million tokens of cumulative KV at FP8 KV precision. That budget supports any of: ~50 concurrent sessions at 32k context each, ~15 sessions at 128k each, or ~4 sessions at 512k each (the last with FP4 KV). For larger models the envelope tightens quickly: Qwen3.5-35B-A3B at FP8 leaves around 55 GB for KV (workable for moderate concurrency), while Qwen3.5-397B-A17B will not fit a single card at any production precision because the full expert table must be resident.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hardware is substrate, not strategy.&lt;/strong&gt; The accelerators at this tier (workstation cards such as the NVIDIA RTX PRO 6000 (96GB) Blackwell, or deskside superchip systems such as DGX Spark and the &lt;a href=&quot;https://www.supermicro.com/en/accelerators/nvidia/super-ai-station&quot;&gt;Supermicro Super AI Station&lt;/a&gt;) differ mainly in memory bandwidth and capacity, but the software approach is the same across all of them: quantize to fit one accelerator, serve a single vLLM instance, and scale with replicas (DP) before sharding. The one constraint they share is the absence of NVLink-class fabric between boxes, so any multi-box scale-out is a capacity play built on pipeline or expert sharding, not a tensor-parallel throughput play (see &lt;a href=&quot;https://terrytangyuan.github.io/2026/06/22/designing-distributed-ai-inference-core-concepts-and-scaling-dimensions/&quot;&gt;Part 1, Section 3&lt;/a&gt;). Decode is memory-bandwidth-bound, so the deployment is capex-dominated, and there is no clean $/MToken story until a site outgrows ~100 concurrent sessions and starts to look like a regional cluster.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Multi-tier pattern.&lt;/strong&gt; For edge sites that occasionally see queries too hard for the local model, route them over backhaul to a regional cloud cluster running the Section-7.4 AI-grid, with model cascading at the local gateway keeping the fast path on-device and escalating only when a confidence signal or explicit policy demands the flagship model. p99 latency on local queries stays predictable while the heavier model remains available for the long tail, and the backhaul cost stays bounded because escalations are a fraction of total traffic.&lt;/p&gt;

&lt;h2 id=&quot;8-inference-troubleshooting-recipes&quot;&gt;&lt;strong&gt;8. Inference Troubleshooting Recipes&lt;/strong&gt;&lt;/h2&gt;

&lt;p&gt;When TTFT or TPOT regress, the first move is not to change anything but to look at the metrics the fleet already emits, because most regressions point at themselves once you know which dial to read. The &lt;a href=&quot;https://docs.vllm.ai/en/latest/serving/metrics.html&quot;&gt;vLLM Prometheus endpoint&lt;/a&gt; exposes per-request and per-batch metrics (queue time, scheduling delay, prefill duration, decode duration, KV-cache utilization), and the llm-d scheduler emits routing decisions and per-worker queue depths, so the two together answer the first question every time: is the regression at the gateway (routing), in the prefill phase, in the decode phase, or in the KV transfer between them?&lt;/p&gt;

&lt;p&gt;For deeper investigation, &lt;a href=&quot;https://developer.nvidia.com/nsight-systems&quot;&gt;Nsight Systems&lt;/a&gt; captures end-to-end traces and is the right tool when a regression appears to span multiple processes or involves CPU↔GPU coordination, while &lt;a href=&quot;https://developer.nvidia.com/nsight-compute&quot;&gt;Nsight Compute&lt;/a&gt; drills into a specific kernel when a single operation is the bottleneck.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/distributed-ai-inference-best-practices/image7.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Figure-8 Troubleshooting Recipes&lt;/p&gt;

&lt;p&gt;The recipes that recur most often in production inference work are these:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Sudden TPOT increase with KV utilization climbing usually means KV-cache fragmentation or over-eager preemption; tune the preemption threshold and verify chunked prefill is enabled if long prompts are starving the short decodes queued behind them.&lt;/li&gt;
  &lt;li&gt;MoE traffic with degraded throughput and one or two experts at much higher queue depth than the others is hot-expert imbalance; enable EPLB, and if the imbalance persists consider expert replication.&lt;/li&gt;
  &lt;li&gt;A disaggregated fleet with TTFT fine but TPOT spikes correlated with prompt arrival means NIXL queue depth is rising and decode workers are blocked waiting for KV transfer; verify RDMA driver health and check that the NIXL metadata server isn’t single-pointed.&lt;/li&gt;
  &lt;li&gt;Speculative decoding enabled and throughput unchanged or worse usually means draft-head acceptance rate has decayed; inspect per-request acceptance metrics, because the model or workload may have drifted away from what the draft was trained for.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Roll out changes via canary, gate on both TTFT and TPOT, and never change two scheduler parameters at once, because debugging which one mattered is harder than the original problem.&lt;/p&gt;

&lt;h2 id=&quot;9-where-to-start-where-to-grow&quot;&gt;&lt;strong&gt;9. Where to start, where to grow&lt;/strong&gt;&lt;/h2&gt;

&lt;p&gt;A practical sequence for a team standing up vLLM and llm-d on OpenShift AI runs roughly like this.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Begin on a single node with a single vLLM instance, pick the model and the parallelism layout from the &lt;a href=&quot;https://terrytangyuan.github.io/2026/06/22/designing-distributed-ai-inference-core-concepts-and-scaling-dimensions/&quot;&gt;Part 1 parallelism table&lt;/a&gt;, and baseline TTFT and TPOT on production traffic for at least a week, because the numbers from that baseline are what every later decision will be measured against.&lt;/li&gt;
  &lt;li&gt;Add llm-d when the single-node fleet stops scaling linearly: the signal is that a second replica behind a load balancer produces less than 1.8× the throughput of one, which means round-robin routing is leaving cache hits on the table.&lt;/li&gt;
  &lt;li&gt;Disaggregate only when the measured prefill-to-decode imbalance is large enough to pay for the transfer hop, because disaggregation done prematurely costs more than it saves; layer speculative decoding once concurrency has stabilized, since at low concurrency the wins are largest and at saturated high concurrency they shrink.&lt;/li&gt;
  &lt;li&gt;Reach for the AI-grid blueprint when the platform serves more than one model class to more than one tenant, because the mechanisms (model cascading, SLO classes, shared cache fabric, GitOps-managed pools) earn their complexity at the multi-tenant scale and waste effort below it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/distributed-ai-inference-best-practices/image3.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Figure-9 Where to start, where to grow.&lt;/p&gt;

&lt;p&gt;The through-line connects every step. &lt;a href=&quot;https://terrytangyuan.github.io/2026/06/22/designing-distributed-ai-inference-core-concepts-and-scaling-dimensions/&quot;&gt;Part 1&lt;/a&gt; covered the foundational concepts; &lt;a href=&quot;https://terrytangyuan.github.io/2026/06/24/optimizing-distributed-ai-inference-advanced-deployment-patterns/&quot;&gt;Part 2&lt;/a&gt; turned those into optimization levers; this article assembled them into deployments, adding one mechanism at a time and only when a measurement shows the simpler setup has run out, then re-baselining after each change so the next decision rests on data rather than expectation. Start simple, measure honestly, and identify optimization starting from the workload rather than let the technique catalog decide what comes next.&lt;/p&gt;

&lt;p&gt;Each rung of that ladder maps to a layer of the Red Hat stack you can deploy rather than assemble by hand. Red Hat OpenShift provides the Kubernetes substrate; Red Hat OpenShift AI adds the model registry, pipelines, monitoring, and governance; Red Hat AI Inference Server packages a hardened vLLM with pinned kernels and LLM Compressor for quantization; KServe manages the serving lifecycle; and llm-d, now a CNCF Sandbox project, supplies the distributed inference layer for cache-aware routing, disaggregation, and KV-cache-aware scheduling. The blueprints in Section 7 are assembled from these building blocks, and the sequence above is how you adopt them without paying for complexity before the workload calls for it.&lt;/p&gt;

&lt;p&gt;To learn more, take a look at these resources:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://developers.redhat.com/articles/2026/06/22/designing-distributed-ai-inference-core-concepts-and-scaling-dimensions&quot;&gt;Designing Distributed AI Inference: Core Concepts and Scaling Dimensions&lt;/a&gt; (Part 1 on Red Hat Developer covering prefill/decode phases and 5D parallelism)&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://developers.redhat.com/articles/2026/06/24/optimizing-distributed-ai-inference-advanced-deployment-patterns&quot;&gt;Optimizing Distributed AI Inference: Advanced Deployment Patterns&lt;/a&gt; (Part 2 on Red Hat Developer covering P/D disaggregation, KV cache, and speculative decoding)&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://developers.redhat.com/articles/2025/10/30/why-vllm-best-choice-ai-inference-today&quot;&gt;Why vLLM is the best choice for AI inference today&lt;/a&gt; (Part-I of this series)&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/llm-d/llm-d&quot;&gt;llm-d&lt;/a&gt;, the Kubernetes-native distributed inference framework (now a CNCF Sandbox project)&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://developers.redhat.com/articles/2026/04/21/kserve-llm-d-optimized-gen-ai-inference&quot;&gt;Combining KServe and llm-d for optimized gen-AI inference&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://developers.redhat.com/articles/2026/05/20/what-gpu-kernels-mean-your-distributed-inference&quot;&gt;What GPU kernels mean for your distributed inference&lt;/a&gt; (the companion piece on kernels and supply-chain discipline)&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.redhat.com/en/blog/red-hat-ai-inference-server-technical-deep-dive&quot;&gt;Red Hat AI Inference Server Technical Deep Dive&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/vllm-project/llm-compressor&quot;&gt;LLM Compressor&lt;/a&gt; for producing and validating quantized models&lt;/li&gt;
  &lt;li&gt;vLLM &lt;a href=&quot;https://docs.vllm.ai/en/latest/serving/context_parallel_deployment/&quot;&gt;context-parallel deployment&lt;/a&gt; and &lt;a href=&quot;https://docs.vllm.ai/en/stable/features/disagg_prefill/&quot;&gt;disaggregated prefilling&lt;/a&gt; documentation&lt;/li&gt;
&lt;/ul&gt;

</description>
        <pubDate>Fri, 26 Jun 2026 00:00:00 +0000</pubDate>
        <link>https://terrytangyuan.github.io/2026/06/26/deploying-distributed-ai-inference-blueprints-troubleshooting/</link>
        <guid isPermaLink="true">https://terrytangyuan.github.io/2026/06/26/deploying-distributed-ai-inference-blueprints-troubleshooting/</guid>
        
        <category>Open Source</category>
        
        <category>Kubernetes</category>
        
        <category>Artificial Intelligence</category>
        
        <category>Machine Learning</category>
        
        <category>KServe</category>
        
        
      </item>
    
      <item>
        <title>Optimizing Distributed AI Inference: Advanced Deployment Patterns</title>
        <description>&lt;p&gt;&lt;em&gt;Originally posted on &lt;a href=&quot;https://developers.redhat.com/articles/2026/06/24/optimizing-distributed-ai-inference-advanced-deployment-patterns&quot;&gt;Red Hat Developer&lt;/a&gt;. This is Part 2 of a three-part series on distributed AI inference. See also &lt;a href=&quot;https://terrytangyuan.github.io/2026/06/22/designing-distributed-ai-inference-core-concepts-and-scaling-dimensions/&quot;&gt;Part 1: Core Concepts and Scaling Dimensions&lt;/a&gt; and &lt;a href=&quot;https://terrytangyuan.github.io/2026/06/26/deploying-distributed-ai-inference-blueprints-troubleshooting/&quot;&gt;Part 3: Blueprints &amp;amp; Troubleshooting&lt;/a&gt;. The full article is also available as a &lt;a href=&quot;https://terrytangyuan.github.io/2026/06/05/distributed-ai-inference-best-practices-gotchas/&quot;&gt;single post&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Authors:&lt;/strong&gt; Fatih Nar, Yuchen Fama, Greg Pereira, Yuan Tang&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Reviewers&lt;/strong&gt;: Taneem Ibrahim, Robert Shaw, Ron Haberman, Anish Asthana&lt;/em&gt;&lt;/p&gt;

&lt;h2 id=&quot;4-pd-disaggregation-as-a-deployment-pattern&quot;&gt;&lt;strong&gt;4. P/D Disaggregation as a Deployment Pattern&lt;/strong&gt;&lt;/h2&gt;

&lt;p&gt;&lt;a href=&quot;https://terrytangyuan.github.io/2026/06/22/designing-distributed-ai-inference-core-concepts-and-scaling-dimensions/&quot;&gt;Part 1&lt;/a&gt; described disaggregation as a feature of llm-d, but in practice it is a deployment topology (the most consequential one we cover here), and we need to reason about it as such rather than check it off as a capability.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/distributed-ai-inference-best-practices/image6.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Figure-4 Prefill/Decode&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to disaggregate.&lt;/strong&gt; The decision rule is neither “always” nor “for big models,” but determined from measurable observations within the system. Profile a baseline single-pool deployment and measure the ratio of prefill GPU-seconds to decode GPU-seconds on your real traffic, then compare it to the ratio of decode-optimized to prefill-optimized GPU cost in your environment. If your traffic is prefill-heavy while you are paying for decode-class hardware (because decode dominates wall-clock), or vice versa, the gap between those two ratios is the upside available from disaggregation. The decision tends to pay off for long-prompt RAG with short answers (prefill-heavy), for high-concurrency chat with short prompts and long answers (decode-heavy), and for any fleet large enough that the $/Mtoken reduction justifies the operational complexity. In our benchmarks that reduction runs 25–40% on chat- and RAG-shaped traffic, consistent with published disaggregation results: &lt;a href=&quot;https://arxiv.org/abs/2311.18677&quot;&gt;Splitwise&lt;/a&gt; reports about 20% lower cost at 1.4× throughput, and &lt;a href=&quot;https://arxiv.org/abs/2401.09670&quot;&gt;DistServe&lt;/a&gt; up to 7.4× higher goodput. It tends not to pay off for single-node deployments where the network hop between prefill and decode workers would exceed the savings, nor for any fleet small enough that two pools of one are worse than one pool of two.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sizing the two pools.&lt;/strong&gt; Prefill workers scale with the arrival rate of new prompts and with prompt-length distribution, while decode workers scale with concurrent active sessions, average token output sizing and target TPOT, and the two scale independently. A useful first cut for a chat workload with mean prompt 800 tokens and mean output 200 tokens at 5,000 concurrent sessions on Qwen3.5-35B-A3B works out to roughly one H100 of prefill capacity per ~30 requests/second of arrival rate, and roughly one decode GPU (L40S-class) per ~150 concurrent sessions, in our lab measurements. These numbers move with model and quantization, but the ratio (typically 1:3 to 1:5 prefill to decode workers for chat) is broadly stable across the workloads we have benchmarked.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;KV-transfer connectors and the data path.&lt;/strong&gt; Once the pools are split, the KV cache produced by prefill must reach decode workers, and vLLM exposes a KVConnector interface with three production-relevant implementations.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Connector&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Best for&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Transport&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Notes&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;NixlConnector&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Single-cluster, RDMA/NVLink available&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;NVIDIA NIXL over UCX&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Default for high-performance PD; metadata server is a startup SPOF&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;LMCacheConnector&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Cross-instance cache sharing, HBM→DRAM→NVMe tiering&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;NIXL under the hood, plus offload backends&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Adds tiered KV cache + shared prefix index (&lt;a href=&quot;https://arxiv.org/abs/2510.09665&quot;&gt;LMCache, arXiv:2510.09665&lt;/a&gt;)&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;MooncakeConnector&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Cluster-scale shared cache pools&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;RDMA-native&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Best when you want a separate KV-cache cluster that many vLLM instances pull from&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;MooncakeStoreConnector&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Tiered cache offloading through use of a distributed master store&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Cache offloading&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Offload tier behind MooncakeConnector; KV lands in a distributed master store rather than peer HBM&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table-3 KV-Cache Connectors&lt;/p&gt;

&lt;p&gt;Treat the KV-transfer fabric the way you would treat any other production data path: measure end-to-end latency including queue time, alert on tail latency rather than mean, and verify RDMA driver health on every node, because NIXL’s asynchronous send/receive is the right primitive for production only if prefill workers are never made to block on decode-side acknowledgement.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The disaggregated KV cache pool.&lt;/strong&gt; We find the most useful framing is to stop thinking of the cluster’s KV cache as per-worker memory plus a transfer protocol, and start treating it as a cluster-wide resource with its own scheduling concerns. &lt;a href=&quot;https://arxiv.org/abs/2510.09665&quot;&gt;LMCache&lt;/a&gt; makes this explicit by tiering across HBM, DRAM, and NVMe and exposing a global prefix index, so that when two requests share a prefix (a system prompt, a few-shot prefix, the first thousand tokens of a contract), they share KV blocks no matter which instance generated them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The llm-d scheduler.&lt;/strong&gt; Cache-aware routing is what turns disaggregation from a feature into a working pattern, because instead of round-robin across decode workers, llm-d routes a request to the worker that already has the warmest KV state for the request’s prefix. &lt;a href=&quot;https://llm-d.ai/blog/llm-d-v0.5-sustaining-performance-at-scale&quot;&gt;Published llm-d benchmarks&lt;/a&gt; report up to 57× faster TTFT and 2× throughput against round-robin routing under high prefix reuse (8 pods / 16×H100). Our internal measurements are more conservative, and illustrative rather than guaranteed: a roughly 25% improvement on defaults, 2–3× tokens-per-second-per-GPU when paired with prefix-cache-hit routing, and 3–5× cost-per-token reduction on chat-shaped workloads where prefix reuse is high. Numbers in any given production deployment will be lower than these lab-style figures, though the direction is reliable across every workload we have measured.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hybrid GPU-CPU prefill.&lt;/strong&gt; A forward-looking pattern is emerging on Grace Hopper and Vera Rubin superchips, where the CPU side of the superchip handles parts of the prefill (notably embedding lookup and some attention prep) while the GPU handles the matmul-heavy portions. It is not yet a first-line recommendation for production, but it is worth designing the deployment with the prefill pool as a separately scheduled component, so that the worker type can change as the hardware matures without re-architecting.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Failure modes that bite in production.&lt;/strong&gt; The NIXL metadata server is a single point of failure on startup, so run two behind a TCP load balancer and verify failover before the first canary. Decode workers that fall behind the KV transfer become tail-latency anchors for the whole fleet, which is why admission control at the gateway is more useful than retrying after the fact. And canary rollouts for disaggregated fleets should change one pool at a time, with rollback gates on both TTFT and TPOT, so that a regression in either KPI is caught before it spreads.&lt;/p&gt;

&lt;h2 id=&quot;5-kv-cache-tiering-sharing-squeezing&quot;&gt;&lt;strong&gt;5. KV Cache: Tiering, Sharing, Squeezing&lt;/strong&gt;&lt;/h2&gt;

&lt;p&gt;&lt;a href=&quot;https://arxiv.org/abs/2309.06180&quot;&gt;PagedAttention&lt;/a&gt; solved the fragmentation problem inside a single GPU, but the next set of problems lives across GPUs and across the cluster, and they need different tools.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/distributed-ai-inference-best-practices/image8.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Figure-5 KV-Cache&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tiered hierarchy.&lt;/strong&gt; Section 4 introduced LMCache’s HBM→DRAM→NVMe tiering as a cluster-wide resource; the question here is when to turn it on. Most enterprise workloads have a long tail of cold prefixes that fit in DRAM or NVMe but not in HBM, and the decision rule is simple: if your prefix-cache hit rate would be substantially higher with a 10× larger cache than you can afford in HBM, then tiering pays for itself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;KV reuse vs prefix sharing.&lt;/strong&gt; These two are often conflated, but they are different concerns with different configuration knobs. Prefix sharing means that two requests starting with the same tokens share the cache, while KV reuse means that the same request’s KV is retained across turns of a multi-turn session. Multi-tenant chat platforms benefit from both, because shared system prompts give one and conversation history gives the other. Prefix sharing is therefore a routing concern (send the new request to the worker that has the warm prefix), while reuse is a session-affinity concern that keeps the same session pinned to the same decode worker.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quantization.&lt;/strong&gt; &lt;a href=&quot;https://vllm.ai/blog/2026-04-22-fp8-kvcache&quot;&gt;FP8 KV cache&lt;/a&gt; halves the memory footprint with a measurable but usually acceptable quality cost on most enterprise tasks, while FP4 KV is more aggressive and currently best deployed only on workloads where you can afford an evaluation pass against your own data. Red Hat’s &lt;a href=&quot;https://github.com/vllm-project/llm-compressor&quot;&gt;LLM Compressor&lt;/a&gt; produces quantized variants of the Qwen models and validates them against your own eval set rather than a generic benchmark.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Decode kernels.&lt;/strong&gt; vLLM’s decode path is fast in 2026 not because of one optimization but because of a family of them, with &lt;a href=&quot;https://github.com/deepseek-ai/FlashMLA&quot;&gt;FlashMLA&lt;/a&gt; (DeepSeek), &lt;a href=&quot;https://hazyresearch.stanford.edu/blog/2025-03-04-thundermla&quot;&gt;ThunderMLA&lt;/a&gt; (Stanford), and PyTorch’s FlexAttention decode path all contributing. Platform teams rarely tune these kernels directly, but knowing which one your vLLM build is using helps when investigating an unexpected decode regression after a version upgrade. At fleet scale the harder problem is provenance and consistency: every prefill, decode, and draft-model replica must load identical, pinned kernel binaries, which is why a production runtime ships them build-from-source and SBOM-covered in the image rather than pulling them from a public registry at first request. We cover that kernel supply-chain trade-off, and the GPU Kernel Manager (GKM) bridge for heterogeneous fleets, in &lt;a href=&quot;https://developers.redhat.com/articles/2026/05/20/what-gpu-kernels-mean-your-distributed-inference&quot;&gt;What GPU kernels mean for your distributed inference&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PagedAttention vs Radix-Attention.&lt;/strong&gt; &lt;a href=&quot;https://arxiv.org/abs/2312.07104&quot;&gt;SGLang’s RadixAttention&lt;/a&gt; takes a different architectural bet by organizing the cache as a prefix tree and letting the structure of conversation guide eviction, whereas PagedAttention treats the cache like virtual memory pages, and reasonable engineers disagree on the trade-off: Radix tends to win on workloads with deep, branching prefix trees (agent workflows, structured prompting), while PagedAttention tends to win on workloads with high variance in sequence length and irregular prefix patterns. vLLM has stayed with PagedAttention because the engine is general-purpose and the page-table abstraction generalizes more cleanly to disaggregation, where the unit of transfer is naturally a page.&lt;/p&gt;

&lt;h2 id=&quot;6-speculative-decoding&quot;&gt;&lt;strong&gt;6. Speculative Decoding&lt;/strong&gt;&lt;/h2&gt;

&lt;p&gt;Speculative decoding generates several candidate tokens at once with a cheaper draft path, then verifies them with the target model, so that when the drafts are accepted the model emits several tokens per forward pass. The families of technique that vLLM supports today are worth distinguishing, because their cost profiles are very different.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/distributed-ai-inference-best-practices/image9.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Figure-6 Speculative Decoding&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Two-model, draft-based (EAGLE family).&lt;/strong&gt; A small draft model proposes tokens that the target then verifies. &lt;a href=&quot;https://arxiv.org/abs/2503.01840&quot;&gt;EAGLE-3&lt;/a&gt; has been reported to reach up to ~6× speedups on dense models, while &lt;a href=&quot;https://vllm.ai/blog/2026-05-26-eagle-3-1&quot;&gt;EAGLE 3.1&lt;/a&gt; (May 2026) extends that gain materially into long-context regimes with up to 2× longer acceptance length than EAGLE-3, making it a strong starting choice for dense Qwen3.6 workloads.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Single-model self-speculative.&lt;/strong&gt; The model drafts and verifies itself, typically by using a subset of its own layers as the draft, which gives a lower setup cost (there is no separate draft model to train or host) at the price of a more variable acceptance rate that depends on the workload.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Multi-token decoding (&lt;a href=&quot;https://arxiv.org/abs/2401.10774&quot;&gt;Medusa&lt;/a&gt; heads).&lt;/strong&gt; Adding multiple output heads to the target model lets it predict several tokens per pass, and although the engineering cost is roughly half that of EAGLE-3 to deploy, the acceptance rates are correspondingly more modest, at around 0.55–0.70.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Interleaved decode and constrained-decoding interactions.&lt;/strong&gt; Less a technique than a scheduling choice, modern vLLM interleaves spec-decoded sessions with normal decode steps to keep batches full. There is one important caveat: when the workload uses constrained decoding (JSON mode, tool calls with grammars), the acceptance rate of speculative decoding often collapses because the constraint mask invalidates speculative tokens, so measure before assuming spec decoding helps in tool-calling traffic.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Multi-token prediction (MTP).&lt;/strong&gt; Some models, notably &lt;a href=&quot;https://arxiv.org/abs/2412.19437&quot;&gt;DeepSeek-V3&lt;/a&gt;, ship with MTP heads trained jointly with the main model, and acceptance rates exceed 80% out of the box. This makes MTP the natural choice for any model that ships MTP-trained, but it cannot be bolted on to models that don’t without re-training.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Workload&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Anchor model&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Recommended&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Why&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Short conversational, dense&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Qwen3.6-27B&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;EAGLE 3.1&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Best accept-rate/cost ratio, current generation&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Long-context (&amp;gt;64k)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Qwen3.5 dense or MoE&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;EAGLE 3.1&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Long-context acceptance is the headline improvement&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;MoE flagship&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Qwen3.5-397B-A17B&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Native MTP if trained; else EAGLE-3&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Active-param shape favors MTP-style heads&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Code completion&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Qwen3.6 dense&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;n-gram / prompt-lookup&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Repetitive code structure makes hit rate high; no draft to host&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Strict memory budget&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;any&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;n-gram&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;No draft model to host on decode GPU&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Heavy tool-calling traffic&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;any&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Disable or test&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Constrained decoding interaction is severe&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table-4 Speculative Decoding Options vs Workloads&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The draft model occupies decode-worker HBM and adds verification overhead, so on already-saturated, large-batch decode fleets the win from spec decoding shrinks, because the batch is already amortizing the kernel launch. At the extreme it can become a net loss, so the clearest wins are at low-to-moderate concurrency, where each forward pass is underutilized.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Continue to &lt;a href=&quot;https://terrytangyuan.github.io/2026/06/26/deploying-distributed-ai-inference-blueprints-troubleshooting/&quot;&gt;Part 3: Blueprints &amp;amp; Troubleshooting&lt;/a&gt;, which covers six deployment blueprints, troubleshooting recipes, and a scaling roadmap.&lt;/em&gt;&lt;/p&gt;

</description>
        <pubDate>Wed, 24 Jun 2026 00:00:00 +0000</pubDate>
        <link>https://terrytangyuan.github.io/2026/06/24/optimizing-distributed-ai-inference-advanced-deployment-patterns/</link>
        <guid isPermaLink="true">https://terrytangyuan.github.io/2026/06/24/optimizing-distributed-ai-inference-advanced-deployment-patterns/</guid>
        
        <category>Open Source</category>
        
        <category>Kubernetes</category>
        
        <category>Artificial Intelligence</category>
        
        <category>Machine Learning</category>
        
        <category>KServe</category>
        
        
      </item>
    
      <item>
        <title>Designing Distributed AI Inference: Core Concepts and Scaling Dimensions</title>
        <description>&lt;p&gt;&lt;em&gt;Originally posted on &lt;a href=&quot;https://developers.redhat.com/articles/2026/06/22/designing-distributed-ai-inference-core-concepts-and-scaling-dimensions&quot;&gt;Red Hat Developer&lt;/a&gt;. This is Part 1 of a three-part series on distributed AI inference. See also &lt;a href=&quot;https://terrytangyuan.github.io/2026/06/24/optimizing-distributed-ai-inference-advanced-deployment-patterns/&quot;&gt;Part 2: Advanced Deployment Patterns&lt;/a&gt; and &lt;a href=&quot;https://terrytangyuan.github.io/2026/06/26/deploying-distributed-ai-inference-blueprints-troubleshooting/&quot;&gt;Part 3: Blueprints &amp;amp; Troubleshooting&lt;/a&gt;. The full article is also available as a &lt;a href=&quot;https://terrytangyuan.github.io/2026/06/05/distributed-ai-inference-best-practices-gotchas/&quot;&gt;single post&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Authors:&lt;/strong&gt; Fatih Nar, Yuchen Fama, Greg Pereira, Yuan Tang&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Reviewers&lt;/strong&gt;: Taneem Ibrahim, Robert Shaw, Ron Haberman, Anish Asthana&lt;/em&gt;&lt;/p&gt;

&lt;h2 id=&quot;1-introduction&quot;&gt;&lt;strong&gt;1. Introduction&lt;/strong&gt;&lt;/h2&gt;

&lt;p&gt;In our &lt;a href=&quot;https://developers.redhat.com/articles/2025/10/30/why-vllm-best-choice-ai-inference-today&quot;&gt;Part-I article&lt;/a&gt;, we evaluated vLLM alongside other state-of-the-art model-serving options and established it as the runtime backbone for enterprise AI inference. Choosing the runtime is foundational, but it does not by itself determine how the service is deployed, scaled, operated and maintained.&lt;/p&gt;

&lt;p&gt;In Part-II (this article) we architect the serving blueprint by mapping a model’s needs, a hardware budget, and service-level objectives onto the deployment manifest(s) that fit the actual workload. No single blueprint fits every case, because the workload is shaped by the business behind it:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;how many requests arrive at once,&lt;/li&gt;
  &lt;li&gt;how long the prompts and contexts run,&lt;/li&gt;
  &lt;li&gt;the subject-matter domain, and&lt;/li&gt;
  &lt;li&gt;how much reasoning each request demands.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We map business needs to a few short-listed major KPIs: time to first token (TTFT), time per output token (TPOT, or inter-token latency), throughput in requests-per-second and tokens-per-second, GPU utilization, and Key-Value (KV) cache hit rate. These trade against each other constantly, so most deployment decisions are about which trade you can tolerate for which workload, and for what business benefit.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/distributed-ai-inference-best-practices/image2.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Figure-1 Distributed Inference Decision Framework&lt;/p&gt;

&lt;p&gt;Three key things have developed in the ecosystem since Part-I was published:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;The llm-d project’s acceptance into the CNCF Sandbox gives it a clearer open-governance path and makes it easier to evaluate in environments where vendor neutrality, community stewardship, and long-term ecosystem alignment matter.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;KV-cache management has become one of the most active areas of innovation in distributed inference. Projects such as NIXL, LMCache, and Mooncake are competing and converging around different approaches to KV-cache transfer, reuse, and offload. For platform teams, this means cache architecture is now a first-class design decision: it affects latency, network requirements, failure handling, observability, hardware affinity, and the sizing of prefill and decode pools.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Speculative decoding is moving from research technique to practical optimization path. EAGLE 3.1, a collaboration between the EAGLE team, the vLLM team, and TorchSpec, landed in late May 2026 with materially better long-context acceptance length than EAGLE-3. It makes speculative decoding more relevant for long-document workloads that were previously borderline, while leaving the core engineering question intact: whether the acceptance rate, memory overhead, batching behavior, and operational complexity justify enabling it for a given deployment.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The high-value AI models we use for our examples throughout the article (based on our industry-specific &lt;a href=&quot;https://open-experiments.github.io/Telco-AIX/&quot;&gt;assessments&lt;/a&gt;) are Alibaba’s Qwen3.5 and Qwen3.6 families, in both dense (Qwen3.6-27B) and mixture-of-experts (Qwen3.5-35B-A3B and Qwen3.5-397B-A17B) variants. These models are useful anchors because they span a realistic enterprise serving spectrum: smaller dense models for general-purpose latency-sensitive workloads, mid-sized MoE models for cost-efficient throughput, and larger MoE models for high-capability workloads that stress routing, memory, and distributed execution.&lt;/p&gt;

&lt;h2 id=&quot;2-prefilldecode-two-phases-two-kpis&quot;&gt;&lt;strong&gt;2. Prefill/Decode: Two phases, Two KPIs&lt;/strong&gt;&lt;/h2&gt;

&lt;p&gt;LLM inference is two workloads pretending to be one.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Prefill&lt;/strong&gt; processes the input prompt and populates the KV cache. Because the prompt tokens can be processed in parallel, this phase is dominated by dense matrix operations and tends to be compute-bound. It is the primary driver of time to first token (TTFT), especially for long prompts and retrieval-augmented generation workloads.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Decode&lt;/strong&gt; generates the response token by token, repeatedly attending over the accumulated KV cache as each new token is produced. This phase tends to be memory-bandwidth-bound: it stresses HBM capacity and bandwidth more than raw compute, and it is the primary driver of time per output token (TPOT), also called inter-token latency.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/distributed-ai-inference-best-practices/image5.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Figure-2 Prefill vs Decode&lt;/p&gt;

&lt;p&gt;The two phases interfere whenever they share a GPU, because the batching strategy that helps one hurts the other. Aggressive batching accumulates enough prompt tokens to use GPU compute efficiently, but a large prefill batch can occupy the worker long enough to delay the decode steps queued behind it, raising TPOT and making streaming feel uneven. Prioritizing decode is the opposite failure: it protects inter-token latency but leaves prefill under-batched, wasting compute and raising the cost of long prompts. The business-level symptoms follow directly: a fleet tuned only for decode feels responsive in chat while burning capacity on prefill-heavy work, and a fleet tuned only for prefill posts healthy aggregate tokens-per-second while making interactive users wait too long for the first token. This prefill/decode split is a foundational lens for much of what follows, starting with disaggregation in the &lt;a href=&quot;https://terrytangyuan.github.io/2026/06/24/optimizing-distributed-ai-inference-advanced-deployment-patterns/&quot;&gt;next article in this series&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;That leads to an architectural fork. The first path is to run prefill and decode together on the same homogeneous workers and let the scheduler arbitrate between them. This is the default shape for single-GPU vLLM deployments, and it remains the right answer for many small and medium-sized fleets because it is simpler to operate and avoids KV-cache transfer overhead. The second is to split them across heterogeneous pools and route each request through both. The threshold for that split is not a model size or a token count, but a measurable imbalance between the two phases, one large enough that the savings from right-sizing each pool exceed the cost of moving the KV cache between them.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Phase&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Bound by&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Scales with&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Right-sized hardware&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;KPI it drives&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Prefill&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Compute (FLOPs)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Prompt length&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;H100/H200, MI300X, B100/B200/B300&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;TTFT&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Decode&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Memory bandwidth&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Concurrent active sessions&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;A100, L40S, MI300, older H100&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;TPOT&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table-1 P/D Attributes&lt;/p&gt;

&lt;h2 id=&quot;3-the-5d-parallelism&quot;&gt;&lt;strong&gt;3. The 5D Parallelism&lt;/strong&gt;&lt;/h2&gt;

&lt;p&gt;Modern LLM serving spans a five-dimensional design space :&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Tensor parallelism (TP),&lt;/li&gt;
  &lt;li&gt;Pipeline parallelism (PP),&lt;/li&gt;
  &lt;li&gt;Expert parallelism (EP),&lt;/li&gt;
  &lt;li&gt;Data parallelism (DP), and&lt;/li&gt;
  &lt;li&gt;Context (sequence) parallelism (CP) which often splits into Prefill Context Parallel (PCP) and Decode Context Parallel (DCP).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;While Part-I introduced the first four, CP has become a first-class fifth dimension because Qwen3.5’s native 262k-token context makes it unavoidable for any serious long-context deployment.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/distributed-ai-inference-best-practices/image4.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Figure-3 5D Parallelism&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tensor parallelism (TP)&lt;/strong&gt; splits each weight matrix across GPUs and runs an all-reduce per layer. This is latency-sensitive within a node and communication-heavy across nodes, so NVLink and NVSwitch are effectively the budget that decides how far TP can scale before the all-reduce dominates. For dense models, the general best practice is to try the quantized version first, then use the minimum TP that fits the model with adequate KV headroom, then scale out with DP. The exception is a stringent single-request TTFT SLO, which can justify higher TP. For MoE models, where DP ranks coordinate on the expert layers, the TP/DP split differs because it determines how the experts are distributed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pipeline parallelism (PP)&lt;/strong&gt; splits the model by layer ranges and passes activations between stages. Because it exchanges activation tensors point-to-point at the stage boundaries rather than running an all-reduce every layer, it is far more tolerant of limited inter-node bandwidth than TP, and it can run over Ethernet-class fabrics where cross-node TP would stall. However that tolerance is relative, not absolute: the handoffs still sit on the critical path, the activation volume grows with batch size, sequence length, and hidden dimension, and any added link latency widens the pipeline bubbles that form when one stage waits on its predecessor. Micro-batching exists to hide those bubbles by keeping every stage fed. All of this makes PP useful when a model is too large to fit one node and the inter-node fabric isn’t fast enough for cross-node TP, but it is a last resort, not a default for large models: quantize first, then try EP+DP on one node, and reach for PP only when the weights genuinely don’t fit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Expert parallelism (EP)&lt;/strong&gt; distributes the experts of an MoE model across GPUs. Because each token is routed only to its assigned expert subset, traffic becomes asymmetric and bursty, and one or two popular experts can become tail-latency anchors for the whole fleet under skewed routing. Expert Parallel Load Balancing (EPLB) can replicate hot experts and rebalance routing dynamically, but it is not free: under stable routing patterns the rebalancing overhead may exceed the benefit, so enable EPLB when monitoring confirms persistent imbalance rather than as a blanket default. EP has two further costs.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Couples DP ranks that would otherwise be independent, because the expert layers synchronize on every forward pass even when some ranks have fewer requests.&lt;/li&gt;
  &lt;li&gt;Requires all-to-all traffic that scales with the number of active experts and the batch size.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Data parallelism (DP)&lt;/strong&gt; runs full model replicas behind a load balancer for linear throughput scaling with no model-sharding complexity. It is a common starting point when the model fits one node and the bottleneck is concurrent request volume; KServe’s ReplicaSet-based serving handles this case directly. DP alone does not set the ceiling, though: the parallelism configuration and routing strategy determine the real performance limit. Common pitfalls:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;stacking more DP replicas without checking for API-server bottlenecks,&lt;/li&gt;
  &lt;li&gt;ignoring KV-cache hit rate and MoE synchronization overhead, and&lt;/li&gt;
  &lt;li&gt;underestimating multi-node network costs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Context parallelism&lt;/strong&gt; &lt;strong&gt;(CP)&lt;/strong&gt; shards the sequence (context) dimension across GPUs, so that a single request’s context no longer has to fit, or be computed, on one device. Long context stresses prefill and decode in different ways, and the two phases carry different SLOs, so CP is applied separately to each as PCP and DCP.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Prefill context parallel (PCP)&lt;/strong&gt; targets TTFT. During prefill, attention cost grows with the square of the prompt length, so a long prompt can dominate time to first token. PCP partitions the sequence across devices and lets each one compute attention over its own chunk in parallel, which splits the prefill compute across GPUs and brings TTFT down. The cost is hardware: PCP expands the world size and runs in its own communication domain, so the device count becomes TP × PCP. Reach for it when prefill compute is what dominates TTFT and the GPU budget allows.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Decode context parallel (DCP)&lt;/strong&gt; targets throughput. During decode the bottleneck is KV-cache capacity: the more KV you can hold, the larger the batch, and the higher the throughput. DCP shards the KV cache along the sequence dimension across the GPUs already in the tensor-parallel group, reusing the TP communication domain, so it needs no extra devices. It is most valuable for models with few KV heads, such as Qwen3.5: under plain TP, when there are fewer KV heads than TP ranks, the KV cache is replicated across ranks and wastes HBM, and DCP removes that duplication and hands the freed memory back to the batch. Decode context parallel is supported in vLLM for both MLA and GQA models, and some attention backends can combine it with multi-token prediction (MTP) to accelerate decoding further.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Because DCP costs no additional GPUs and directly reduces KV duplication, it is the one most deployments should reach first. PCP is the heavier tool, added when a long prefill is the thing blowing the TTFT budget.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Model&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Hardware/Precision&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Suggested layout&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Notes&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Qwen3.6-27B (dense)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1×H100, FP8&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;TP=1&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;~27 GB weights; single-GPU baseline&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Qwen3.6-27B (dense)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;8×H100, FP8&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;DP=8&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;TP=1 per replica&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Qwen3.5-35B-A3B (MoE)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;8×H100, FP8&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;DP=8,  --enable-expert-parallel&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;EP=8; experts sharded&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Qwen3.5-35B-A3B (MoE)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;8×H100, BF16&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;TP=2, DP=4,  --enable-expert-parallel&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;~70 GB weights → TP=2 to fit; EP=8&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Qwen3.5-397B-A17B (MoE)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;16×H100 (2 nodes), FP8&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;PP=2, EP=8,  --enable-expert-parallel&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;~397 GB weights; layers split across the two nodes, experts split within each&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Any Qwen3.5 ≥128k decode&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;+ DCP (on top of above)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;--decode-context-parallel-size 2&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Shards KV on existing TP GPUs; no new devices&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Any Qwen3.5 ≥128k prefill&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;+ PCP (on top of above)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;--prefill-context-parallel-size 2&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Adds GPUs (TP × PCP)&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table-2 P/D AI Model vs Hardware vs Parallelism Options&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; vLLM computes EP = TP × DP per pipeline stage, so EP= in the table is for convenience. The optimal configuration of different parallelism combinations depends on the model architecture and hardware. Expert Parallelism can be latency-optimal for models like Qwen 3 with limited Key-Value heads, whereas Data Parallelism maximizes throughput but may introduce latency issues due to dispatch bubbles during the prefill and decode stages.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Continue to &lt;a href=&quot;https://terrytangyuan.github.io/2026/06/24/optimizing-distributed-ai-inference-advanced-deployment-patterns/&quot;&gt;Part 2: Advanced Deployment Patterns&lt;/a&gt;, which covers P/D disaggregation, KV cache strategies, and speculative decoding.&lt;/em&gt;&lt;/p&gt;

</description>
        <pubDate>Mon, 22 Jun 2026 00:00:00 +0000</pubDate>
        <link>https://terrytangyuan.github.io/2026/06/22/designing-distributed-ai-inference-core-concepts-and-scaling-dimensions/</link>
        <guid isPermaLink="true">https://terrytangyuan.github.io/2026/06/22/designing-distributed-ai-inference-core-concepts-and-scaling-dimensions/</guid>
        
        <category>Open Source</category>
        
        <category>Kubernetes</category>
        
        <category>Artificial Intelligence</category>
        
        <category>Machine Learning</category>
        
        <category>KServe</category>
        
        
      </item>
    
      <item>
        <title>Distributed AI Inference Best Practices &amp; Gotchas</title>
        <description>&lt;p&gt;&lt;em&gt;Originally posted on &lt;a href=&quot;https://medium.com/enterpriseai/distributed-ai-inference-best-practices-gotchas-911102c9a2ff&quot;&gt;Medium&lt;/a&gt;. This article is also available as a three-part series on Red Hat Developer: &lt;a href=&quot;https://developers.redhat.com/articles/2026/06/22/designing-distributed-ai-inference-core-concepts-and-scaling-dimensions&quot;&gt;Part 1: Core Concepts and Scaling Dimensions&lt;/a&gt; covers prefill/decode phases and 5D parallelism, &lt;a href=&quot;https://developers.redhat.com/articles/2026/06/24/optimizing-distributed-ai-inference-advanced-deployment-patterns&quot;&gt;Part 2: Advanced Deployment Patterns&lt;/a&gt; covers P/D disaggregation, KV cache, and speculative decoding, and &lt;a href=&quot;https://developers.redhat.com/articles/2026/06/26/deploying-distributed-ai-inference-blueprints-troubleshooting&quot;&gt;Part 3: Blueprints &amp;amp; Troubleshooting&lt;/a&gt; covers deployment blueprints and troubleshooting recipes.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Authors:&lt;/strong&gt; Fatih Nar, Yuchen Fama, Greg Pereira, Yuan Tang&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Reviewers&lt;/strong&gt;: Taneem Ibrahim, Robert Shaw, Ron Haberman, Anish Asthana&lt;/em&gt;&lt;/p&gt;

&lt;h2 id=&quot;1-introduction&quot;&gt;&lt;strong&gt;1. Introduction&lt;/strong&gt;&lt;/h2&gt;

&lt;p&gt;In our &lt;a href=&quot;https://developers.redhat.com/articles/2025/10/30/why-vllm-best-choice-ai-inference-today&quot;&gt;Part-I article&lt;/a&gt;, we evaluated vLLM alongside other state-of-the-art model-serving options and established it as the runtime backbone for enterprise AI inference. Choosing the runtime is foundational, but it does not by itself determine how the service is deployed, scaled, operated and maintained.&lt;/p&gt;

&lt;p&gt;In Part-II (this article) we architect the serving blueprint by mapping a model’s needs, a hardware budget, and service-level objectives onto the deployment manifest(s) that fit the actual workload. No single blueprint fits every case, because the workload is shaped by the business behind it:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;how many requests arrive at once,&lt;/li&gt;
  &lt;li&gt;how long the prompts and contexts run,&lt;/li&gt;
  &lt;li&gt;the subject-matter domain, and&lt;/li&gt;
  &lt;li&gt;how much reasoning each request demands.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We map business needs to a few short-listed major KPIs: time to first token (TTFT), time per output token (TPOT, or inter-token latency), throughput in requests-per-second and tokens-per-second, GPU utilization, and Key-Value (KV) cache hit rate. These trade against each other constantly, so most deployment decisions are about which trade you can tolerate for which workload, and for what business benefit.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/distributed-ai-inference-best-practices/image2.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Figure-1 Distributed Inference Decision Framework&lt;/p&gt;

&lt;p&gt;Three key things have developed in the ecosystem since Part-I was published:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;The llm-d project’s acceptance into the CNCF Sandbox gives it a clearer open-governance path and makes it easier to evaluate in environments where vendor neutrality, community stewardship, and long-term ecosystem alignment matter.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;KV-cache management has become one of the most active areas of innovation in distributed inference. Projects such as NIXL, LMCache, and Mooncake are competing and converging around different approaches to KV-cache transfer, reuse, and offload. For platform teams, this means cache architecture is now a first-class design decision: it affects latency, network requirements, failure handling, observability, hardware affinity, and the sizing of prefill and decode pools.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Speculative decoding is moving from research technique to practical optimization path. EAGLE 3.1, a collaboration between the EAGLE team, the vLLM team, and TorchSpec, landed in late May 2026 with materially better long-context acceptance length than EAGLE-3. It makes speculative decoding more relevant for long-document workloads that were previously borderline, while leaving the core engineering question intact: whether the acceptance rate, memory overhead, batching behavior, and operational complexity justify enabling it for a given deployment.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The high-value AI models we use for our examples throughout the article (based on our industry-specific &lt;a href=&quot;https://open-experiments.github.io/Telco-AIX/&quot;&gt;assessments&lt;/a&gt;) are Alibaba’s Qwen3.5 and Qwen3.6 families, in both dense (Qwen3.6-27B) and mixture-of-experts (Qwen3.5-35B-A3B and Qwen3.5-397B-A17B) variants. These models are useful anchors because they span a realistic enterprise serving spectrum: smaller dense models for general-purpose latency-sensitive workloads, mid-sized MoE models for cost-efficient throughput, and larger MoE models for high-capability workloads that stress routing, memory, and distributed execution.&lt;/p&gt;

&lt;h2 id=&quot;2-prefilldecode-two-phases-two-kpis&quot;&gt;&lt;strong&gt;2. Prefill/Decode: Two phases, Two KPIs&lt;/strong&gt;&lt;/h2&gt;

&lt;p&gt;LLM inference is two workloads pretending to be one.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Prefill&lt;/strong&gt; processes the input prompt and populates the KV cache. Because the prompt tokens can be processed in parallel, this phase is dominated by dense matrix operations and tends to be compute-bound. It is the primary driver of time to first token (TTFT), especially for long prompts and retrieval-augmented generation workloads.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Decode&lt;/strong&gt; generates the response token by token, repeatedly attending over the accumulated KV cache as each new token is produced. This phase tends to be memory-bandwidth-bound: it stresses HBM capacity and bandwidth more than raw compute, and it is the primary driver of time per output token (TPOT), also called inter-token latency.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/distributed-ai-inference-best-practices/image5.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Figure-2 Prefill vs Decode&lt;/p&gt;

&lt;p&gt;The two phases interfere whenever they share a GPU, because the batching strategy that helps one hurts the other. Aggressive batching accumulates enough prompt tokens to use GPU compute efficiently, but a large prefill batch can occupy the worker long enough to delay the decode steps queued behind it, raising TPOT and making streaming feel uneven. Prioritizing decode is the opposite failure: it protects inter-token latency but leaves prefill under-batched, wasting compute and raising the cost of long prompts. The business-level symptoms follow directly: a fleet tuned only for decode feels responsive in chat while burning capacity on prefill-heavy work, and a fleet tuned only for prefill posts healthy aggregate tokens-per-second while making interactive users wait too long for the first token. This prefill/decode split is a foundational lens for much of what follows, starting with disaggregation in Section 4.&lt;/p&gt;

&lt;p&gt;That leads to an architectural fork. The first path is to run prefill and decode together on the same homogeneous workers and let the scheduler arbitrate between them. This is the default shape for single-GPU vLLM deployments, and it remains the right answer for many small and medium-sized fleets because it is simpler to operate and avoids KV-cache transfer overhead. The second is to split them across heterogeneous pools and route each request through both. The threshold for that split is not a model size or a token count, but a measurable imbalance between the two phases, one large enough that the savings from right-sizing each pool exceed the cost of moving the KV cache between them.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Phase&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Bound by&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Scales with&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Right-sized hardware&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;KPI it drives&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Prefill&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Compute (FLOPs)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Prompt length&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;H100/H200, MI300X, B100/B200/B300&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;TTFT&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Decode&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Memory bandwidth&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Concurrent active sessions&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;A100, L40S, MI300, older H100&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;TPOT&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table-1 P/D Attributes&lt;/p&gt;

&lt;h2 id=&quot;3-the-5d-parallelism&quot;&gt;&lt;strong&gt;3. The 5D Parallelism&lt;/strong&gt;&lt;/h2&gt;

&lt;p&gt;Modern LLM serving spans a five-dimensional design space :&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Tensor parallelism (TP),&lt;/li&gt;
  &lt;li&gt;Pipeline parallelism (PP),&lt;/li&gt;
  &lt;li&gt;Expert parallelism (EP),&lt;/li&gt;
  &lt;li&gt;Data parallelism (DP), and&lt;/li&gt;
  &lt;li&gt;Context (sequence) parallelism (CP) which often splits into Prefill Context Parallel (PCP) and Decode Context Parallel (DCP).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;While Part-I introduced the first four, CP has become a first-class fifth dimension because Qwen3.5’s native 262k-token context makes it unavoidable for any serious long-context deployment.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/distributed-ai-inference-best-practices/image4.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Figure-3 5D Parallelism&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tensor parallelism (TP)&lt;/strong&gt; splits each weight matrix across GPUs and runs an all-reduce per layer. This is latency-sensitive within a node and communication-heavy across nodes, so NVLink and NVSwitch are effectively the budget that decides how far TP can scale before the all-reduce dominates. For dense models, the general best practice is to try the quantized version first, then use the minimum TP that fits the model with adequate KV headroom, then scale out with DP. The exception is a stringent single-request TTFT SLO, which can justify higher TP. For MoE models, where DP ranks coordinate on the expert layers, the TP/DP split differs because it determines how the experts are distributed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pipeline parallelism (PP)&lt;/strong&gt; splits the model by layer ranges and passes activations between stages. Because it exchanges activation tensors point-to-point at the stage boundaries rather than running an all-reduce every layer, it is far more tolerant of limited inter-node bandwidth than TP, and it can run over Ethernet-class fabrics where cross-node TP would stall. However that tolerance is relative, not absolute: the handoffs still sit on the critical path, the activation volume grows with batch size, sequence length, and hidden dimension, and any added link latency widens the pipeline bubbles that form when one stage waits on its predecessor. Micro-batching exists to hide those bubbles by keeping every stage fed. All of this makes PP useful when a model is too large to fit one node and the inter-node fabric isn’t fast enough for cross-node TP, but it is a last resort, not a default for large models: quantize first, then try EP+DP on one node, and reach for PP only when the weights genuinely don’t fit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Expert parallelism (EP)&lt;/strong&gt; distributes the experts of an MoE model across GPUs. Because each token is routed only to its assigned expert subset, traffic becomes asymmetric and bursty, and one or two popular experts can become tail-latency anchors for the whole fleet under skewed routing. Expert Parallel Load Balancing (EPLB) can replicate hot experts and rebalance routing dynamically, but it is not free: under stable routing patterns the rebalancing overhead may exceed the benefit, so enable EPLB when monitoring confirms persistent imbalance rather than as a blanket default. EP has two further costs.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Couples DP ranks that would otherwise be independent, because the expert layers synchronize on every forward pass even when some ranks have fewer requests.&lt;/li&gt;
  &lt;li&gt;Requires all-to-all traffic that scales with the number of active experts and the batch size.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Data parallelism (DP)&lt;/strong&gt; runs full model replicas behind a load balancer for linear throughput scaling with no model-sharding complexity. It is a common starting point when the model fits one node and the bottleneck is concurrent request volume; KServe’s ReplicaSet-based serving handles this case directly. DP alone does not set the ceiling, though: the parallelism configuration and routing strategy determine the real performance limit. Common pitfalls:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;stacking more DP replicas without checking for API-server bottlenecks,&lt;/li&gt;
  &lt;li&gt;ignoring KV-cache hit rate and MoE synchronization overhead, and&lt;/li&gt;
  &lt;li&gt;underestimating multi-node network costs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Context parallelism&lt;/strong&gt; &lt;strong&gt;(CP)&lt;/strong&gt; shards the sequence (context) dimension across GPUs, so that a single request’s context no longer has to fit, or be computed, on one device. Long context stresses prefill and decode in different ways, and the two phases carry different SLOs, so CP is applied separately to each as PCP and DCP.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Prefill context parallel (PCP)&lt;/strong&gt; targets TTFT. During prefill, attention cost grows with the square of the prompt length, so a long prompt can dominate time to first token. PCP partitions the sequence across devices and lets each one compute attention over its own chunk in parallel, which splits the prefill compute across GPUs and brings TTFT down. The cost is hardware: PCP expands the world size and runs in its own communication domain, so the device count becomes TP × PCP. Reach for it when prefill compute is what dominates TTFT and the GPU budget allows.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Decode context parallel (DCP)&lt;/strong&gt; targets throughput. During decode the bottleneck is KV-cache capacity: the more KV you can hold, the larger the batch, and the higher the throughput. DCP shards the KV cache along the sequence dimension across the GPUs already in the tensor-parallel group, reusing the TP communication domain, so it needs no extra devices. It is most valuable for models with few KV heads, such as Qwen3.5: under plain TP, when there are fewer KV heads than TP ranks, the KV cache is replicated across ranks and wastes HBM, and DCP removes that duplication and hands the freed memory back to the batch. Decode context parallel is supported in vLLM for both MLA and GQA models, and some attention backends can combine it with multi-token prediction (MTP) to accelerate decoding further.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Because DCP costs no additional GPUs and directly reduces KV duplication, it is the one most deployments should reach first. PCP is the heavier tool, added when a long prefill is the thing blowing the TTFT budget.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Model&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Hardware/Precision&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Suggested layout&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Notes&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Qwen3.6-27B (dense)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1×H100, FP8&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;TP=1&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;~27 GB weights; single-GPU baseline&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Qwen3.6-27B (dense)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;8×H100, FP8&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;DP=8&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;TP=1 per replica&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Qwen3.5-35B-A3B (MoE)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;8×H100, FP8&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;DP=8,  --enable-expert-parallel&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;EP=8; experts sharded&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Qwen3.5-35B-A3B (MoE)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;8×H100, BF16&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;TP=2, DP=4,  --enable-expert-parallel&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;~70 GB weights → TP=2 to fit; EP=8&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Qwen3.5-397B-A17B (MoE)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;16×H100 (2 nodes), FP8&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;PP=2, EP=8,  --enable-expert-parallel&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;~397 GB weights; layers split across the two nodes, experts split within each&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Any Qwen3.5 ≥128k decode&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;+ DCP (on top of above)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;--decode-context-parallel-size 2&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Shards KV on existing TP GPUs; no new devices&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Any Qwen3.5 ≥128k prefill&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;+ PCP (on top of above)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;--prefill-context-parallel-size 2&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Adds GPUs (TP × PCP)&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table-2 P/D AI Model vs Hardware vs Parallelism Options&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; vLLM computes EP = TP × DP per pipeline stage, so EP= in the table is for convenience. The optimal configuration of different parallelism combinations depends on the model architecture and hardware. Expert Parallelism can be latency-optimal for models like Qwen 3 with limited Key-Value heads, whereas Data Parallelism maximizes throughput but may introduce latency issues due to dispatch bubbles during the prefill and decode stages.&lt;/p&gt;

&lt;h2 id=&quot;4-pd-disaggregation-as-a-deployment-pattern&quot;&gt;&lt;strong&gt;4. P/D Disaggregation as a Deployment Pattern&lt;/strong&gt;&lt;/h2&gt;

&lt;p&gt;Part-I described disaggregation as a feature of llm-d, but in practice it is a deployment topology (the most consequential one we cover here), and we need to reason about it as such rather than check it off as a capability.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/distributed-ai-inference-best-practices/image6.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Figure-4 Prefill/Decode&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to disaggregate.&lt;/strong&gt; The decision rule is neither “always” nor “for big models,” but determined from measurable observations within the system. Profile a baseline single-pool deployment and measure the ratio of prefill GPU-seconds to decode GPU-seconds on your real traffic, then compare it to the ratio of decode-optimized to prefill-optimized GPU cost in your environment. If your traffic is prefill-heavy while you are paying for decode-class hardware (because decode dominates wall-clock), or vice versa, the gap between those two ratios is the upside available from disaggregation. The decision tends to pay off for long-prompt RAG with short answers (prefill-heavy), for high-concurrency chat with short prompts and long answers (decode-heavy), and for any fleet large enough that the $/Mtoken reduction justifies the operational complexity. In our benchmarks that reduction runs 25–40% on chat- and RAG-shaped traffic, consistent with published disaggregation results: &lt;a href=&quot;https://arxiv.org/abs/2311.18677&quot;&gt;Splitwise&lt;/a&gt; reports about 20% lower cost at 1.4× throughput, and &lt;a href=&quot;https://arxiv.org/abs/2401.09670&quot;&gt;DistServe&lt;/a&gt; up to 7.4× higher goodput. It tends not to pay off for single-node deployments where the network hop between prefill and decode workers would exceed the savings, nor for any fleet small enough that two pools of one are worse than one pool of two.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sizing the two pools.&lt;/strong&gt; Prefill workers scale with the arrival rate of new prompts and with prompt-length distribution, while decode workers scale with concurrent active sessions, average token output sizing and target TPOT, and the two scale independently. A useful first cut for a chat workload with mean prompt 800 tokens and mean output 200 tokens at 5,000 concurrent sessions on Qwen3.5-35B-A3B works out to roughly one H100 of prefill capacity per ~30 requests/second of arrival rate, and roughly one decode GPU (L40S-class) per ~150 concurrent sessions, in our lab measurements. These numbers move with model and quantization, but the ratio (typically 1:3 to 1:5 prefill to decode workers for chat) is broadly stable across the workloads we have benchmarked.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;KV-transfer connectors and the data path.&lt;/strong&gt; Once the pools are split, the KV cache produced by prefill must reach decode workers, and vLLM exposes a KVConnector interface with three production-relevant implementations.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Connector&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Best for&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Transport&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Notes&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;NixlConnector&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Single-cluster, RDMA/NVLink available&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;NVIDIA NIXL over UCX&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Default for high-performance PD; metadata server is a startup SPOF&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;LMCacheConnector&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Cross-instance cache sharing, HBM→DRAM→NVMe tiering&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;NIXL under the hood, plus offload backends&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Adds tiered KV cache + shared prefix index (&lt;a href=&quot;https://arxiv.org/abs/2510.09665&quot;&gt;LMCache, arXiv:2510.09665&lt;/a&gt;)&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;MooncakeConnector&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Cluster-scale shared cache pools&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;RDMA-native&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Best when you want a separate KV-cache cluster that many vLLM instances pull from&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;MooncakeStoreConnector&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Tiered cache offloading through use of a distributed master store&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Cache offloading&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Offload tier behind MooncakeConnector; KV lands in a distributed master store rather than peer HBM&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table-3 KV-Cache Connectors&lt;/p&gt;

&lt;p&gt;Treat the KV-transfer fabric the way you would treat any other production data path: measure end-to-end latency including queue time, alert on tail latency rather than mean, and verify RDMA driver health on every node, because NIXL’s asynchronous send/receive is the right primitive for production only if prefill workers are never made to block on decode-side acknowledgement.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The disaggregated KV cache pool.&lt;/strong&gt; We find the most useful framing is to stop thinking of the cluster’s KV cache as per-worker memory plus a transfer protocol, and start treating it as a cluster-wide resource with its own scheduling concerns. &lt;a href=&quot;https://arxiv.org/abs/2510.09665&quot;&gt;LMCache&lt;/a&gt; makes this explicit by tiering across HBM, DRAM, and NVMe and exposing a global prefix index, so that when two requests share a prefix (a system prompt, a few-shot prefix, the first thousand tokens of a contract), they share KV blocks no matter which instance generated them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The llm-d scheduler.&lt;/strong&gt; Cache-aware routing is what turns disaggregation from a feature into a working pattern, because instead of round-robin across decode workers, llm-d routes a request to the worker that already has the warmest KV state for the request’s prefix. &lt;a href=&quot;https://llm-d.ai/blog/llm-d-v0.5-sustaining-performance-at-scale&quot;&gt;Published llm-d benchmarks&lt;/a&gt; report up to 57× faster TTFT and 2× throughput against round-robin routing under high prefix reuse (8 pods / 16×H100). Our internal measurements are more conservative, and illustrative rather than guaranteed: a roughly 25% improvement on defaults, 2–3× tokens-per-second-per-GPU when paired with prefix-cache-hit routing, and 3–5× cost-per-token reduction on chat-shaped workloads where prefix reuse is high. Numbers in any given production deployment will be lower than these lab-style figures, though the direction is reliable across every workload we have measured.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hybrid GPU-CPU prefill.&lt;/strong&gt; A forward-looking pattern is emerging on Grace Hopper and Vera Rubin superchips, where the CPU side of the superchip handles parts of the prefill (notably embedding lookup and some attention prep) while the GPU handles the matmul-heavy portions. It is not yet a first-line recommendation for production, but it is worth designing the deployment with the prefill pool as a separately scheduled component, so that the worker type can change as the hardware matures without re-architecting.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Failure modes that bite in production.&lt;/strong&gt; The NIXL metadata server is a single point of failure on startup, so run two behind a TCP load balancer and verify failover before the first canary. Decode workers that fall behind the KV transfer become tail-latency anchors for the whole fleet, which is why admission control at the gateway is more useful than retrying after the fact. And canary rollouts for disaggregated fleets should change one pool at a time, with rollback gates on both TTFT and TPOT, so that a regression in either KPI is caught before it spreads.&lt;/p&gt;

&lt;h2 id=&quot;5-kv-cache-tiering-sharing-squeezing&quot;&gt;&lt;strong&gt;5. KV Cache: Tiering, Sharing, Squeezing&lt;/strong&gt;&lt;/h2&gt;

&lt;p&gt;&lt;a href=&quot;https://arxiv.org/abs/2309.06180&quot;&gt;PagedAttention&lt;/a&gt; solved the fragmentation problem inside a single GPU, but the next set of problems lives across GPUs and across the cluster, and they need different tools.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/distributed-ai-inference-best-practices/image8.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Figure-5 KV-Cache&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tiered hierarchy.&lt;/strong&gt; Section 4 introduced LMCache’s HBM→DRAM→NVMe tiering as a cluster-wide resource; the question here is when to turn it on. Most enterprise workloads have a long tail of cold prefixes that fit in DRAM or NVMe but not in HBM, and the decision rule is simple: if your prefix-cache hit rate would be substantially higher with a 10× larger cache than you can afford in HBM, then tiering pays for itself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;KV reuse vs prefix sharing.&lt;/strong&gt; These two are often conflated, but they are different concerns with different configuration knobs. Prefix sharing means that two requests starting with the same tokens share the cache, while KV reuse means that the same request’s KV is retained across turns of a multi-turn session. Multi-tenant chat platforms benefit from both, because shared system prompts give one and conversation history gives the other. Prefix sharing is therefore a routing concern (send the new request to the worker that has the warm prefix), while reuse is a session-affinity concern that keeps the same session pinned to the same decode worker.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quantization.&lt;/strong&gt; &lt;a href=&quot;https://vllm.ai/blog/2026-04-22-fp8-kvcache&quot;&gt;FP8 KV cache&lt;/a&gt; halves the memory footprint with a measurable but usually acceptable quality cost on most enterprise tasks, while FP4 KV is more aggressive and currently best deployed only on workloads where you can afford an evaluation pass against your own data. Red Hat’s &lt;a href=&quot;https://github.com/vllm-project/llm-compressor&quot;&gt;LLM Compressor&lt;/a&gt; produces quantized variants of the Qwen models and validates them against your own eval set rather than a generic benchmark.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Decode kernels.&lt;/strong&gt; vLLM’s decode path is fast in 2026 not because of one optimization but because of a family of them, with &lt;a href=&quot;https://github.com/deepseek-ai/FlashMLA&quot;&gt;FlashMLA&lt;/a&gt; (DeepSeek), &lt;a href=&quot;https://hazyresearch.stanford.edu/blog/2025-03-04-thundermla&quot;&gt;ThunderMLA&lt;/a&gt; (Stanford), and PyTorch’s FlexAttention decode path all contributing. Platform teams rarely tune these kernels directly, but knowing which one your vLLM build is using helps when investigating an unexpected decode regression after a version upgrade. At fleet scale the harder problem is provenance and consistency: every prefill, decode, and draft-model replica must load identical, pinned kernel binaries, which is why a production runtime ships them build-from-source and SBOM-covered in the image rather than pulling them from a public registry at first request. We cover that kernel supply-chain trade-off, and the GPU Kernel Manager (GKM) bridge for heterogeneous fleets, in &lt;a href=&quot;https://developers.redhat.com/articles/2026/05/20/what-gpu-kernels-mean-your-distributed-inference&quot;&gt;What GPU kernels mean for your distributed inference&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PagedAttention vs Radix-Attention.&lt;/strong&gt; &lt;a href=&quot;https://arxiv.org/abs/2312.07104&quot;&gt;SGLang’s RadixAttention&lt;/a&gt; takes a different architectural bet by organizing the cache as a prefix tree and letting the structure of conversation guide eviction, whereas PagedAttention treats the cache like virtual memory pages, and reasonable engineers disagree on the trade-off: Radix tends to win on workloads with deep, branching prefix trees (agent workflows, structured prompting), while PagedAttention tends to win on workloads with high variance in sequence length and irregular prefix patterns. vLLM has stayed with PagedAttention because the engine is general-purpose and the page-table abstraction generalizes more cleanly to disaggregation, where the unit of transfer is naturally a page.&lt;/p&gt;

&lt;h2 id=&quot;6-speculative-decoding&quot;&gt;&lt;strong&gt;6. Speculative Decoding&lt;/strong&gt;&lt;/h2&gt;

&lt;p&gt;Speculative decoding generates several candidate tokens at once with a cheaper draft path, then verifies them with the target model, so that when the drafts are accepted the model emits several tokens per forward pass. The families of technique that vLLM supports today are worth distinguishing, because their cost profiles are very different.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/distributed-ai-inference-best-practices/image9.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Figure-6 Speculative Decoding&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Two-model, draft-based (EAGLE family).&lt;/strong&gt; A small draft model proposes tokens that the target then verifies. &lt;a href=&quot;https://arxiv.org/abs/2503.01840&quot;&gt;EAGLE-3&lt;/a&gt; has been reported to reach up to ~6× speedups on dense models, while &lt;a href=&quot;https://vllm.ai/blog/2026-05-26-eagle-3-1&quot;&gt;EAGLE 3.1&lt;/a&gt; (May 2026) extends that gain materially into long-context regimes with up to 2× longer acceptance length than EAGLE-3, making it a strong starting choice for dense Qwen3.6 workloads.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Single-model self-speculative.&lt;/strong&gt; The model drafts and verifies itself, typically by using a subset of its own layers as the draft, which gives a lower setup cost (there is no separate draft model to train or host) at the price of a more variable acceptance rate that depends on the workload.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Multi-token decoding (&lt;a href=&quot;https://arxiv.org/abs/2401.10774&quot;&gt;Medusa&lt;/a&gt; heads).&lt;/strong&gt; Adding multiple output heads to the target model lets it predict several tokens per pass, and although the engineering cost is roughly half that of EAGLE-3 to deploy, the acceptance rates are correspondingly more modest, at around 0.55–0.70.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Interleaved decode and constrained-decoding interactions.&lt;/strong&gt; Less a technique than a scheduling choice, modern vLLM interleaves spec-decoded sessions with normal decode steps to keep batches full. There is one important caveat: when the workload uses constrained decoding (JSON mode, tool calls with grammars), the acceptance rate of speculative decoding often collapses because the constraint mask invalidates speculative tokens, so measure before assuming spec decoding helps in tool-calling traffic.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Multi-token prediction (MTP).&lt;/strong&gt; Some models, notably &lt;a href=&quot;https://arxiv.org/abs/2412.19437&quot;&gt;DeepSeek-V3&lt;/a&gt;, ship with MTP heads trained jointly with the main model, and acceptance rates exceed 80% out of the box. This makes MTP the natural choice for any model that ships MTP-trained, but it cannot be bolted on to models that don’t without re-training.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Workload&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Anchor model&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Recommended&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Why&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Short conversational, dense&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Qwen3.6-27B&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;EAGLE 3.1&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Best accept-rate/cost ratio, current generation&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Long-context (&amp;gt;64k)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Qwen3.5 dense or MoE&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;EAGLE 3.1&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Long-context acceptance is the headline improvement&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;MoE flagship&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Qwen3.5-397B-A17B&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Native MTP if trained; else EAGLE-3&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Active-param shape favors MTP-style heads&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Code completion&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Qwen3.6 dense&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;n-gram / prompt-lookup&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Repetitive code structure makes hit rate high; no draft to host&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Strict memory budget&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;any&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;n-gram&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;No draft model to host on decode GPU&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Heavy tool-calling traffic&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;any&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Disable or test&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Constrained decoding interaction is severe&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table-4 Speculative Decoding Options vs Workloads&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The draft model occupies decode-worker HBM and adds verification overhead, so on already-saturated, large-batch decode fleets the win from spec decoding shrinks, because the batch is already amortizing the kernel launch. At the extreme it can become a net loss, so the clearest wins are at low-to-moderate concurrency, where each forward pass is underutilized.&lt;/p&gt;

&lt;h2 id=&quot;7-deployment-blueprints-by-traffic-shape&quot;&gt;&lt;strong&gt;7. Deployment Blueprints by Traffic Shape&lt;/strong&gt;&lt;/h2&gt;

&lt;p&gt;The technique sections above are the tools; this section shows how they assemble into deployments. Each blueprint follows the same structure (workload signature, KPI priority, topology, the vLLM and llm-d mechanisms it leans on, and a note on cost shape), and should be read as a starting point rather than a prescription.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/distributed-ai-inference-best-practices/image1.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Figure-7 Deployment Blueprints by Traffic&lt;/p&gt;

&lt;h3 id=&quot;71-high-concurrency-conversational-chat-and-copilots&quot;&gt;&lt;strong&gt;7.1 High-concurrency conversational chat and copilots&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Signature.&lt;/strong&gt; Thousands of concurrent users, prompts in the low hundreds of tokens, outputs of similar length, high prefix reuse from system prompts and few-shot exemplars, and TPOT-dominated SLOs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Topology.&lt;/strong&gt; The deployment is PD-disaggregated, with a large prefill pool on cost-optimized GPUs such as H100s and more HBM-capable hardware such as H200/B200-class GPUs as the decode pool especially for long context workloads, where cache-aware routing via the llm-d scheduler pins each session to the decode worker holding its warm KV. EAGLE 3.1 runs on the decode workers, and LMCache offloads from HBM to pinned DRAM (and to NVMe for the longest-tail conversations) so that the decode pool’s effective cache becomes several times larger than its HBM. On the prefill side, chunked prefill (stall-free scheduling) prevents a long prompt from blocking the short ones queued behind it. At the front door, prompt compression on system prompts, debouncing and request coalescing for chatty UIs, and output token caps protect the fleet from runaway generation. The cost shape is decode-dominated, so right-sizing the decode pool is where most of the $/Mtoken savings live.&lt;/p&gt;

&lt;h3 id=&quot;72-long-context-rag-and-code-analysis&quot;&gt;&lt;strong&gt;7.2 Long-context RAG and code analysis&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Signature.&lt;/strong&gt; Lower concurrency than chat, prompts of 32k–256k tokens, outputs in the hundreds, and TTFT-dominated SLOs, because users are waiting for the first useful token of an answer over a long document.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Topology.&lt;/strong&gt; TP within the node and PCP across GPUs for the prefill phase, so the O(n²) attention work is split rather than left to blow HBM on one device. The decode pool stays small; this workload is bound more by prompt length than by concurrency.&lt;/p&gt;

&lt;p&gt;Two things buy back TTFT here, and chunked prefill is not one of them. PCP amortizes the prefill compute across devices; prefix caching skips it outright when the document has been seen before. Chunked prefill, on by default in vLLM V1, earns its keep elsewhere: it keeps one long prefill from starving the decode steps of every other request sharing the GPU. On the long prompt itself it adds a little overhead, and prefix caching becomes the whole game: the warm prefix lives in a shared cache pool any decode worker can reach, so the second pass over a contract never re-prefills it.&lt;/p&gt;

&lt;p&gt;The cost shape is prefill-dominated, so the biggest lever on $/Mtoken is prefix-cache hit rate: every avoided re-prefill of a long document is a direct saving.&lt;/p&gt;

&lt;h3 id=&quot;73-high-throughput-batch-summarization-labeling-embeddings-pipelines&quot;&gt;&lt;strong&gt;7.3 High-throughput batch (summarization, labeling, embeddings pipelines)&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Signature.&lt;/strong&gt; Latency-tolerant, throughput- and dollar-bound, typically running overnight on backlogs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Topology.&lt;/strong&gt; The pattern is DP-heavy, with as many replicas of the model as fit the budget and each replica running continuous batching maxed out. PD disaggregation tends to buy nothing here, because the wall-clock per request does not matter, so the transfer hop is not worth it. Continuous scheduling, which differs from continuous batching by letting the engine reorder requests to keep batches full even when arrival is bursty, is the right policy. Dynamic quantization can be tuned more aggressively here than in interactive workloads, because a slightly lower output quality is cheaper than a slightly larger GPU footprint. Scale-to-zero between waves via KServe’s KEDA integration keeps the cluster economical, and the workload is spot/preemptible-friendly because retries on batch jobs are cheap.&lt;/p&gt;

&lt;p&gt;The cost shape is pure $/token: with latency irrelevant, every lever (max batching, aggressive quantization, scale-to-zero, and spot capacity) goes toward driving dollars per million tokens down.&lt;/p&gt;

&lt;h3 id=&quot;74-distributed-ai-grid-model-as-a-service&quot;&gt;&lt;strong&gt;7.4 Distributed AI-grid: Model-as-a-Service&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Signature.&lt;/strong&gt; The most architecturally rich blueprint we cover. A platform team serves multiple tenants and multiple models (Qwen3.6-27B for one product, Qwen3.5-35B-A3B for another, Qwen3.5-397B-A17B reserved for the hard queries) across heterogeneous SLOs and bursty traffic, and the deployment becomes a grid rather than a collection of single-purpose pools.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Topology.&lt;/strong&gt; Each model class lives behind its own llm-d InferencePool, with KServe LLMInferenceService resources tracked in GitOps, and &lt;a href=&quot;https://developers.redhat.com/articles/2026/05/25/route-external-and-local-llms-models-as-a-service&quot;&gt;AI Gateway implementations such as Envoy AI Gateway&lt;/a&gt; sit at the front door handling tenant authentication, rate limiting, and request classification. A shared LMCache fabric across pools lets system-prompt prefixes be reused across instances of the same model, while KEDA autoscaling runs per request-class rather than per pool, so that a “gold” tenant’s bursty traffic can scale its pool aggressively while a “bronze” tenant on the same model sees slower scale-up.&lt;/p&gt;

&lt;p&gt;Three mechanisms make this work, and all three were absent or thin in Part-I.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Model cascading&lt;/strong&gt; routes easy queries to the smallest model that can handle them and escalates to the next size only when needed. A cascade of Qwen3.6-27B → Qwen3.5-35B-A3B → Qwen3.5-397B-A17B, with escalation triggered by an inexpensive confidence signal or by explicit tenant policy, &lt;a href=&quot;https://arxiv.org/abs/2603.04445&quot;&gt;can cut cluster cost by 40–60%&lt;/a&gt; on workloads where the easy fraction dominates. The cascade itself lives in the gateway rather than inside any single InferencePool, so the routing decision can change without redeploying the model.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;SLO-aware admission control&lt;/strong&gt; is operationally healthier than queuing requests that will miss their SLO, because the queue itself becomes a tail-latency anchor under load. Gold-tier requests get admitted ahead of silver, silver ahead of bronze, and requests likely to exceed token output limits or hit timeouts are rejected at the gateway with a clear error code rather than allowed to chew through GPU-seconds and then time out anyway.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Adaptive resource scheduling and hotspot prevention&lt;/strong&gt; is the layer where llm-d’s scheduler does the routing and cluster-level policy does the resource allocation. Adaptive parallelism (TP↔PP↔hybrid switching as traffic patterns shift), dynamic precision (FP8↔FP4 under thermal or load pressure), continuous prewarming of CUDA graphs via traffic-pattern time-series prediction, and MoE expert rebalancing for hot experts are all early-engineering or research today. An AI-grid design that holds up under those changes treats per-tenant SLO classes and telemetry-driven configuration as first-class concerns from the start, so that the static knobs can be swapped for adaptive ones without re-architecting.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The cost shape of this blueprint is the most non-linear of the six. Done well, it can let a platform team serve many tenants at high utilization; done poorly, it becomes a fragmented zoo of single-tenant pools each running at low utilization, and the difference between those two outcomes is almost entirely a matter of cascading, admission control, and shared cache design.&lt;/p&gt;

&lt;h3 id=&quot;75-hybrid-sovereign---cloud-burst&quot;&gt;&lt;strong&gt;7.5 Hybrid Sovereign -&amp;gt; Cloud-Burst&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Signature.&lt;/strong&gt; Regulated baseline workload that must run on-premises for data residency, sovereignty, or contractual reasons, with peaks that exceed on-prem capacity and need to burst to a public cloud region without breaking the regulatory posture.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Topology.&lt;/strong&gt; Red Hat OpenShift AI on Red Hat OpenShift provides a single control plane across both environments, with model artifacts in a shared registry and configuration drift managed by GitOps so that the on-prem and burst clusters stay aligned. llm-d’s Inference Gateway fronts both clusters, and congestion-aware, topology-aware scheduling routes individual requests to whichever cluster currently has capacity and the warm prefix. The burst cluster runs cold most of the time. What makes its capacity usable when the spike arrives, rather than tens of seconds later, is fast, deterministic warm-up: pre-pulled pinned images and kernels and a minimal standing footprint, with predictive prewarming via time-series traffic forecasting layered on as that capability matures (Section 7.4). The aim is for the CUDA graphs and KV pools to be warm before traffic shifts, not after.&lt;/p&gt;

&lt;p&gt;The cost shape is a capex-anchored on-prem baseline plus variable cloud opex paid only during bursts. The economics hold only if the burst cluster stays genuinely cold between peaks, so the lever is a fast warm-up, not standing capacity.&lt;/p&gt;

&lt;h3 id=&quot;76-edge-inference-on-a-workstation-class-gpu&quot;&gt;&lt;strong&gt;7.6 Edge inference on a workstation-class GPU&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Signature.&lt;/strong&gt; A single physical site such as a factory floor, retail location, clinic, branch office, vehicle, or regional data closet, where data residency, latency, or connectivity rule out cloud inference for the baseline workload, and backhaul to a regional cluster (when it exists at all) is expensive or intermittent. Concurrent users are typically in the 1–50 range. Both TTFT and TPOT matter to a human operator, but request volume is low enough that throughput is bounded by a single accelerator rather than by anything in the orchestration layer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Topology.&lt;/strong&gt; The pattern is a single vLLM instance per accelerator with no llm-d disaggregation, because the prefill-decode transfer hop costs more than it saves below roughly 100 concurrent sessions. KServe handles the serving lifecycle; the OpenShift footprint follows the site: Single Node OpenShift (SNO) for single-node sites, and multi-node OpenShift for regional installations with a handful of cards. GitOps pins the model artifact across the fleet so the same Qwen3.6-27B build runs in every store, clinic, or branch without per-site drift.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The model fits on 96 GB.&lt;/strong&gt; The hybrid architecture of Qwen3.6-27B is unusually edge-friendly because three of every four attention sublayers are Gated DeltaNet (a linear-attention variant whose state does not grow with context length), so only 16 of the 64 layers maintain a per-token KV cache, with 4 KV heads at head_dim 256. Per-token KV is therefore roughly 64 KB in FP16 or 32 KB in FP8, several times smaller than a pure-transformer model of comparable parameter count, and after 27 GB of FP8 weights and ~4 GB of working memory the remaining ~65 GB of VRAM holds roughly 2 million tokens of cumulative KV at FP8 KV precision. That budget supports any of: ~50 concurrent sessions at 32k context each, ~15 sessions at 128k each, or ~4 sessions at 512k each (the last with FP4 KV). For larger models the envelope tightens quickly: Qwen3.5-35B-A3B at FP8 leaves around 55 GB for KV (workable for moderate concurrency), while Qwen3.5-397B-A17B will not fit a single card at any production precision because the full expert table must be resident.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hardware is substrate, not strategy.&lt;/strong&gt; The accelerators at this tier (workstation cards such as the NVIDIA RTX PRO 6000 (96GB) Blackwell, or deskside superchip systems such as DGX Spark and the &lt;a href=&quot;https://www.supermicro.com/en/accelerators/nvidia/super-ai-station&quot;&gt;Supermicro Super AI Station&lt;/a&gt;) differ mainly in memory bandwidth and capacity, but the software approach is the same across all of them: quantize to fit one accelerator, serve a single vLLM instance, and scale with replicas (DP) before sharding. The one constraint they share is the absence of NVLink-class fabric between boxes, so any multi-box scale-out is a capacity play built on pipeline or expert sharding, not a tensor-parallel throughput play (Section 3). Decode is memory-bandwidth-bound, so the deployment is capex-dominated, and there is no clean $/MToken story until a site outgrows ~100 concurrent sessions and starts to look like a regional cluster.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Multi-tier pattern.&lt;/strong&gt; For edge sites that occasionally see queries too hard for the local model, route them over backhaul to a regional cloud cluster running the Section-7.4 AI-grid, with model cascading at the local gateway keeping the fast path on-device and escalating only when a confidence signal or explicit policy demands the flagship model. p99 latency on local queries stays predictable while the heavier model remains available for the long tail, and the backhaul cost stays bounded because escalations are a fraction of total traffic.&lt;/p&gt;

&lt;h2 id=&quot;8-inference-troubleshooting-recipes&quot;&gt;&lt;strong&gt;8. Inference Troubleshooting Recipes&lt;/strong&gt;&lt;/h2&gt;

&lt;p&gt;When TTFT or TPOT regress, the first move is not to change anything but to look at the metrics the fleet already emits, because most regressions point at themselves once you know which dial to read. The &lt;a href=&quot;https://docs.vllm.ai/en/latest/serving/metrics.html&quot;&gt;vLLM Prometheus endpoint&lt;/a&gt; exposes per-request and per-batch metrics (queue time, scheduling delay, prefill duration, decode duration, KV-cache utilization), and the llm-d scheduler emits routing decisions and per-worker queue depths, so the two together answer the first question every time: is the regression at the gateway (routing), in the prefill phase, in the decode phase, or in the KV transfer between them?&lt;/p&gt;

&lt;p&gt;For deeper investigation, &lt;a href=&quot;https://developer.nvidia.com/nsight-systems&quot;&gt;Nsight Systems&lt;/a&gt; captures end-to-end traces and is the right tool when a regression appears to span multiple processes or involves CPU↔GPU coordination, while &lt;a href=&quot;https://developer.nvidia.com/nsight-compute&quot;&gt;Nsight Compute&lt;/a&gt; drills into a specific kernel when a single operation is the bottleneck.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/distributed-ai-inference-best-practices/image7.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Figure-8 Troubleshooting Recipes&lt;/p&gt;

&lt;p&gt;The recipes that recur most often in production inference work are these:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Sudden TPOT increase with KV utilization climbing usually means KV-cache fragmentation or over-eager preemption; tune the preemption threshold and verify chunked prefill is enabled if long prompts are starving the short decodes queued behind them.&lt;/li&gt;
  &lt;li&gt;MoE traffic with degraded throughput and one or two experts at much higher queue depth than the others is hot-expert imbalance; enable EPLB, and if the imbalance persists consider expert replication.&lt;/li&gt;
  &lt;li&gt;A disaggregated fleet with TTFT fine but TPOT spikes correlated with prompt arrival means NIXL queue depth is rising and decode workers are blocked waiting for KV transfer; verify RDMA driver health and check that the NIXL metadata server isn’t single-pointed.&lt;/li&gt;
  &lt;li&gt;Speculative decoding enabled and throughput unchanged or worse usually means draft-head acceptance rate has decayed; inspect per-request acceptance metrics, because the model or workload may have drifted away from what the draft was trained for.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Roll out changes via canary, gate on both TTFT and TPOT, and never change two scheduler parameters at once, because debugging which one mattered is harder than the original problem.&lt;/p&gt;

&lt;h2 id=&quot;9-where-to-start-where-to-grow&quot;&gt;&lt;strong&gt;9. Where to start, where to grow&lt;/strong&gt;&lt;/h2&gt;

&lt;p&gt;A practical sequence for a team standing up vLLM and llm-d on OpenShift AI runs roughly like this.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Begin on a single node with a single vLLM instance, pick the model and the parallelism layout from the Section-3 table, and baseline TTFT and TPOT on production traffic for at least a week, because the numbers from that baseline are what every later decision will be measured against.&lt;/li&gt;
  &lt;li&gt;Add llm-d when the single-node fleet stops scaling linearly: the signal is that a second replica behind a load balancer produces less than 1.8× the throughput of one, which means round-robin routing is leaving cache hits on the table.&lt;/li&gt;
  &lt;li&gt;Disaggregate only when the measured prefill-to-decode imbalance is large enough to pay for the transfer hop, because disaggregation done prematurely costs more than it saves; layer speculative decoding once concurrency has stabilized, since at low concurrency the wins are largest and at saturated high concurrency they shrink.&lt;/li&gt;
  &lt;li&gt;Reach for the AI-grid blueprint when the platform serves more than one model class to more than one tenant, because the mechanisms (model cascading, SLO classes, shared cache fabric, GitOps-managed pools) earn their complexity at the multi-tenant scale and waste effort below it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/distributed-ai-inference-best-practices/image3.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Figure-9 Where to start, where to grow.&lt;/p&gt;

&lt;p&gt;The through-line connects every step. Part I chose the runtime; Part II turns that choice into a deployment, adding one mechanism at a time and only when a measurement shows the simpler setup has run out, then re-baselining after each change so the next decision rests on data rather than expectation. Start simple, measure honestly, and identify optimization starting from the workload rather than let the technique catalog decide what comes next.&lt;/p&gt;

&lt;p&gt;Each rung of that ladder maps to a layer of the Red Hat stack you can deploy rather than assemble by hand. Red Hat OpenShift provides the Kubernetes substrate; Red Hat OpenShift AI adds the model registry, pipelines, monitoring, and governance; Red Hat AI Inference Server packages a hardened vLLM with pinned kernels and LLM Compressor for quantization; KServe manages the serving lifecycle; and llm-d, now a CNCF Sandbox project, supplies the distributed inference layer for cache-aware routing, disaggregation, and KV-cache-aware scheduling. The blueprints in Section 7 are assembled from these building blocks, and the sequence above is how you adopt them without paying for complexity before the workload calls for it.&lt;/p&gt;

&lt;p&gt;To learn more, take a look at these resources:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://developers.redhat.com/articles/2026/06/22/designing-distributed-ai-inference-core-concepts-and-scaling-dimensions&quot;&gt;Designing Distributed AI Inference: Core Concepts and Scaling Dimensions&lt;/a&gt; (Part 1 on Red Hat Developer covering prefill/decode phases and 5D parallelism)&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://developers.redhat.com/articles/2026/06/24/optimizing-distributed-ai-inference-advanced-deployment-patterns&quot;&gt;Optimizing Distributed AI Inference: Advanced Deployment Patterns&lt;/a&gt; (Part 2 on Red Hat Developer covering P/D disaggregation, KV cache, and speculative decoding)&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://developers.redhat.com/articles/2025/10/30/why-vllm-best-choice-ai-inference-today&quot;&gt;Why vLLM is the best choice for AI inference today&lt;/a&gt; (Part-I of this series)&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/llm-d/llm-d&quot;&gt;llm-d&lt;/a&gt;, the Kubernetes-native distributed inference framework (now a CNCF Sandbox project)&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://developers.redhat.com/articles/2026/04/21/kserve-llm-d-optimized-gen-ai-inference&quot;&gt;Combining KServe and llm-d for optimized gen-AI inference&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://developers.redhat.com/articles/2026/05/20/what-gpu-kernels-mean-your-distributed-inference&quot;&gt;What GPU kernels mean for your distributed inference&lt;/a&gt; (the companion piece on kernels and supply-chain discipline)&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.redhat.com/en/blog/red-hat-ai-inference-server-technical-deep-dive&quot;&gt;Red Hat AI Inference Server Technical Deep Dive&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/vllm-project/llm-compressor&quot;&gt;LLM Compressor&lt;/a&gt; for producing and validating quantized models&lt;/li&gt;
  &lt;li&gt;vLLM &lt;a href=&quot;https://docs.vllm.ai/en/latest/serving/context_parallel_deployment/&quot;&gt;context-parallel deployment&lt;/a&gt; and &lt;a href=&quot;https://docs.vllm.ai/en/stable/features/disagg_prefill/&quot;&gt;disaggregated prefilling&lt;/a&gt; documentation&lt;/li&gt;
&lt;/ul&gt;

</description>
        <pubDate>Fri, 05 Jun 2026 00:00:00 +0000</pubDate>
        <link>https://terrytangyuan.github.io/2026/06/05/distributed-ai-inference-best-practices-gotchas/</link>
        <guid isPermaLink="true">https://terrytangyuan.github.io/2026/06/05/distributed-ai-inference-best-practices-gotchas/</guid>
        
        <category>Open Source</category>
        
        <category>Kubernetes</category>
        
        <category>Artificial Intelligence</category>
        
        <category>Machine Learning</category>
        
        <category>KServe</category>
        
        
      </item>
    
      <item>
        <title>Production-Grade LLM Inference at Scale with KServe, llm-d, and vLLM</title>
        <description>&lt;p&gt;&lt;strong&gt;Authors&lt;/strong&gt;:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Yuan Tang: Project Lead, KServe; Senior Principal Software Engineer, Red Hat&lt;/li&gt;
  &lt;li&gt;Scott Cabrinha: Staff Site Reliability Engineer, Tesla&lt;/li&gt;
  &lt;li&gt;Robert Shaw: Director of Engineering, Red Hat&lt;/li&gt;
  &lt;li&gt;Sai Krishna: Staff Software Engineer, Tesla&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Originally posted on &lt;a href=&quot;https://llm-d.ai/blog/production-grade-llm-inference-at-scale-kserve-llm-d-vllm&quot;&gt;llm-d Blog&lt;/a&gt; and on &lt;a href=&quot;https://kserve.github.io/website/blog/production-grade-llm-inference-kserve-llm-d-vllm&quot;&gt;KServe Blog&lt;/a&gt;&lt;/em&gt;.&lt;/p&gt;

&lt;h2 id=&quot;the-problem-with-simple-llm-deployments&quot;&gt;The Problem with “Simple” LLM Deployments&lt;/h2&gt;

&lt;p&gt;Deploying large language models is becoming common, but the real difficulty lies in managing hundreds of LLMs efficiently at scale. Our initial approach—a straightforward vLLM deployment wrapped in Kubernetes StatefulSet—created three major operational challenges:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Storage Performance Issues:&lt;/strong&gt; Large models like Llama 3 exceed hundreds of gigabytes. Network storage solutions proved impractical due to sluggish performance with massive safetensors files.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Infrastructure Constraints:&lt;/strong&gt; Local LVM persistent volumes resolved speed issues but introduced rigid node-to-pod affinity requirements. Hardware failures necessitated manual intervention to delete Persistent Volume Claims and reschedule pods—an unacceptable operational burden.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Inefficient Load Balancing:&lt;/strong&gt; Simple round-robin strategies fail to leverage the KV-cache on GPUs, a critical vLLM feature that maximizes throughput. Given GPU cost sensitivity, optimizing efficiency is non-negotiable.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;what-we-needed-from-an-operator&quot;&gt;What We Needed from an Operator&lt;/h2&gt;

&lt;p&gt;The team identified specific requirements for a Kubernetes Operator designed for AI/ML workloads:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Full specification-level customization beyond typical Custom Resource capabilities&lt;/li&gt;
  &lt;li&gt;Flexible deployment patterns rather than rigid prefill/decode architectures&lt;/li&gt;
  &lt;li&gt;Integration with standard Kubernetes APIs rather than novel abstraction layers&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;the-winning-combination-kserve--llm-d--vllm&quot;&gt;The Winning Combination: KServe + llm-d + vLLM&lt;/h2&gt;

&lt;p&gt;The solution combined three technologies: &lt;strong&gt;llm-d&lt;/strong&gt; (powered by KServe and its Inference Gateway Extension), &lt;strong&gt;Envoy&lt;/strong&gt;, and &lt;strong&gt;Envoy AI Gateway&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/kserve-architecture.webp&quot; alt=&quot;KServe Architecture&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key advantages delivered:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Deep Customization:&lt;/strong&gt; LLMInferenceService and LLMInferenceConfig objects expose standard Kubernetes APIs, enabling precise specification overrides for specialized hardware and rapid flag implementation.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Intelligent Routing:&lt;/strong&gt; Integration of Envoy, Envoy AI Gateway, and Gateway API Inference Extension enables “prefix-cache aware routing.” This directs requests to appropriate vLLM instances, maximizing KV-cache utilization and GPU efficiency.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Performance Results:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Testing with Llama 3.1 70B on 4 MI300X AMD GPUs (tensor-parallel-size=4, gpu-memory-utilization=0.90, max-model-len=65536) showed:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;3x improvement in output tokens/second&lt;/strong&gt;&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;2x reduction in time to first token (TTFT)&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These improvements occurred after enabling prefix-cache aware routing.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/inblog/performance-improvements.png&quot; alt=&quot;Performance Improvements&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;community-contributions-and-collaboration&quot;&gt;Community Contributions and Collaboration&lt;/h2&gt;

&lt;p&gt;Production deployment surfaced issues fixed upstream in KServe, benefiting the broader community:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;New feature requests:&lt;/strong&gt; Issues &lt;a href=&quot;https://github.com/kserve/kserve/issues/4901&quot;&gt;#4901&lt;/a&gt;, &lt;a href=&quot;https://github.com/kserve/kserve/issues/4900&quot;&gt;#4900&lt;/a&gt;, &lt;a href=&quot;https://github.com/kserve/kserve/issues/4898&quot;&gt;#4898&lt;/a&gt;, &lt;a href=&quot;https://github.com/kserve/kserve/issues/4899&quot;&gt;#4899&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Made storageInitializer optional&lt;/strong&gt; (&lt;a href=&quot;https://github.com/kserve/kserve/pull/4970&quot;&gt;kserve#4970&lt;/a&gt;) — allowing RunAI Model Streamer as an alternative to default storage initialization&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Added support for latest Gateway API Inference Extension&lt;/strong&gt; (&lt;a href=&quot;https://github.com/kserve/kserve/pull/4886&quot;&gt;kserve#4886&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These contributions emerged directly from encountering production edge cases, with validation of KServe and llm-d at scale helping strengthen the platform for all Kubernetes LLM workloads.&lt;/p&gt;

&lt;h2 id=&quot;acknowledgement&quot;&gt;Acknowledgement&lt;/h2&gt;

&lt;p&gt;We’d like to thank the following community contributors from Red Hat and Tesla:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Red Hat:&lt;/strong&gt; Sergey Bekkerman, Nati Fridman, Killian Golds, Andres Llausas, Bartosz Majsak, Greg Pereira, Pierangelo Di Pilato, Ran Pollak, Vivek Karunai Kiri Ragavan, Robert Shaw, Yuan Tang&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tesla:&lt;/strong&gt; Scott Cabrinha, Sai Krishna&lt;/p&gt;

&lt;h2 id=&quot;get-involved-with-llm-d&quot;&gt;Get Involved with llm-d&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Explore code at the &lt;a href=&quot;https://github.com/llm-d&quot;&gt;GitHub organization&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Join the Slack community for direct maintainer contact&lt;/li&gt;
  &lt;li&gt;Attend open community calls (Wednesdays 12:30pm ET)&lt;/li&gt;
  &lt;li&gt;Follow project updates on Twitter/X, Bluesky, and LinkedIn&lt;/li&gt;
  &lt;li&gt;Watch demos on the &lt;a href=&quot;https://www.youtube.com/@llm-d-project&quot;&gt;llm-d YouTube channel&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Review documentation on the &lt;a href=&quot;https://llm-d.ai/docs/community&quot;&gt;community page&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Tue, 21 Apr 2026 00:00:00 +0000</pubDate>
        <link>https://terrytangyuan.github.io/2026/04/21/production-grade-llm-inference-at-scale-kserve-llm-d-vllm/</link>
        <guid isPermaLink="true">https://terrytangyuan.github.io/2026/04/21/production-grade-llm-inference-at-scale-kserve-llm-d-vllm/</guid>
        
        <category>Open Source</category>
        
        <category>Kubernetes</category>
        
        <category>Artificial Intelligence</category>
        
        <category>Machine Learning</category>
        
        <category>KServe</category>
        
        
      </item>
    
      <item>
        <title>Best of Both Worlds: Cloud-Native AI Inference at Scale using KServe and llm-d</title>
        <description>&lt;p&gt;&lt;strong&gt;Authors&lt;/strong&gt;:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Yuan Tang: Project Lead, KServe; Senior Principal Software Engineer&lt;/li&gt;
  &lt;li&gt;Ran Pollak: Manager, AI Catalyst at Red Hat&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Originally posted on &lt;a href=&quot;https://kserve.github.io/website/blog/cloud-native-ai-inference-kserve-llm-d&quot;&gt;KServe Blog&lt;/a&gt;. Also available on &lt;a href=&quot;https://developers.redhat.com/articles/2026/04/21/kserve-llm-d-optimized-gen-ai-inference&quot;&gt;Red Hat Developers&lt;/a&gt;&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Enterprises today seek to integrate generative AI (GenAI) capabilities into their applications. However, scaling large AI models introduces complexity: managing high-volume traffic from large language models (LLMs), optimizing inference performance, maintaining predictable latency, and controlling infrastructure costs.&lt;/p&gt;

&lt;p&gt;Platform engineering leaders require more than just model deployment capabilities. They need a robust, Kubernetes-native infrastructure that supports:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Efficient GPU utilization&lt;/li&gt;
  &lt;li&gt;Intelligent request routing&lt;/li&gt;
  &lt;li&gt;Distributed inference patterns&lt;/li&gt;
  &lt;li&gt;Cost-aware autoscaling&lt;/li&gt;
  &lt;li&gt;Production-grade governance&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This article demonstrates how two open-source solutions, KServe and llm-d, can be combined to address these challenges.&lt;/p&gt;

&lt;p&gt;We explore the role of each solution, illustrate their integration architecture, and provide practical guidance for AI platform teams, with deeper focus on KServe’s LLMInferenceService, available since KServe v0.16.&lt;/p&gt;

&lt;h2 id=&quot;kserve-simplified-deployment-of-ai-models-on-kubernetes&quot;&gt;KServe: Simplified Deployment of AI Models on Kubernetes&lt;/h2&gt;

&lt;p&gt;KServe is a Kubernetes-based model serving platform that simplifies deploying and managing ML models, including LLMs, at scale.&lt;/p&gt;

&lt;p&gt;For platform engineers, KServe acts as the model serving control plane: the layer responsible for lifecycle, scaling, and operational governance.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://kserve.github.io/website/assets/images/kserve_generative_inference-21648e7df404ea6f57b9d3c83e8e0ca4.png&quot; alt=&quot;KServe Generative Inference Architecture&quot; /&gt;&lt;/p&gt;

&lt;h3 id=&quot;inference-as-a-service&quot;&gt;Inference as a Service&lt;/h3&gt;

&lt;p&gt;InferenceService serves as KServe’s core abstraction for model deployment, encapsulating the full serving lifecycle, including:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Automatic deployment creation and reconciliation&lt;/li&gt;
  &lt;li&gt;Request-based autoscaling with scale-to-zero and autoscaling based on custom metrics&lt;/li&gt;
  &lt;li&gt;Revision management and canary rollouts&lt;/li&gt;
  &lt;li&gt;Endpoint exposure and traffic routing&lt;/li&gt;
  &lt;li&gt;Runtime abstraction across serving backends for both predictive and generative AI&lt;/li&gt;
  &lt;li&gt;Optional pre-processing/post-processing, inference pipelines, and ensembles&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;ML engineers provide trained models. Platform engineers retain operational control without writing custom deployment code.&lt;/p&gt;

&lt;h3 id=&quot;llminferenceservice-in-kserve&quot;&gt;LLMInferenceService in KServe&lt;/h3&gt;

&lt;p&gt;KServe v0.16 introduces stronger generative AI capabilities, including LLMInferenceService, designed specifically for large language model workloads.&lt;/p&gt;

&lt;p&gt;Unlike traditional stateless predictors, LLM workloads require:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Long-running streaming responses&lt;/li&gt;
  &lt;li&gt;GPU-heavy memory footprints&lt;/li&gt;
  &lt;li&gt;Prefix KV-cache management&lt;/li&gt;
  &lt;li&gt;High-concurrency token streaming&lt;/li&gt;
  &lt;li&gt;OpenAI-compatible APIs&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;LLMInferenceService shares common foundations with InferenceService but introduces additional capabilities tailored for large language models, including:&lt;/p&gt;

&lt;h3 id=&quot;unlocking-generative-ai-serving-with-llminferenceservice-from-pod-level-speed-to-cluster-wide-intelligence&quot;&gt;Unlocking Generative AI Serving with LLMInferenceService: From Pod-Level Speed to Cluster-Wide Intelligence&lt;/h3&gt;

&lt;p&gt;Imagine you want to bring the power of generative AI directly into your applications, but without rewriting your entire stack. It offers OpenAI-compatible endpoints like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/v1/chat/completions&lt;/code&gt;, complete with streaming token responses and multi-turn support. With prompt templating built in, developers can integrate seamlessly with existing tools—whether it’s the OpenAI SDKs, LangChain, LlamaIndex, Llama Stack, RAG frameworks, or even enterprise GenAI gateways.&lt;/p&gt;

&lt;p&gt;Under the hood, KServe connects to LLM-optimized runtimes such as vLLM, Hugging Face TGI, or other GPU-native backends. These engines bring advanced capabilities like continuous batching, memory-efficient paged attention, and KV-cache reuse, delivering high throughput per GPU.&lt;/p&gt;

&lt;p&gt;Yet, while these runtime-level optimizations make each pod lightning fast, true cluster-wide efficiency needs more. That’s exactly the role of llm-d: adding an extra layer of intelligence that orchestrates resources and maximizes performance across the entire deployment.&lt;/p&gt;

&lt;h3 id=&quot;distributed--multi-node-model-support&quot;&gt;Distributed &amp;amp; Multi-Node Model Support&lt;/h3&gt;

&lt;p&gt;LLMInferenceService supports advanced parallelism strategies implemented by runtimes, including tensor parallelism, pipeline parallelism, and multi-GPU sharding.&lt;/p&gt;

&lt;p&gt;This enables hosting 70B+ parameter models, partitioning models across nodes, and serving models larger than single-GPU memory.&lt;/p&gt;

&lt;p&gt;KServe orchestrates the deployment topology, while the runtime manages execution parallelism.&lt;/p&gt;

&lt;h3 id=&quot;advanced-autoscaling--networking-including-scale-to-zero&quot;&gt;Advanced Autoscaling &amp;amp; Networking (Including Scale-to-Zero)&lt;/h3&gt;

&lt;p&gt;KServe integrates deeply with Kubernetes to support request- and concurrency-based autoscaling via Knative, GPU-backed scaling, and scale-to-zero for cost control.&lt;/p&gt;

&lt;p&gt;It also integrates with the Kubernetes Gateway API for TLS termination, traffic splitting, and advanced routing.&lt;/p&gt;

&lt;p&gt;This makes it suitable for development environments, internal copilots, and large-scale production workloads.&lt;/p&gt;

&lt;h3 id=&quot;kubernetes-gateway-api-integration&quot;&gt;Kubernetes Gateway API Integration&lt;/h3&gt;

&lt;p&gt;KServe integrates with Kubernetes Gateway API for:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Enterprise-grade routing&lt;/li&gt;
  &lt;li&gt;TLS termination&lt;/li&gt;
  &lt;li&gt;Traffic splitting&lt;/li&gt;
  &lt;li&gt;Multi-model routing&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This enables integration with modern Kubernetes networking stacks.&lt;/p&gt;

&lt;h3 id=&quot;where-kserve-alone-is-not-enough&quot;&gt;Where KServe Alone Is Not Enough&lt;/h3&gt;

&lt;p&gt;Even with LLMInferenceService and optimized runtimes, KServe does not inherently:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Route requests based on KV-cache locality across replicas&lt;/li&gt;
  &lt;li&gt;Separate prefill and decode cluster-wide&lt;/li&gt;
  &lt;li&gt;Perform SLA-aware routing decisions&lt;/li&gt;
  &lt;li&gt;Optimize GPU utilization across multiple pods&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To address these, we introduce llm-d.&lt;/p&gt;

&lt;h2 id=&quot;llm-d-distributed-intelligence-for-llm-inference&quot;&gt;llm-d: Distributed Intelligence for LLM Inference&lt;/h2&gt;

&lt;p&gt;llm-d is a Kubernetes-native distributed inference framework designed to enhance performance and efficiency of LLM workloads.&lt;/p&gt;

&lt;p&gt;If KServe is the control plane for models, llm-d is the distributed intelligence scheduling layer.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://github.com/llm-d/llm-d/raw/main/docs/assets/images/llm-d-arch.svg&quot; alt=&quot;llm-d Architecture&quot; /&gt;&lt;/p&gt;

&lt;h3 id=&quot;kv-cache-aware-scheduling-and-disaggregated-inference-with-llm-d&quot;&gt;KV-Cache Aware Scheduling and Disaggregated Inference with llm-d&lt;/h3&gt;

&lt;p&gt;As LLM deployments mature, scaling is no longer just about adding GPUs. It’s about using them intelligently. Modern runtimes such as vLLM introduced prefix (KV) caching to reduce redundant computation, but without smart scheduling, much of that benefit is lost.&lt;/p&gt;

&lt;p&gt;This is where llm-d changes the game.&lt;/p&gt;

&lt;h3 id=&quot;disaggregated-inference-prefill--decode-separation&quot;&gt;Disaggregated Inference (Prefill / Decode Separation)&lt;/h3&gt;

&lt;p&gt;LLM inference consists of two distinct phases: prefill and decode. The prefill phase is compute-heavy, processing the full prompt and building the model’s attention context. The decode phase is latency-sensitive, generating tokens step by step where responsiveness directly impacts user experience.&lt;/p&gt;

&lt;p&gt;llm-d separates these phases across different GPU groups, assigning compute-optimized resources to prefill and latency-optimized resources to decode. With intelligent scheduling between them, workloads are aligned to the right hardware profile.&lt;/p&gt;

&lt;p&gt;This phase-aware architecture increases GPU utilization, reduces tail latency, and lowers cost per token by eliminating resource contention between fundamentally different workloads.&lt;/p&gt;

&lt;h3 id=&quot;intelligent-inference-scheduler&quot;&gt;Intelligent Inference Scheduler&lt;/h3&gt;

&lt;p&gt;llm-d’s inference scheduler evaluates the following metrics:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;GPU utilization&lt;/li&gt;
  &lt;li&gt;Queue depth&lt;/li&gt;
  &lt;li&gt;Cache residency&lt;/li&gt;
  &lt;li&gt;SLA constraints&lt;/li&gt;
  &lt;li&gt;Load distribution&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It enhances load balancing with an intelligent scheduler to decrease serving latency and increase throughput with prefix-cache aware routing, utilization-based load balancing, fairness and prioritization for multi-tenant serving, and predicted latency balancing.&lt;/p&gt;

&lt;h2 id=&quot;kserve-llminferenceservice-and-llm-d&quot;&gt;KServe LLMInferenceService and llm-d&lt;/h2&gt;

&lt;h3 id=&quot;responsibility-separation&quot;&gt;Responsibility Separation&lt;/h3&gt;

&lt;p&gt;This layered design ensures composability and specialization, providing a complete, production-ready solution for generative AI. KServe acts as the control plane and LLMInferenceService delivers the generative API abstraction, while llm-d provides the cluster-wide optimization.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Layer&lt;/th&gt;
      &lt;th&gt;Responsibility&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;KServe&lt;/td&gt;
      &lt;td&gt;Model lifecycle, scaling, governance&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;LLMInferenceService&lt;/td&gt;
      &lt;td&gt;Generative API abstraction&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;vLLM&lt;/td&gt;
      &lt;td&gt;Efficient execution inside runtime&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;llm-d&lt;/td&gt;
      &lt;td&gt;Cross-runtime routing &amp;amp; cache awareness&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Kubernetes&lt;/td&gt;
      &lt;td&gt;Resource orchestration&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Together, KServe and llm-d enable a production-ready, Kubernetes-native inference platform that balances scalability, performance, and cost efficiency, providing the best of both worlds for cloud-native AI inference at scale.&lt;/p&gt;

&lt;h2 id=&quot;cost-efficiency-comparison-naive-vs-optimized&quot;&gt;Cost Efficiency Comparison: Naive vs Optimized&lt;/h2&gt;

&lt;p&gt;Serving LLMs at scale is no longer just a model problem. It is a distributed systems problem where naive load balancing leads to significant inefficiencies and wasted resources — lost cache locality, GPU imbalance, redundant prefill processing, high tail latency, and overprovisioned GPUs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Naive Problems:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Cache locality loss&lt;/li&gt;
  &lt;li&gt;GPU imbalance&lt;/li&gt;
  &lt;li&gt;Redundant prefill processing&lt;/li&gt;
  &lt;li&gt;High tail latency&lt;/li&gt;
  &lt;li&gt;Overprovisioned GPUs&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;optimized-architecture-with-kserve--llm-d&quot;&gt;Optimized Architecture with KServe + llm-d&lt;/h3&gt;

&lt;p&gt;The combined KServe and llm-d solution introduces distributed intelligence to solve the problems of naive architectures, delivering superior performance, scalability, and cost control. This optimized architecture is pluggable and extensible to work well with many AI and cloud-native technologies.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://kserve.github.io/website/img/kserve-layer.png&quot; alt=&quot;KServe Layered Architecture&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Benefits:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Cache reuse preserved&lt;/li&gt;
  &lt;li&gt;Balanced GPU utilization&lt;/li&gt;
  &lt;li&gt;Reduced recomputation&lt;/li&gt;
  &lt;li&gt;Lower cost per token&lt;/li&gt;
  &lt;li&gt;Controlled autoscaling via LLMInferenceService&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;benchmark-results-why-cluster-level-intelligence-matters&quot;&gt;Benchmark Results: Why Cluster-Level Intelligence Matters&lt;/h2&gt;

&lt;p&gt;By integrating llm-d’s cache-aware routing, prefill and decode disaggregation, and SLA-based scheduling with KServe’s enterprise-grade generative serving and autoscaling, the system achieves cluster-wide GPU optimization.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Note: The following results are based on benchmarks published by the llm-d project&lt;/em&gt;&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Optimization Area&lt;/th&gt;
      &lt;th&gt;Naive Architecture (Round Robin LB)&lt;/th&gt;
      &lt;th&gt;Optimized (KServe + llm-d)&lt;/th&gt;
      &lt;th&gt;Source&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Cache Locality&lt;/td&gt;
      &lt;td&gt;Requests routed randomly → KV cache frequently missed&lt;/td&gt;
      &lt;td&gt;Cache-aware routing preserves prefix locality&lt;/td&gt;
      &lt;td&gt;&lt;a href=&quot;https://llm-d.ai/blog/kvcache-wins-you-can-see&quot;&gt;llm-d blog&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Time to First Token (P90)&lt;/td&gt;
      &lt;td&gt;Baseline latency under cache-blind scheduling&lt;/td&gt;
      &lt;td&gt;Up to ~57× faster P90 TTFT in benchmark&lt;/td&gt;
      &lt;td&gt;&lt;a href=&quot;https://llm-d.ai/blog/kvcache-wins-you-can-see&quot;&gt;llm-d blog&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Token Throughput&lt;/td&gt;
      &lt;td&gt;~4,400 tokens/sec (baseline test cluster)&lt;/td&gt;
      &lt;td&gt;~8,730 tokens/sec (~2× improvement)&lt;/td&gt;
      &lt;td&gt;&lt;a href=&quot;https://llm-d.ai/blog/kvcache-wins-you-can-see&quot;&gt;llm-d blog&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Throughput at Scale&lt;/td&gt;
      &lt;td&gt;Degrades under multi-tenant load&lt;/td&gt;
      &lt;td&gt;Sustained 4.5k–11k tokens/sec&lt;/td&gt;
      &lt;td&gt;&lt;a href=&quot;https://llm-d.ai/blog/llm-d-v0.5-sustaining-performance-at-scale&quot;&gt;llm-d blog&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Tail Latency (P95/P99)&lt;/td&gt;
      &lt;td&gt;Higher tail latency due to stragglers &amp;amp; imbalance&lt;/td&gt;
      &lt;td&gt;~50% tail latency reduction (reported tests)&lt;/td&gt;
      &lt;td&gt;&lt;a href=&quot;https://developers.redhat.com/articles/2025/05/20/llm-d-kubernetes-native-distributed-inferencing&quot;&gt;Red Hat Developers&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;GPU Utilization&lt;/td&gt;
      &lt;td&gt;Uneven utilization, idle GPUs possible&lt;/td&gt;
      &lt;td&gt;Improved effective utilization via routing intelligence&lt;/td&gt;
      &lt;td&gt;&lt;a href=&quot;https://llm-d.ai/docs/guide/Installation/inference-scheduling&quot;&gt;llm-d docs&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Autoscaling Control&lt;/td&gt;
      &lt;td&gt;Scale reacts to load only&lt;/td&gt;
      &lt;td&gt;Works with KServe autoscaling + routing intelligence&lt;/td&gt;
      &lt;td&gt;&lt;a href=&quot;https://kserve.github.io/website/docs/model-serving/predictive-inference/autoscaling/kpa-autoscaler&quot;&gt;KServe docs&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Modern GenAI platforms require cache locality awareness, phase-aware scheduling, distributed intelligence, and composable Kubernetes-native design. This combination ensures a production-ready system that meets the demands of large-scale production workloads.&lt;/p&gt;

&lt;h2 id=&quot;next-steps&quot;&gt;Next Steps&lt;/h2&gt;

&lt;p&gt;Explore detailed project documentation:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://kserve.github.io/website/&quot;&gt;KServe&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://llm-d.ai/&quot;&gt;llm-d&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Engage with community resources and Slack channels to stay updated and contribute to ongoing developments:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://kserve.github.io/website/community/get_involved/&quot;&gt;KServe community&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://llm-d.ai/community/&quot;&gt;llm-d community&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Thu, 05 Mar 2026 00:00:00 +0000</pubDate>
        <link>https://terrytangyuan.github.io/2026/03/05/cloud-native-ai-inference-kserve-llm-d/</link>
        <guid isPermaLink="true">https://terrytangyuan.github.io/2026/03/05/cloud-native-ai-inference-kserve-llm-d/</guid>
        
        <category>Open Source</category>
        
        <category>Kubernetes</category>
        
        <category>Artificial Intelligence</category>
        
        <category>Machine Learning</category>
        
        <category>KServe</category>
        
        
      </item>
    
      <item>
        <title>Kubernetes Serving Working Group Has Succeeded and Will Be Disbanded</title>
        <description>&lt;p&gt;&lt;em&gt;Originally posted on &lt;a href=&quot;https://groups.google.com/a/kubernetes.io/g/dev/c/nDjMph1146A/m/z-T7POJQBQAJ&quot;&gt;Kubernetes dev mailing list&lt;/a&gt; and on &lt;a href=&quot;https://www.cncf.io/blog/2026/02/26/kubernetes-wg-serving-concludes-following-successful-advancement-of-ai-inference-support/&quot;&gt;CNCF Blog&lt;/a&gt;&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;We’d like to announce that Kubernetes WG Serving has succeeded and will be disbanded! Thank you everyone who have participated and contributed to the discussions and initiatives!&lt;/p&gt;

&lt;p&gt;The &lt;a href=&quot;https://github.com/kubernetes/community/tree/1cd8d239089e777d0e2f70d665e7db153f040a80/wg-serving&quot;&gt;Kubernetes Working Group Serving&lt;/a&gt; was created to support development of AI Inference stack on Kubernetes. The goal of this working group is to ensure that the Kubernetes is an orchestration platform of choice for Inference workload. This goal was accomplished and we are disbanding the working group.&lt;/p&gt;

&lt;p&gt;The WG Serving formed workstreams to collect requirements from various model servers, hardware providers, and inference vendors. This work resulted in a common understanding of inference workload specifics and trends and laid the foundation for improvements across many SIGs in Kubernetes.&lt;/p&gt;

&lt;p&gt;The working group oversaw several key evolutions to the role of load balancing and workloads - the inference gateway was adopted as a request scheduler, multiple groups have worked to standardize AI gateway functionality, and early inference gateway participants went on to seed agent networking in SIG Network. The use cases and problem statements informed the design of &lt;a href=&quot;https://github.com/vllm-project/aibrix&quot;&gt;AIBrix&lt;/a&gt;. And many of the unresolved problems in distributed inference - especially benchmarking and recommended best practices - have been picked up by the &lt;a href=&quot;https://github.com/llm-d/llm-d&quot;&gt;llm-d&lt;/a&gt; project which hybridizes the infrastructure and ML ecosystems and is better able to steer model server co-evolution.&lt;/p&gt;

&lt;p&gt;In particular, we believe llm-d and AIBrix represent more appropriate forums for driving requirements to Kubernetes SIGs than this working group. llm-d’s goal is to provide well-lit paths for achieving state-of-the-art inference and aims to provide recommendations that can compose into existing inference user platforms.  AIBrix provides a complete platform solution for cost efficient LLM inference.&lt;/p&gt;

&lt;p&gt;WG Serving helped with &lt;a href=&quot;https://github.com/cncf/k8s-ai-conformance&quot;&gt;Kubernetes AI Conformance&lt;/a&gt; requirements and llm-d leveraging multiple components from the profile and making recommendations to end users consistent with Kubernetes direction (Kueue, inference gateway, LWS, DRA, etc.). Widely adopted patterns and solutions are expected to go into the conformance program.&lt;/p&gt;

&lt;p&gt;All the efforts currently running inside the WG Serving can be migrated to other WGs or to SIGs directly, requirements for them will be discussed in SIGs and llm-d community. Specifically:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Autoscaling&lt;/strong&gt; questions - mostly related to fast bootstrap - will be either SIG Node or SIG Scheduling.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Multi-host, multi-node&lt;/strong&gt; work can continue as part of the SIG Apps (e.g. for LWS project) and DRA requirements discussed in WG Device Management.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Orchestration&lt;/strong&gt; will be covered by SIG Scheduling and SIG Node&lt;/li&gt;
  &lt;li&gt;Requirements for &lt;strong&gt;DRA&lt;/strong&gt; will be discussed in WG Device Management.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;a href=&quot;https://github.com/kubernetes-sigs/gateway-api-inference-extension&quot;&gt;Gateway API Inference Extension&lt;/a&gt; project is already sponsored by SIG Network and it will stay this way.&lt;/p&gt;

&lt;p&gt;The &lt;a href=&quot;https://github.com/kubernetes-sigs/wg-serving/tree/main/serving-catalog&quot;&gt;Serving Catalog&lt;/a&gt; work can be moved to the &lt;a href=&quot;https://github.com/kubernetes-sigs/inference-perf&quot;&gt;Inference Perf&lt;/a&gt; project. Originally it was designed for a larger scope, but was used mostly for Inference perf since.&lt;/p&gt;

&lt;p&gt;The Inference Perf project is sponsored by SIG Scalability and no change of ownership is needed.&lt;/p&gt;

&lt;p&gt;Cheers,&lt;br /&gt;
Yuan Tang On behalf of Kubernetes WG Serving Co-Chairs&lt;/p&gt;
</description>
        <pubDate>Fri, 13 Feb 2026 00:00:00 +0000</pubDate>
        <link>https://terrytangyuan.github.io/2026/02/13/k8s-wg-serving-has-succeeded-and-will-be-disbanded/</link>
        <guid isPermaLink="true">https://terrytangyuan.github.io/2026/02/13/k8s-wg-serving-has-succeeded-and-will-be-disbanded/</guid>
        
        <category>Open Source</category>
        
        <category>Kubernetes</category>
        
        <category>Artificial Intelligence</category>
        
        <category>Machine Learning</category>
        
        
      </item>
    
  </channel>
</rss>
