Skip to content

feat(vllm): support native-DP nccl_reshard refit - #4941

Merged
terrykong merged 5 commits into
NVIDIA-NeMo:mainfrom
alanliu-nvidia:feat/vllm-dp-nccl-reshard-refit
Nov 2, 2026
Merged

terrykong merged 5 commits into
NVIDIA-NeMo:mainfrom
alanliu-nvidia:feat/vllm-dp-nccl-reshard-refit

Conversation

@alanliu-nvidia

@alanliu-nvidia alanliu-nvidia commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Focused follow-up to the now-merged #2517 and #2517 (comment). This branch is rebased onto main at 0b305c998; the PR diff now contains only the two nccl_reshard follow-up commits across five files (incremental diff).

  • Permit vLLM native-DP EP>TP for non-colocated nccl_reshard refit while preserving existing ETP, PP, and EPLB restrictions. EP must remain a multiple of TP.
  • Use the first worker of each vLLM instance as the rank prefix for model-update and bulk NCCL communicators, including full-fleet and direct-init paths.
  • Continue rejecting partial-shard communicator recovery with native DP rather than assigning conflicting ranks.

Validation

  • Rebased head 68252d0a5: GB200 Slurm job 8450777 completed 0:0; all 226 related unit tests passed, with 0 failed/skipped. W&B metrics, JUnit, and log artifact.
  • Before rebase, head 9f42c7b43: GB200 4n4g TP1/EP4, two native-DP4 vLLM instances, completed 3 GRPO steps with repeated refits in both async and sync modes. Per-step train/token_mult_prob_error was approximately 1.007–1.009. These GPU runs are historical evidence and are not yet current-head validation.

The GB200 container lacks the native nccl.m2n.reshard extension. The GPU runs exercised the NCCL communicator/refit topology through the xferdtensor_python exact-transfer fallback (NRL_XFERDTENSOR_PYTHON=1); they do not validate the native m2n kernel.

Status

Draft pending current-head sync/async GPU reruns and completion of the newly triggered CI:L1 run for 68252d0a5. Do not treat the historical GPU runs or the 226 unit tests as a full CI pass.

@copy-pr-bot

copy-pr-bot Bot commented Oct 27, 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.

@alanliu-nvidia alanliu-nvidia added the CI:L1 Run doctests, unit tests, and functional tests label Oct 27, 2026
@alanliu-nvidia

alanliu-nvidia commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Focused follow-up diff (excluding stacked #2517 commits): alanliu-nvidia/RL@a6c8c3a...9f42c7b . Both GB200 sync and async runs passed three GRPO steps with repeated refits; full results and limitations are in the PR description.

@alanliu-nvidia alanliu-nvidia mentioned this pull request Oct 27, 2026
4 tasks
@alanliu-nvidia

alanliu-nvidia commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Current-head GPU rerun completed on 9f42c7b436ae2b4586796ce902e3b1ed67275644: GB200 4n4g TP1/EP4, two vLLM native-DP instances, sync job 8363662 and async job 8363661 both finished 3/3 GRPO steps with Slurm COMPLETED 0:0. Each log has three train-side and six gen-side refit completion events; token-mult errors stay ~1.007–1.009. W&B: sync, async.

@alanliu-nvidia
alanliu-nvidia force-pushed the feat/vllm-dp-nccl-reshard-refit branch from 9f42c7b to 68252d0 Compare October 29, 2026 18:01
@alanliu-nvidia

Copy link
Copy Markdown
Contributor Author

/ok to test 68252d0

@alanliu-nvidia
alanliu-nvidia marked this pull request as ready for review October 29, 2026 19:06
@youngeunkwon0405

Copy link
Copy Markdown
Contributor

/ok to test 68252d0

@copy-pr-bot

copy-pr-bot Bot commented Nov 1, 2026

Copy link
Copy Markdown

/ok to test 68252d0

@youngeunkwon0405, there was an error processing your request: E2

See the following link for more information: https://docs.gha-runners.nvidia.com/cpr/e/2/

@youngeunkwon0405 youngeunkwon0405 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.

This looks nice and correct implementation, and I am happy to see the minimal implementation. Thanks!

@alanliu-nvidia alanliu-nvidia added CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version) and removed CI:L1 Run doctests, unit tests, and functional tests labels Nov 2, 2026
@alanliu-nvidia

Copy link
Copy Markdown
Contributor Author

/ok to test c80684c

@terrykong
terrykong enabled auto-merge (squash) November 2, 2026 20:08
@alanliu-nvidia

Copy link
Copy Markdown
Contributor Author

/ok to test c80684c

@terrykong
terrykong merged commit 052472e into NVIDIA-NeMo:main Nov 2, 2026
180 of 188 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants