AI Tools Developer Tools

NVIDIA NeMo Switchyard: Routing AI Agent Workloads Across Models

NVIDIA NeMo Switchyard routes agent tasks across models by capability and cost, aiming to cut spend without losing accuracy.

Abstract diagram of AI workload routing across multiple model endpoints, representing NVIDIA NeMo Switchyard

Agent workflows rarely run on one model well. A single agentic task might need fast classification for an early step, deep reasoning for the middle, and a lightweight model for routine follow-up. Sending every request to the largest available model drives up cost and latency; sending everything to a smaller model can hurt accuracy on the steps that actually need reasoning. NVIDIA describes this tradeoff in a technical blog post introducing NVIDIA NeMo Switchyard, a framework built to route agent workloads across multiple models based on their strengths, weaknesses, and cost profiles.

NVIDIA frames the problem as a system-of-models challenge rather than a single-model choice. Instead of picking one model for an entire application, NeMo Switchyard evaluates each request at runtime and sends it to whichever model in a configured pool best fits the task’s requirements, constraints, and policies.

Why One Model Rarely Fits Every Step

NVIDIA’s post points to benchmark data from Terminal-Bench Hard, run with the Terminus agent, to illustrate the point concretely. In that example, DeepSeek V4 posts the highest overall accuracy across task groups, but it is not the strongest performer everywhere. Kimi K2.6 does better on ML and RL-related task groups, and Qwen3.5 397B A17B performs better on math and science tasks. NVIDIA notes that DeepSeek V4 remains the better choice for the remaining six task groups in that test set. The same logic can apply at a finer grain too, down to individual tasks or specific phases within a single task.

Cost and completion time add another layer. NVIDIA’s data shows that model accuracy, total prompt tokens, and total output tokens vary meaningfully across models on the same benchmark, and that verbosity differences extend beyond raw token counts into how many tool calls a model tends to make. A router that only optimizes for accuracy without weighing these cost and latency profiles risks building an expensive agent even when a cheaper model would have handled most steps just as well.

What Signals a Router Actually Uses

NVIDIA describes three categories of signals that routing decisions draw on: model capabilities, model cost profile, and infrastructure-level signals that make handoffs between models reliable. Within capability and cost signals, the company outlines several concrete approaches:

  • Classifying the request itself, matching topic or estimated difficulty to a suitable model in the pool
  • Extracting features from the query using an embedding model or a custom feature crafter
  • Inspecting model-internal states such as logprobs, cascades, agentic traces, residual streams, or attention patterns
  • Reading system-level signals including pricing, latency, load, and agent-specific error rates

NVIDIA emphasizes that a router has to decide not just which signals to use but when and where to evaluate them. In a multi-turn agent task, routing might happen once per full request or freshly at every step. A single agent might draw from one shared model pool, or specialized sub-agents might each pull from their own dedicated pool. NVIDIA states that the right approach depends on the use case, deployment complexity, error tolerance, and latency or throughput constraints specific to each system.

Inside the NeMo Switchyard Architecture

The core of the system is switchyard-libsy, described by NVIDIA as a provider-agnostic SDK. It represents requests, defines which models are available to a given system, and manages the calls to whichever model gets selected. Each model target carries a semantic name, and a client behind that name maps it to the actual provider endpoint and model ID. NVIDIA highlights this separation as deliberate: routing logic stays independent of any specific provider, so a team can swap a model, move it to a different endpoint, or change providers entirely without rewriting the routing integration itself.

NeMo Switchyard can also carry state across an agent’s session when a policy calls for it, retaining earlier context such as tool results or a prior affinity decision so it informs later routing choices. Routes can stay stateless when that history isn’t necessary, giving developers flexibility rather than forcing every route into the same pattern.

NVIDIA also describes a reference server component that mimics an LLM gateway, accepting requests formatted for OpenAI, Anthropic, and Responses APIs, translating them into an internal NeMo Switchyard format, and returning responses in the expected shape. According to NVIDIA, this server logs the selected model, the rationale behind that selection, token usage, latency, and call outcomes, giving teams a way to inspect how a given route behaved after the fact.

Tuning-Free and Tunable Routing Options

NVIDIA states that NeMo Switchyard supports both tuning-free routing algorithms, which work without workload-specific training data, and tunable routers that developers can adapt using their own customization data. Teams can also bring entirely custom routing algorithms into the framework rather than relying solely on NVIDIA’s built-in options. The source material describes tuning-free routers as a starting category but the full technical breakdown of how each algorithm operates was not included in the material available for this article.

Early Signals From LangChain and Cognition

NVIDIA references benchmarking and real-world testing involving LangChain and Cognition as evidence that routing with NeMo Switchyard can reduce costs while maintaining accuracy in production agent workflows. No specific cost-reduction percentages, benchmark scores, or deployment timelines from those tests were included in the material reviewed for this article, so the practical scale of those gains remains something teams will need to evaluate against their own workloads rather than assume from a single vendor account.

What to Check Before Adopting a Routing Layer

Teams considering NeMo Switchyard for production agents have a few concrete things worth confirming directly against NVIDIA’s current documentation rather than assuming from this overview:

  • Which specific tuning-free and tunable routing algorithms ship by default, and what customization data a tunable router actually requires
  • How the semantic-name-to-endpoint mapping behaves when a provider changes pricing or deprecates a model mid-deployment
  • What latency overhead the routing layer itself introduces per request, separate from the latency of the selected model
  • Whether the logged decision rationale is detailed enough to support debugging or compliance review in a given industry

The underlying idea, that agent quality and cost both improve when different steps run on differently sized models instead of one model handling everything, is not unique to NVIDIA. What NeMo Switchyard adds, based on NVIDIA’s own description, is a provider-agnostic layer that keeps that routing decision separate from any single model vendor, which matters most to teams who expect their model choices to keep changing over the life of an application.

Sources