-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[algo] fix: Add seq mean mask denominator option #4510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
tongyx361
merged 12 commits into
verl-project:main
from
szrlee:add_seq_mean_mask_denominator_option
Dec 17, 2025
Merged
Changes from 5 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
3f4658c
feat(agg_loss): add exclude_fully_masked_seq option for seq-mean deno…
szrlee 3f2cb33
feat(ActorConfig): add exclude_fully_masked_seq field
szrlee 6d9a296
feat(ppo_loss): propagate exclude_fully_masked_seq to global_batch_info
szrlee 9915db1
feat(dp_actor): populate global_batch_info for agg_loss calls
szrlee de1fde6
feat(megatron_actor): populate global_batch_info for agg_loss calls
szrlee d3df7de
fix(agg_loss): use local batch size to avoid distributed training com…
szrlee db3c2cc
fix(agg_loss): remove dp_size multiplier when using local count fallback
szrlee 8e95ebd
revert: remove exclude_fully_masked_seq feature
szrlee 2af4aff
fix(agg_loss): use total batch size in denominator, never apply mask
szrlee ab58550
chore: remove PR_MESSAGE.md
szrlee d0e2a2b
feat: refactor agg_loss
tongyx361 1985023
feat: remove the global aggregation from legacy model engine
tongyx361 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.