Skip to content

Parallel get logprobs when CP/TP mixed case for FSDP2. #549

Closed

Description

@joyang-nv

Current CP implementation will get full tensor before calculating loss which has shape [b, s, v]. There will be much time spent on communication. It is easier to implement but loss some perf.

Solution:

Allow out of order sequence dtensor to be passed to loss function and calculate in parallel way.

This is a follow up of issue 41.

Activity

  1. self-assigned this
    on Jun 25, 2025
  2. linked a pull request that will close this issuefeat: optimize get logprobs when cp enabled. #528on Jul 7, 2025
  3. added
    qa_rcca_done
    on May 5, 2026
  4. qiaochuz-nv commented on May 5, 2026

    @qiaochuz-nv
    Contributor

    QA RCCA Analysis

    RCCA Status: Done
    RCCA Category: missing_test_case
    Test Action: create_new_test

    Fix PR: #528
    Root Cause: product-code fix PR found without upstream test file.
    Trigger Config: Parallel get logprobs when CP/TP mixed case for FSDP2.

    Coverage Assessment:

    Area Result
    Existing Test N/A
    Coverage Status MISSING_TEST_CASE
    Gap No direct upstream or nmfw_tests regression identified for this fixed code path.
    Corrective Action Missing regression test recorded. Add targeted nmfw_tests coverage if this issue recurs or remains high priority.

    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

Assignees

Labels

qa_rcca_done

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions