Skip to content

feat(vllm): publish RL worker metadata - #13607

Merged
biswapanda merged 17 commits into
mainfrom
feat/vllm-sidecar-rl-metadata
Sep 1, 2026
Merged

biswapanda merged 17 commits into
mainfrom
feat/vllm-sidecar-rl-metadata

Conversation

@biswapanda

@biswapanda biswapanda commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • publish vLLM sidecar RL worker metadata through Dynamo discovery
  • compute inference world size from tensor, pipeline, and data parallelism
  • advertise and validate the optional HTTP or HTTPS admin endpoint for weight-transfer control
  • reject topology or RL-capability drift between bootstrap and startup
  • attribute malformed TP/PP topology to the exact dimension

Stack

Supersedes #13529 without changing its reviewed commit history.

Validation

  • cargo fmt --all
  • cargo test -p dynamo-vllm-sidecar --lib (25 passed)
  • cargo clippy -p dynamo-vllm-sidecar --all-targets -- -D warnings
  • git diff --check

Review follow-up evidence

  • RED: HTTP endpoint tests failed before the dedicated validator existed
  • RED: topology tests failed against the generic world-size error
  • GREEN: HTTP, HTTPS, and path-prefixed admin URLs are accepted; malformed schemes and zero topology dimensions are rejected precisely

Summary by CodeRabbit

  • New Features
    • Added RL worker metadata reporting, including world size and optional administration endpoints.
    • Added configurable vLLM HTTP endpoints through startup arguments or environment variables.
    • Added protocol version information and expanded parallelism details for worker discovery.
  • Bug Fixes
    • Improved validation for RL endpoints and parallelism settings, with clearer startup errors.
    • Prevented incompatible workers from starting when parallelism configuration changes.
  • Documentation
    • Expanded vLLM RL workflow guidance, routing examples, compatibility details, and security recommendations.

@github-actions github-actions Bot added the feat label Aug 20, 2026
@biswapanda
biswapanda marked this pull request as ready for review August 20, 2026 19:33
@biswapanda
biswapanda requested review from a team as code owners August 20, 2026 19:33

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

Comment thread lib/sidecar/vllm/src/tests.rs Resolved
Comment thread lib/sidecar/vllm/src/tests.rs Resolved
Comment thread lib/sidecar/vllm/src/args.rs Resolved

@biswapanda biswapanda left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ported review summary from @connorcarpenter15 on superseded PR #13529:

Left some nit picky comments mainly about tests and helper functions. One question I have is about the new HTTP endpoint. Why do we need this? I thought all control routes were exposed through gRPC.

Original review: #13529 (review)

@biswapanda
biswapanda force-pushed the feat/vllm-sidecar-rl-metadata branch from edbad8d to ccbe3e6 Compare August 20, 2026 21:00
@biswapanda
biswapanda force-pushed the feat/vllm-sidecar-rl-metadata branch from ccbe3e6 to 5e2fcbf Compare August 20, 2026 21:41
@biswapanda biswapanda self-assigned this Aug 20, 2026
Comment thread lib/sidecar/vllm/src/engine.rs Resolved
Comment thread lib/sidecar/vllm/src/args.rs Resolved
Comment thread lib/sidecar/vllm/src/model.rs Resolved
@biswapanda
biswapanda requested review from a team as code owners August 21, 2026 03:31
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Aug 21, 2026
@jthomson04

jthomson04 commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

RL pieces lgtm. Will hold off on approval until @connorcarpenter15 approves sidecar changes, since we overlap in codeowner groups.

@connorcarpenter15 connorcarpenter15 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM, I would just like to defer merging this PR until the vLLM PR lands on main. Do you need help pushing that for review @biswapanda?

Comment thread lib/sidecar/vllm/proto/README.md Resolved
Comment thread lib/sidecar/vllm/src/tests.rs Resolved
Base automatically changed from feat/rl-worker-transfer-metadata to main August 27, 2026 19:00
@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

The change adds validated RL admin URLs and worker world size metadata. RL route responses and discovery responses serialize this metadata with protocol version 1. Backend configuration propagates it to RL endpoints. The vLLM sidecar derives metadata from parallelism information and accepts a routable HTTP endpoint.

Changes

RL worker metadata

Layer / File(s) Summary
RL protocol metadata
lib/rl/...
The RL protocol validates admin URLs and world sizes, adds protocol version 1, and serializes worker metadata in discovery responses. Tests cover invalid metadata and ambiguous model metadata.
Backend metadata wiring
lib/backend-common/..., lib/bindings/python/rust/backend.rs
Backend configuration carries optional RlWorkerMetadata and passes it to RL endpoint preparation. Route responses include the configured metadata.
vLLM endpoint and topology integration
lib/sidecar/vllm/...
The vLLM sidecar parses --vllm-http-endpoint, derives RL metadata from parallelism data, validates startup compatibility, updates protocol metadata, and extends tests and documentation.

Estimated code review effort: 4 (Complex) | ~45 minutes

Merge Risk: 🟠 High · up to 862d2

The vLLM sidecar may publish an incorrect RL world size when decode-context parallelism is zero or inconsistent, which can create an incorrect weight-transfer group; this correctness issue should be fixed before merge.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description provides a detailed summary, implementation details, dependencies, and validation results. However, it omits the required Related Issues section and does not identify where reviewers s… Add the required Related Issues section. Link the relevant issues or confirm that no related issue exists. Add a Where should the reviewer start? section with specific files or components for review, and align the description headings with …
Docstring Coverage ⚠️ Warning Docstring coverage is 38.64% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 44 functions across 9 files. (5 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the primary change: publishing RL worker metadata from the vLLM sidecar.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description provides a detailed summary, implementation details, dependencies, and validation results. However, it omits the required Related Issues section and does not identify where reviewers should start.

Resolution

Add the required Related Issues section. Link the relevant issues or confirm that no related issue exists. Add a Where should the reviewer start? section with specific files or components for review, and align the description headings with the repository template where practical.

Full details: Docstring Coverage

Explanation

Docstring coverage is 38.64% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 44 functions across 9 files. (5 skipped: 5 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
⚔️ Resolve merge conflicts 💡
  • Resolve merge conflict in branch feat/vllm-sidecar-rl-metadata

Comment @coderabbitai help to get the list of available commands.

@biswapanda

Copy link
Copy Markdown
Contributor Author

Overall LGTM, I would just like to defer merging this PR until the vLLM PR lands on main. Do you need help pushing that for review @biswapanda?

PR vllm-project/vllm#53204 has landed in vLLM main now

@biswapanda
biswapanda force-pushed the feat/vllm-sidecar-rl-metadata branch from cb70599 to 3d4230d Compare August 27, 2026 21:33
Comment thread lib/sidecar/vllm/src/args.rs Resolved
@biswapanda
biswapanda force-pushed the feat/vllm-sidecar-rl-metadata branch from e91588c to 207d71b Compare August 28, 2026 21:38
@biswapanda

Copy link
Copy Markdown
Contributor Author

/ok to test 207d71b

@biswapanda
biswapanda merged commit 682ef8f into main Sep 1, 2026
118 checks passed
@biswapanda
biswapanda deleted the feat/vllm-sidecar-rl-metadata branch September 1, 2026 00:58
JulienDarve added a commit that referenced this pull request Sep 1, 2026
Resolve conflicts from #13607 (publish RL worker metadata), which added
`world_size` to `ParallelismInfo` while this branch resynced the vendored
vLLM protocol.

- proto/control.proto, proto/README.md: keep this branch's copy. It is
  byte-identical to upstream vLLM 1f9444a3 (2026-08-25), which is newer
  than main's pin 2991f864 (2026-08-21) and a strict superset of it;
  main's copy is a pruned vendor that drops `max_loras` and
  `supports_lora`. Recorded SHA-256 digests already match the files.

- mocker/servers/vllm: take main's `world_size: 1`. The mocker hardcodes
  TP=PP=PCP=1, and `rl_worker_metadata` computes
  `world_size * data_parallel_size`, so this branch's
  `world_size: dp_size` reported dp_size^2 as the RL world size.

- sidecar/vllm/src/tests.rs: git auto-merged this file without a conflict
  and stacked both sides' `world_size` into one `ParallelismInfo`
  literal, which does not compile (E0062). Both sides had chosen 2;
  dropped the duplicate.

Verified on the merged tree:
- cargo check --workspace --all-targets (excluding the kvbm CUDA chain,
  which needs nvcc): clean, no warnings
- cargo test -p dynamo-vllm-sidecar --lib: 53 passed, 0 failed

Signed-off-by: Julien Darve <[email protected]>
milesial pushed a commit to milesial/dynamo that referenced this pull request Sep 2, 2026
@nnshah1 nnshah1 mentioned this pull request Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation feat size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants