Route local coding agents between Nemotron and DeepSeek with Switchyard

Tim set up NVIDIA Switchyard Stage routing so his coding agent mostly used Nemotron, keeping ~88% of decisions on the fast model.

Used for
Side business
Skill needed
Requires coding
Shown in video
Partial demo
Summary based on
Transcript

I Made My Local AI Pick Its Own Model

Published Oct 5, 202614:2946,773 views626 likes

Key moments

  • 1:54Removing --enforce-eager lifts Nemotron to ~198 tokens/s
  • 5:43Telemetry reveals 32K context fallbacks
  • 7:04128K context cuts DeepSeek traffic to 3 of 45
  • 10:39Run 5 completes with ~88% routed to Nemotron

What they made

Run 5 completed the unit-test task with 334 tests across 20 files and all checks passing; ~88% of routing decisions stayed on Nemotron, though his anti-gaming detector wrongly failed the run.

1,173 Nemotron vs 165 DeepSeek routing decisions (~88%)

10:39

How they did it

  1. Human1:54

    Removed --enforce-eager from the vLLM config after Nemotron ran at only 44 tokens/s, reaching ~198 tokens/s.

    Stated in video · vLLM
  2. Human4:07

    Configured Switchyard with Nemotron as efficient model and DeepSeek as capable model using Stage routing, confidence 0.5, recent turn window 3, classifier off.

    Stated in video · NVIDIA Switchyard
  3. Human5:43

    Diagnosed timeouts via telemetry: Nemotron's 32K context caused 16 of 22 DeepSeek requests to be context fallbacks, then raised context to 128K.

    Stated in video · NVIDIA Switchyard
  4. Human8:30

    Built an outer agent harness that launches a coding agent, watches the run, collects data, and can intervene, on a test-stripped copy of LittleLink Server.

    Stated in video
  5. AI10:39

    Coding agent via GitHub Copilot with local models wrote 334 tests across 20 files covering every source file in Run 5.

    Stated in video · GitHub Copilot
  6. AI11:14

    Switchyard Stage routing sent 1,173 decisions to Nemotron and 165 to DeepSeek with zero context or backend fallbacks.

    Stated in video · NVIDIA Switchyard

What you can reuse

  • Check context window size before blaming routing: 32K caused silent fallbacks to the capable model.
  • Stage routing kept ~88% of decisions on the fast local model while still completing the coding task.
  • Verify benchmark detectors; a buggy anti-gaming check failed an otherwise successful run.

Trade-offs

  • Run 6 stalled and was counted as a failure; coverage dropped from ~74% to ~50%.
  • Run 5 was marked failed by a buggy anti-gaming detector despite the agent not gaming tests.
  • Once on DeepSeek there is no further model to escalate to.
  • The outer agent harness is described as crude and not fully detailed.

AI-generated case summaries can contain mistakes. Report an error

Related cases