Skip to content

test(fsdp): pass the loop arguments to flow_grpo_loss_formula in the score-centering test - #380

Merged
Rockdu merged 1 commit into
mainfrom
rockdu/fix-flow-grpo-loss-test
Nov 11, 2026
Merged

Rockdu merged 1 commit into
mainfrom
rockdu/fix-flow-grpo-loss-test

Conversation

@Rockdu

@Rockdu Rockdu commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

What

  • tests/fast/backends/fsdp_utils/test_loss_hub_flow_grpo.py: the score-centering oracle test calls flow_grpo_loss_formula with the loop arguments the hook now takes (optim_step_idx=0, train_output_inputs=[]), as test_loss_hub_dmd2.py already 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_idx and train_output_inputs as keyword-only arguments, updating the call sites that existed on its base. The first nightly on the merged main (run 43059053736, attempt 2) fails with TypeError: flow_grpo_loss_formula() missing 2 required keyword-only arguments in stage-a-cpu; every other stage is skipped behind it. Attempt 1 of that run failed earlier in Install ffmpeg (hosted-runner DNS failure on security.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-files passes (run on the changed file)
  • Added/updated tests for new behaviour (the test itself is the change)
  • pytest -x is green (only the changed file run locally; stage-a-cpu on this PR covers the suite)
  • If launch flags changed, python3 train.py --help still parses (no flags changed)
  • If a public flag was added, it appears in the CLI reference docs (none added)
  • If an example was added, it has a real walkthrough (none added)

@Rockdu Rockdu added the run-ci-basic Authorize and run only basic unlabeled CI tests label Nov 11, 2026
@Rockdu
Rockdu force-pushed the rockdu/fix-flow-grpo-loss-test branch from 0a9c3e7 to ed06e28 Compare November 11, 2026 20:07
@Rockdu
Rockdu merged commit 841089c into main Nov 11, 2026
31 of 33 checks passed
@Rockdu
Rockdu deleted the rockdu/fix-flow-grpo-loss-test branch November 11, 2026 23:58
zhihengy added a commit that referenced this pull request Nov 12, 2026
Co-Authored-By: Claude Mythos 5.1 <noreply@anthropic.com>
zhihengy added a commit that referenced this pull request Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-ci-basic Authorize and run only basic unlabeled CI tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant