-
Notifications
You must be signed in to change notification settings - Fork 923
[WIP] Megatron GRPO #6025
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
Draft
hjh0119
wants to merge
47
commits into
modelscope:main
Choose a base branch
from
hjh0119:mega-grpo
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
[WIP] Megatron GRPO #6025
Changes from 36 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
4316425
wip
hjh0119 5d46eae
init wip
hjh0119 5828229
args wip
hjh0119 a82cec4
Merge remote-tracking branch 'origin/main' into mega-grpo
hjh0119 0689b76
reuse _prepare_rollout_engine
hjh0119 46593cf
merge main
hjh0119 3da8756
mega wip
hjh0119 2ca7ac1
Merge remote-tracking branch 'origin' into mega-grpo
hjh0119 d9ec029
wip
hjh0119 7c56f9f
override train_step wip
hjh0119 686fc74
remove override train_step to grpo
hjh0119 095bcbd
Merge remote-tracking branch 'origin' into mega-grpo
hjh0119 4d9457b
sync weight wip
hjh0119 f52d5e1
rollout wip
hjh0119 155d4fb
Merge remote-tracking branch 'origin' into mega-grpo
hjh0119 3c69c39
modify mini_batch_size to generation batch size
hjh0119 eebdd47
wip
hjh0119 de6ecfe
loss wip
hjh0119 4569e54
fix repeat n
hjh0119 f118935
Merge remote-tracking branch 'origin' into mega-grpo
hjh0119 9cb84e3
fix padding to multiple of tp_size
hjh0119 8627aa3
compute loss
hjh0119 2292cf8
fix logps
hjh0119 bbe5f39
logging & patch VL
hjh0119 6a2940c
fix rollout_group & rollout judgement
hjh0119 486c3d4
fix step
hjh0119 7e8e6b0
merge main
hjh0119 c68d976
move old base trainer to newer
hjh0119 6b1653c
fix
hjh0119 d4a9dcc
offload utils
hjh0119 9dc92a0
offload context
hjh0119 7bc3d61
Resolve merge conflict in megatron_args.py by removing duplicate fiel…
hjh0119 91f97ca
fix resolve
hjh0119 59f436c
fix logps
hjh0119 8dea6d7
fix old logps
hjh0119 abac696
reduce redundancy
hjh0119 3a3ff37
replace token
hjh0119 2cd89dc
fix offload model
hjh0119 50d5e6f
offload optimizer & ref
hjh0119 e1a06c6
support cp
hjh0119 ff9b667
fix pp+cp
hjh0119 ba4bfbf
lora wip
hjh0119 e5a6252
Merge remote-tracking branch 'origin' into mega-grpo
hjh0119 e22c790
arguments document
hjh0119 b3de262
wip lora&cp
hjh0119 d5bd92c
merge origin
hjh0119 fe3270f
remove unused patch
hjh0119 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| # Copyright (c) Alibaba, Inc. and its affiliates. | ||
| from .dpo_trainer import MegatronDPOTrainer | ||
| from .grpo_trainer import MegatronGRPOTrainer | ||
| from .kto_trainer import MegatronKTOTrainer | ||
| from .trainer import MegatronTrainer |
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.
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.