Repository navigation
Conversation
arendu
force-pushed
the
adithyare/gdpo-lenpen-no-truncation-main
branch
from
August 12, 2026 18:50
867cb52 to
4718b22
Compare
arendu
force-pushed
the
adithyare/gdpo-lenpen-no-truncation-main
branch
from
August 12, 2026 18:52
4718b22 to
f5d1240
Compare
Token ids are tokenizer-specific, so defaulting the think_close token id to 13 could count unrelated tokens (e.g. newlines) on other tokenizers and silently inject large spurious think_count_delta penalties. Token counting now only runs when the id is configured; when no counting method is available the feature stays neutral instead of guessing. Also aligns kwargs at the rollout call site and documents the Phase-3 profiled-penalty gate in length_adjustments.py. Co-Authored-By: Claude Fable 5 <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>
arendu
marked this pull request as ready for review
August 18, 2026 17:51
…try, judge fleet trimmed to nl2bash) Co-Authored-By: Claude Fable 5 <[email protected]>
AsyncTrajectoryCollector called run_async_nemo_gym_rollout without length_adjustment_config, so async_grpo_train silently skipped all configured length bonuses/penalties (both grpo.length_bonus mode and GDPO reward_features mode). Pass master_config.grpo like the sync grpo_train and validate paths already do. Co-Authored-By: Claude Fable 5 <[email protected]>
…to 0 Previously the linear slope from (a, 1.0) through (b, f) continued past b until the multiplier hit 0, fully wiping rewards for long-but-correct rollouts. Now the multiplier floors at f for all lengths >= b, so the maximum penalty is bounded by the configured f. Co-Authored-By: Claude Fable 5 <[email protected]>
New config block length_bonus.profile_band with enabled + defaults holding
per-channel {a, b, f}. Channels listed under defaults are implicitly
enabled; per-row profile_band metadata still wins per-channel when present.
The global band also feeds the profile-gated group-relative penalty.
Malformed channel blocks (missing keys or b <= a) are ignored with a
warning. Previously profile_band silently no-oped when the dataset lacked
per-prompt metadata.
Co-Authored-By: Claude Fable 5 <[email protected]>
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 does this PR do ?
*Adds length penalty functionality for RL
Issues
List issues that this PR closes (syntax):
Usage
# Add a code snippet demonstrating how to use thisBefore your PR is "Ready for review"
Pre checks:
Additional Information