Repository navigation
test(fsdp): pass the loop arguments to flow_grpo_loss_formula in the score-centering test - #380
Merged
Merged
Conversation
…score-centering test
Rockdu
force-pushed
the
rockdu/fix-flow-grpo-loss-test
branch
from
November 11, 2026 20:07
0a9c3e7 to
ed06e28
Compare
zhihengy
added a commit
that referenced
this pull request
Nov 12, 2026
Co-Authored-By: Claude Mythos 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
tests/fast/backends/fsdp_utils/test_loss_hub_flow_grpo.py: the score-centering oracle test callsflow_grpo_loss_formulawith the loop arguments the hook now takes (optim_step_idx=0,train_output_inputs=[]), astest_loss_hub_dmd2.pyalready does.Why
Two PRs were green on their own bases and red together: #298 added this test against the old loss-formula signature, and #368 (merged two hours later) made every loss formula take
optim_step_idxandtrain_output_inputsas keyword-only arguments, updating the call sites that existed on its base. The first nightly on the mergedmain(run 43059053736, attempt 2) fails withTypeError: flow_grpo_loss_formula() missing 2 required keyword-only argumentsinstage-a-cpu; every other stage is skipped behind it. Attempt 1 of that run failed earlier inInstall ffmpeg(hosted-runner DNS failure onsecurity.ubuntu.com), which the rerun cleared.Validation
pytest tests/fast/backends/fsdp_utils/test_loss_hub_flow_grpo.py: 5 passed (local venv with sglang installed).pre-commit run --files tests/fast/backends/fsdp_utils/test_loss_hub_flow_grpo.py: passes.Files
tests/fast/backends/fsdp_utils/test_loss_hub_flow_grpo.py: the one call site.Checklist
pre-commit run --all-filespasses (run on the changed file)pytest -xis green (only the changed file run locally;stage-a-cpuon this PR covers the suite)python3 train.py --helpstill parses (no flags changed)