Skip to content

fix(router): [cherry-pick 1.7.0] pass plugin selectors to the transcription router (#18116) - #18318

Merged
nv-nmailhot merged 2 commits into
ai-dynamo:release/1.7.0from
glamr-agent:dyn-5474-transcription-router-selectors-207824262236
Nov 7, 2026
Merged

nv-nmailhot merged 2 commits into
ai-dynamo:release/1.7.0from
glamr-agent:dyn-5474-transcription-router-selectors-207824262236

Conversation

@glamr-agent

Copy link
Copy Markdown
Collaborator

Failure behavior

On 1.7.0-rc.1, the shipped Whisper launcher examples/backends/vllm/launch/agg_transcription.sh starts a vLLM transcription worker for openai/whisper-tiny. The worker starts, but the frontend never registers the model. /v1/models stays empty, and the frontend keeps retrying with:

Model materialization failed; scheduling retry ... error="RoundRobin routing needs instance selectors; pass PushRouterOptions::selectors"

The defect is in Dynamo's frontend. Since the router refactor, RoundRobin, Random, and LeastLoaded pick a worker through instance selectors. Every model type gets those selectors when the frontend builds its router, except transcription. So the transcription router fails to build under the default router mode, and the model never appears. This is a cherry-pick to release/1.7.0 of #18116 by @glamr-agent, which fixed the same defect on main.

Reproduction Without the fix With the fix Note
Exact failure on the reported setup Not run — Needs an H100 node running the 1.7.0-rc.1 image under Slurm; the coding run had one A100 in a plain container.
Exact failure on a similar setup ❌ Exact failure ✅ Passed The shipped Whisper launcher on one A100 with vLLM 0.32.0, under RoundRobin, Random, and LeastLoaded. Without the fix, /v1/models stayed empty for 300 s in every mode, with the selector error; with the fix, the model was listed within 41 s and the upload returned 200 with text.
Exact error in a test ❌ Exact error ✅ Passed The new unit test, run with the old router call put back, stopped at RoundRobin with the reported error. With the fix it passes under all three modes.

Proposed fix

The frontend now builds the transcription router with the same selector options as every other model type. Transcription models register under every router mode, and requests reach the worker the same way as for chat, audio, image, and video models. The change is the same as #18116 and was cherry-picked with -x.

Case Before After
Transcription worker, RoundRobin (default) Model never listed; selector error Model listed; upload returns 200
Transcription worker, Random or LeastLoaded Model never listed; selector error Model listed; upload returns 200
Chat, audio speech, image, or video workers Register normally Unchanged

The cherry-pick:requested label and the Releases field on the Linear issue are left for a maintainer to set.

Core change: about 6 lines (+4/−2). The logic is in 1 file:

  • about 6 lines in watcher.rs: Builds the transcription router with the plugin selector options, as the neighboring model types already do.

The rest of the +89/−2 diff is the new unit test.

Validation

This PR adds one unit test to lib/llm/src/discovery/watcher.rs. It runs without a GPU, against an in-process Dynamo runtime.

Behavior checked Checked by Without the fix With the fix
A transcription model gets its router and engine under RoundRobin, Random, and LeastLoaded. New unit test; also the reproduction above ❌ Exact error ✅ Passed

Refs DYN-5474.

@glamr-agent
glamr-agent requested a review from a team as a code owner November 6, 2026 12:22
@copy-pr-bot

copy-pr-bot Bot commented Nov 6, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@glamr-agent
glamr-agent temporarily deployed to external_collaborator November 6, 2026 12:22 — with GitHub Actions Inactive
@glamr-agent
glamr-agent temporarily deployed to external_collaborator November 6, 2026 12:22 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

👋 Hi glamr-agent! Thank you for contributing to ai-dynamo/dynamo.

Just a reminder: The NVIDIA Test Github Validation CI runs an essential subset of the testing framework to quickly catch errors.Your PR reviewers may elect to test the changes comprehensively before approving your changes.

🚀

@github-actions github-actions Bot added fix external-contribution Pull request is from an external contributor labels Nov 6, 2026
@glamr-agent

Copy link
Copy Markdown
Collaborator Author

factory: Initial validation snapshot.

Validation status: complete

Check Result Scope or reason
Checks the changed Rust crates with cargo check and Clippy. Passed (exit 0) Commit fdfdcf8b7d. Workspace cargo check and Clippy, cargo test -p dynamo-llm --lib -- text_transcriptions_register_under_selector_router_modes (1 passed), and the discovery::watcher:: tests (37 passed). With the old router call put back, the new test fails with RoundRobin routing needs instance selectors; pass PushRouterOptions::selectors.
Starts Dynamo with vLLM on one GPU and sends a real request. Passed (exit 0) One A100, vLLM 0.32.0, the shipped agg_transcription.sh with openai/whisper-tiny, under RoundRobin, Random, and LeastLoaded. Unpatched release/1.7.0 (9abd2ef0d9): /v1/models empty for 300 s, upload HTTP 404. With the change (fdfdcf8b7d): model listed within 41 s, upload HTTP 200 with text.

Not run: the reported H100 node with the 1.7.0-rc.1 image under Slurm.

Detailed evidence — validation complete

Left out of the table because CI repeats them: Builds the changed Dynamo source and confirms that Python can import its compiled extension (Check 1, passed exit 0).

Evidence tally: [3/3 validated]

Advisory AI assessment: sound

Validation result: pass — on one A100, the shipped Whisper launcher fails to register the model on unpatched release/1.7.0 and, with this change, registers it and returns HTTP 200 transcripts under RoundRobin, Random, and LeastLoaded; the new unit test fails with the reported error when the old call is put back and passes with the fix, and the workspace check, Clippy, and the related Rust tests pass

Evidence audit: complete [3/3 validated] — the command report comes from recorded runs.

Commands and results [3/3 validated]

Generated from the commands recorded during this run.

Check 1

Builds the changed Dynamo source and confirms that Python can import its compiled extension.

Result: Passed (exit 0)

Command:

Not shown because the exact command contained private run data.

Check 2

Checks the changed Rust crates with cargo check and Clippy.

Result: Passed (exit 0)

Command:

Not shown because the exact command contained private run data.

Check 3

Starts Dynamo with vLLM on one GPU and sends a real request.

Result: Passed (exit 0)

Command:

Not shown because the exact command contained private run data.

@glamr-agent

Copy link
Copy Markdown
Collaborator Author

No description provided.

@glamr-agent

Copy link
Copy Markdown
Collaborator Author

factory: @dynamo-ops please run full CI for fdfdcf8

@dynamo-ops

Copy link
Copy Markdown
Contributor

/ok to test fdfdcf8

@devin-ai-integration

devin-ai-integration Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

✅ Dynamo PR CI passed — run 42307984153 (attempt 1) on da1718ffc4

Gate checks: ✅ backend-status-check · ✅ deploy-status-check · ✅ dynamo-status-check

Posted automatically by Devin for run 42307984153. Updated on every full-CI run of this PR.

@glamr-agent

Copy link
Copy Markdown
Collaborator Author

nursery: I changed nothing for the parser finding in devin-ai-integration[bot]’s report. In router_args.py, the session_affinity_max_entries option omits env=self.env, so it reads the process environment instead of the environment supplied to build_frontend_parser. That same code is already on release/1.7.0. PR #18118 adds the missing argument. This PR only changes how watcher.rs builds the transcription router, so the parser correction belongs to that separate change. The registry rejection also occurs on the release base and needs a registry policy change, rather than a source change here.

@dagil-nvidia
dagil-nvidia temporarily deployed to external_collaborator November 6, 2026 22:42 — with GitHub Actions Inactive
@glamr-agent

Copy link
Copy Markdown
Collaborator Author

nursery: @dynamo-ops please run full CI for da1718f

@dynamo-ops

Copy link
Copy Markdown
Contributor

/ok to test da1718f

@nv-nmailhot
nv-nmailhot merged commit b4b7d14 into ai-dynamo:release/1.7.0 Nov 7, 2026
115 checks passed

This branch was previously deployed

1 inactive deployment
external_collaborator — da1718ff Deployed Nov 6, 2026 by dagil-nvidia via ok-to-test #47830
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external-contribution Pull request is from an external contributor fix size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants