feat(rl): implement TurnLevelReward infrastructure for Multi-Turn GRPO#3451
Open
RUFFY-369 wants to merge 25 commits intoNousResearch:mainfrom
Open
feat(rl): implement TurnLevelReward infrastructure for Multi-Turn GRPO#3451RUFFY-369 wants to merge 25 commits intoNousResearch:mainfrom
RUFFY-369 wants to merge 25 commits intoNousResearch:mainfrom
Conversation
Extends HermesAgentBaseEnv with: - HumanEvalPack dataset (164 buggy Python functions) - Workspace scaffolding (buggy.py + tests.py uploaded to sandbox) - Multi-signal reward: test_signal (0.5), diagnosis (0.3), efficiency (0.2) - Terminal + file toolsets for iterative debugging
…-ASCII characters
19 tasks
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.
Note
Research Context: This PR implements the TurnLevelReward infrastructure for Multi-Turn GRPO, building directly on the agent loop and environment integration in PR #3448.
What does this PR do?
Important
This pull request is based on the changes in PR #3448 (CodeDebug Environment). Please merge PR #3448 first before reviewing/merging this one.
This PR introduces the core infrastructure for Multi-Turn Group Relative Policy Optimization (MT-GRPO). It enables environments to provide granular, turn-by-turn reward signals, which are essential for effective credit assignment in multi-turn reasoning trajectories.
Related Issue
Fixes # (Initial infrastructure for MT-GRPO support)
Type of Change
Changes Made
List[float]reward signals (one reward per assistant turn).ScoredDataItemconstruction to detect TurnLevelRewardMixin and handle turn-level signals from environments.How to Test
scoresfield in the resulting JSONL contains a list of rewards (matching the number of assistant turns) instead of a single scalar.Checklist
Code
fix(scope):,feat(scope):, etc.)pytest tests/ -q(Note: System-level version conflict in env, but rollout verified)Documentation & Housekeeping
docs/, docstrings) — or N/Acli-config.yaml.exampleif I added/changed config keys — or N/ACONTRIBUTING.mdorAGENTS.mdif I changed architecture or workflows — or N/AFor New Skills
(N/A - This is a core RL Infrastructure change)
Screenshots / Logs
(Base environment correctly detects subclasses of TurnLevelRewardMixin and produces JSONL trajectories with array-based
scores).cc @teknium1