Skip to content

feat: support production GRPO objective in overlap pipeline - #68

Closed
inaniloquentee wants to merge 7 commits into
mainfrom
issue-16-grpo-objective-stacked
Closed

inaniloquentee wants to merge 7 commits into
mainfrom
issue-16-grpo-objective-stacked

Conversation

@inaniloquentee

Copy link
Copy Markdown
Collaborator

Summary

  • Add production-oriented GRPO objective support for the overlap pipeline instead of keeping a demo-only path.
  • Introduce a reusable GRPO objective module with explicit reduction semantics, including the default global_token_mean behavior and opt-in sequence_mean.
  • Extend the rollout/training contract so the training side can consume production GRPO inputs:
    old-policy logprobs, reference-policy logprobs, reward payloads/providers, and prompt group ids.
  • Wire both Torch and DeepSpeed training workers through the shared GRPO objective implementation.
  • Add focused tests and benchmarks to validate GRPO objective behavior under more realistic rollout/training inputs.

Validation

  • 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.py
  • py -3.13 -m mypy --ignore-missing-imports rl_engine
  • py -3.13 -m pytest tests -q
  • py -3.13 -m pytest rl_engine/tests/test_dispatch.py -v
  • py -3.13 -m mkdocs build --strict -f mkdocs.yaml

Results

  • Focused GRPO/overlap/DeepSpeed coverage passed
  • Full test suite: 136 passed
  • Dispatch parity test: 3 passed
  • MyPy passed
  • MkDocs strict build passed

Notes

@inaniloquentee
inaniloquentee deleted the issue-16-grpo-objective-stacked branch September 20, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant