Skip to content

fix: resolve qwen3.5-35ba3b megatron ep16 OOM via TP=2 (#2619)#2668

Open
sharonyu-115 wants to merge 2 commits into
NVIDIA-NeMo:mainfrom
sharonyu-115:qwen35-35ba3b-megatron-ep16-oom-fix
Open

fix: resolve qwen3.5-35ba3b megatron ep16 OOM via TP=2 (#2619)#2668
sharonyu-115 wants to merge 2 commits into
NVIDIA-NeMo:mainfrom
sharonyu-115:qwen35-35ba3b-megatron-ep16-oom-fix

Conversation

@sharonyu-115
Copy link
Copy Markdown
Contributor

The grpo-qwen3.5-35ba3b-2n8g-megatron-ep16 nightly began OOMing on the distributed-logprob path after the vLLM 0.17.1->0.20.0 bump (#2384). Per issue #2619, moving the MCore path from TP=1 to TP=2 (with expert_tensor_parallel_size=1 and sequence_parallel=True) halves the per-rank logprob tensor and clears the OOM.

What does this PR do ?

Add a one line overview of what this PR aims to accomplish.

Issues

List issues that this PR closes (syntax):

Usage

  • You can potentially add a usage example below
# Add a code snippet demonstrating how to use this

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you run the unit tests and functional tests locally? Visit our Testing Guide for how to run tests
  • Did you add or update any necessary documentation? Visit our Document Development Guide for how to write, build and test the docs.

Additional Information

  • ...

)

The grpo-qwen3.5-35ba3b-2n8g-megatron-ep16 nightly began OOMing on the
distributed-logprob path after the vLLM 0.17.1->0.20.0 bump (NVIDIA-NeMo#2384). Per
issue NVIDIA-NeMo#2619, moving the MCore path from TP=1 to TP=2 (with
expert_tensor_parallel_size=1 and sequence_parallel=True) halves the
per-rank logprob tensor and clears the OOM. Verified: steps 1 and 2
complete with zero OOM, including the step-2 logprob that previously failed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Shuang Yu <shuangy@nvidia.com>
@sharonyu-115 sharonyu-115 requested a review from a team as a code owner June 2, 2026 06:01
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented Jun 2, 2026

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.

@sharonyu-115 sharonyu-115 requested review from yuki-97 and zpqiu June 2, 2026 07:13
Copy link
Copy Markdown
Contributor

@yuki-97 yuki-97 left a comment

Choose a reason for hiding this comment

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

thanks @sharonyu-115 @zpqiu , according to the investigation in #2619, it makes sense to me for the changes.
@terrykong could you check if the changes make sense to you?

@yuki-97 yuki-97 requested a review from terrykong June 2, 2026 08:12
@terrykong
Copy link
Copy Markdown
Collaborator

/ok to test 8756321

@terrykong terrykong added the CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version) label Jun 8, 2026
@terrykong terrykong enabled auto-merge (squash) June 8, 2026 04:34
@terrykong
Copy link
Copy Markdown
Collaborator

/ok to test 8756321

@yuki-97
Copy link
Copy Markdown
Contributor

yuki-97 commented Jun 8, 2026

/ok to test 504fbfc

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.

4 participants