Skip to content

fix: fix qwen3-235b deepseek-v3 h100 perf tests - #2703

Merged
terrykong merged 8 commits into
mainfrom
yukih/fix-reference-logp
Jun 9, 2026
Merged

fix: fix qwen3-235b deepseek-v3 h100 perf tests#2703
terrykong merged 8 commits into
mainfrom
yukih/fix-reference-logp

Conversation

@yuki-97

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

Copy link
Copy Markdown
Contributor

Issue

related to #2579.

Summary

fix several h100 perf tests list below, gb200 related perf tests still have other problems.

  • grpo-qwen3-235b-16n8g, grpo-qwen3-235b-32n8g, grpo-qwen3-235b-32n8g-async-1off
  • grpo-deepseek-v3-32n8g, grpo-deepseek-v3-64n8g, grpo-deepseek-v3-64n8g-async-1off

Changes

  1. fix prepare_for_lp_inference, only skip when both skip_prev_logprobs + skip_reference_logprobs . previously only when skip_prev_logprobs.
  2. use vllm_kwargs.moe_backend=triton to keep same behavior with vLLM==0.17.
  3. remove duplicated to_compute_kl since skip_reference_policy_logprobs_calculation will be set to True in setup when reference_policy_kl_penalty==0.
  4. remove flaky check in grpo-qwen3-235b-16n8g.

@copy-pr-bot

copy-pr-bot Bot commented Jun 5, 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 5, 2026
@yuki-97

yuki-97 commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test d5b2fa8

yuki-97 added 3 commits June 5, 2026 20:25
Signed-off-by: Yuki Huang <yukih@nvidia.com>
Signed-off-by: Yuki Huang <yukih@nvidia.com>
Signed-off-by: Yuki Huang <yukih@nvidia.com>
@yuki-97
yuki-97 force-pushed the yukih/fix-reference-logp branch from a1d2059 to 46336be Compare June 6, 2026 03:25
Signed-off-by: Yuki Huang <yukih@nvidia.com>
@yuki-97 yuki-97 changed the title fix: fix skip_reference_logprobs fix: fix qwen3-235b deepseek-v3 h100 perf tests Jun 6, 2026
@yuki-97
yuki-97 marked this pull request as ready for review June 6, 2026 12:44
@yuki-97
yuki-97 requested review from a team as code owners June 6, 2026 12:44
@yuki-97

yuki-97 commented Jun 6, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test cd840e7

@yuki-97

yuki-97 commented Jun 6, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 810268f

Signed-off-by: Yuki Huang <yukih@nvidia.com>
@yuki-97
yuki-97 force-pushed the yukih/fix-reference-logp branch from 810268f to 68b68fa Compare June 6, 2026 16:59
@yuki-97

yuki-97 commented Jun 6, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 68b68fa

@terrykong terrykong left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed by an agent team (5 agents). No production bugs found — the core change is sound and behavior-preserving.

The prepare_for_lp_inference() restructure fixes a real bug: previously prepare_for_lp_inference() ran only when not skip_prev_logprobs, yet get_reference_policy_logprobs could still execute afterward (when force_on_policy_ratio=True and a reference forward was needed), forwarding on a model that hadn't been onloaded. Decoupling the two is correct. The to_compute_kl removal is equivalent given setup() auto-enables skip_reference_policy_logprobs_calculation when reference_policy_kl_penalty==0 and asserts the flag requires kl==0. All six perf tests named in the description inherit moe_backend: triton through config defaults:.

Comments below are all non-blocking suggestions/questions. Thanks for the fix!

Generated by Claude Code

Comment thread tests/unit/algorithms/test_grpo.py
Comment thread tests/test_suites/llm/performance/grpo-qwen3-235b-16n8g.sh
Comment thread examples/configs/recipes/llm/performance/grpo-qwen3-235b-16n8g.yaml
terrykong
terrykong previously approved these changes Jun 8, 2026

@terrykong terrykong left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm modulo those comments

yuki-97 added 3 commits June 8, 2026 22:22
…omponents fixture

Signed-off-by: Yuki Huang <yukih@nvidia.com>
…100 perf tests

Signed-off-by: Yuki Huang <yukih@nvidia.com>
@yuki-97

yuki-97 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test f0f9682

@terrykong
terrykong merged commit d1788b2 into main Jun 9, 2026
76 checks passed
@terrykong
terrykong deleted the yukih/fix-reference-logp branch June 9, 2026 15:50
pengdurice pushed a commit to pengdurice/RL that referenced this pull request Jun 12, 2026
Signed-off-by: Yuki Huang <yukih@nvidia.com>
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