Skip to content

Refit speedup for non-colocated (NCCL) #817

Closed
1 of 1 issue completed
Closed

Description

@yuki-97

Currently the initial implementation #613 is gathering weights on rank 0 train worker then broadcast to all vllm workers, which is the similar to https://github.com/vllm-project/vllm/blob/v0.9.0/examples/offline_inference/rlhf.py.

Two paths that can currently be thought of:

  1. from @SahilJain314: not broadcasted everything from rank 0.

    broadcasting from many nodes with the full weights is much more performant (less traffic on a single node's network). Or better yet, this lets us avoid doing a full gather on rank 0.

  2. cosmos-rl solution

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    Performance
    on Aug 21, 2025
  2. guyueh1 commented on Aug 26, 2025

    @guyueh1
    Contributor
  3. euronymous-aithal commented on Sep 17, 2025

    @euronymous-aithal
    Contributor

    @youngeunkwon0405 what is the update on this ?

  4. youngeunkwon0405 commented on Sep 17, 2025

    @youngeunkwon0405
    Contributor

    @euronymous-aithal I am currently working on enhancing performance-related visibility (e.g., nsys-related, more perf metrics in general, etc.). Probably after that, I will work on refit performance unless I find more severe perf issues.

  5. youngeunkwon0405 commented on Oct 3, 2025

    @youngeunkwon0405
    Contributor

    #1264 Might improve the non-colocated perf a lot. Need to test the perf improvement in larger models (e.g., DSV3 or LLaMa3 405B).

  6. youngeunkwon0405 commented on Oct 8, 2025

    @youngeunkwon0405
    Contributor

    Hi @terrykong, there is another optimization (#1313) for non-colocated refit.
    #1264 pushes the upper bound broadcast bandwidth we could achieve.
    #1313 do the tensor packing to achieve higher communication bandwidth optimization. And also do the batched weight update to amortize overheads. This optimization is crucial for fine-grain MoE models.

  7. added
    qa_rcca_done
    on May 5, 2026
  8. qiaochuz-nv commented on May 5, 2026

    @qiaochuz-nv
    Contributor

    QA RCCA Analysis

    RCCA Status: Done
    RCCA Category: covered
    Test Action: none

    Fix PR: #613, #1264, #1313, #1379
    Root Cause: fix PR includes upstream test coverage.
    Trigger Config: Refit speedup for non-colocated (NCCL)

    Coverage Assessment:

    Area Result
    Existing Test Upstream fix PR test coverage
    Coverage Status COVERED
    Gap N/A
    Corrective Action No nmfw_tests addition required; fix PR includes upstream test coverage or equivalent regression coverage.

    Conclusion: RCCA classification completed for this closed NeMo-RL GitHub issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

PerformanceasyncRLqa_rcca_done

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions