Skip to content

fix: fix flaky L1_Functional_Tests_Gym distillation_nemo_gym - #2933

Merged
terrykong merged 1 commit into
mainfrom
yukih/fix-flaky
Jun 25, 2026
Merged

terrykong merged 1 commit into
mainfrom
yukih/fix-flaky

Conversation

@yuki-97

@yuki-97 yuki-97 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

load balance CP needs make_sequence_length_divisible_by=2*CP*TP.

    policy.dtensor_cfg.tensor_parallel_size=1 \
    policy.dtensor_cfg.context_parallel_size=2 \
    policy.make_sequence_length_divisible_by=4 \  # previous is 2, fix it to 4.

fix flaky fail in:

  1. https://github.com/NVIDIA-NeMo/RL/actions/runs/28112916550/job/83312372865?pr=2912
  2. https://github.com/NVIDIA-NeMo/RL/actions/runs/28132580722/job/83325231817?pr=2898
  3. https://github.com/NVIDIA-NeMo/RL/actions/runs/28163548298/job/83421101791?pr=2525

error log:

2026-06-25T11:42:41.5653554Z   File "/opt/ray_venvs/nemo_rl.models.policy.workers.dtensor_policy_worker_v2.DTensorPolicyWorkerV2/lib/python3.13/site-packages/torch/distributed/tensor/experimental/_context_parallel/_attention.py", line 1082, in _context_parallel_buffers
2026-06-25T11:42:41.5654553Z     load_balance_indices = load_balancer._generate_indices() if load_balancer else None
2026-06-25T11:42:41.5655104Z                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
2026-06-25T11:42:41.5655983Z   File "/opt/ray_venvs/nemo_rl.models.policy.workers.dtensor_policy_worker_v2.DTensorPolicyWorkerV2/lib/python3.13/site-packages/torch/distributed/tensor/experimental/_context_parallel/_load_balancer.py", line 148, in _generate_indices
2026-06-25T11:42:41.5656863Z     assert seq_length % (world_size * 2) == 0

@yuki-97
yuki-97 requested a review from a team as a code owner June 25, 2026 13:52
@copy-pr-bot

copy-pr-bot Bot commented Jun 25, 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.

@yuki-97 yuki-97 added the CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version) label Jun 25, 2026
@yuki-97

yuki-97 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 24d141e

@yuki-97
yuki-97 requested a review from terrykong June 25, 2026 13:52
@yuki-97 yuki-97 changed the title fix: fix flaky L1 distillation_nemo_gym fix: fix flaky L1_Functional_Tests_Gym distillation_nemo_gym Jun 25, 2026
@terrykong
terrykong merged commit c122608 into main Jun 25, 2026
81 checks passed
@terrykong
terrykong deleted the yukih/fix-flaky branch June 25, 2026 16:08
ashors1 pushed a commit that referenced this pull request Jun 27, 2026
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.

2 participants