Repository navigation
feat: add production GRPO objective inputs and reductions - #67
Merged
Merged
Conversation
Signed-off-by: inaniloquentee <[email protected]>
This was referenced Jun 3, 2026
Closed
Collaborator
|
LGTM, Thanks. |
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.
Summary
old-policy logprobs, reference-policy logprobs, payload/provider rewards, and prompt group ids.
global_token_meanremains the default, andsequence_meanis available as an opt-in mode.Issues Covered
Closes #16.
Closes #63.
Closes #64.
Why this PR is stacked
This PR is stacked on top of #61 (
feat: add overlapping rollout training pipeline), which itself depends on #60 (feat: zero copy weight bridge).The dependency chain is:
This keeps the review focused on the GRPO objective layer while reusing the already-built bridge and rollout/training pipeline.
Main changes
rl_engine/alignment/grpo.pyrl_engine/alignment/__init__.pyrl_engine/executors/training_contract.pyrl_engine/executors/overlap_pipeline.pyrl_engine/executors/deepspeed_trainer.pytests/test_grpo_objective.pytests/test_overlap_pipeline.pytests/test_deepspeed_training_worker.pybenchmarks/benchmark_grpo_objective.pyValidation
pre-commit run --files rl_engine/alignment/__init__.py rl_engine/alignment/grpo.py rl_engine/executors/training_contract.py rl_engine/executors/overlap_pipeline.py rl_engine/executors/deepspeed_trainer.py tests/test_grpo_objective.py tests/test_overlap_pipeline.py tests/test_deepspeed_training_worker.py benchmarks/benchmark_grpo_objective.pypy -3.13 -m mypy --ignore-missing-imports rl_enginepy -3.13 -m pytest tests -qpy -3.13 -m pytest rl_engine/tests/test_dispatch.py -vpy -3.13 -m mkdocs build --strict -f mkdocs.yamlResults
136 passed3 passedNotes