-
Notifications
You must be signed in to change notification settings - Fork 980
Support 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
Merged
Merged
Support Megatron GRPO #6025
Changes from all commits
Commits
Show all changes
104 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 137704e
merge main
hjh0119 ca9c9bc
wip server
hjh0119 f258202
wip
hjh0119 85a035e
Merge remote-tracking branch 'origin' into mega-grpo
hjh0119 0a38c0c
server rollout wip
hjh0119 e0fc2e9
Merge remote-tracking branch 'origin' into mega-grpo
hjh0119 5f2f349
move vllm client init out of args
hjh0119 416feb2
server mode
hjh0119 85135bb
merge main
hjh0119 b93c031
remove old func
hjh0119 2f5d7b5
mcore bridge
hjh0119 edf3378
Merge remote-tracking branch 'origin' into mega-grpo
hjh0119 b3b37ce
merge main & flatten weight sync
hjh0119 1d930d8
dynamic sample
hjh0119 5f9e14a
fix dynamic sampling
hjh0119 b753911
merge main
hjh0119 d1460c2
fix cp: compute part of seq loss
hjh0119 db7000d
optimize weight sync & fix vllm_tp
hjh0119 bee6925
fix vllm tp
hjh0119 f92739a
fix vllm tp distribute outputs twice
hjh0119 bd3f9c9
length context for template encode
hjh0119 3f9b11d
fix sequence is wip"
hjh0119 e34d02d
merge main
hjh0119 1b4fd80
fix padding loss calculate
hjh0119 e9a307d
log completions
hjh0119 8b1e407
bug todo
hjh0119 b6c10eb
fix wip
hjh0119 b25c7d2
merge main
hjh0119 06b3693
Merge remote-tracking branch 'origin' into mega-grpo
hjh0119 46b8e2a
fix sp padding
hjh0119 87bbad7
fix pp
hjh0119 1927712
revert to full seq loss for cp
hjh0119 44920c0
fix server client init in first rank instead of last rank
hjh0119 7ebfdda
fix server mode
hjh0119 43fc27d
fix server pass prompt
hjh0119 1696ea9
dense script
hjh0119 a629fbd
check batch size params
hjh0119 852d0f0
dense server script
hjh0119 2f98eba
moe script
hjh0119 1936a83
docs
hjh0119 500408a
merge main
hjh0119 bdcaa51
update doc
hjh0119 027ca57
update doc & args check
hjh0119 360da42
clean up
hjh0119 6259a34
clean up
hjh0119 5fdde02
clean up
hjh0119 b5be0ce
clean up
hjh0119 d8c7c3b
clean up
hjh0119 2aaa1e5
align scale_rewards
hjh0119 7540743
merge main
hjh0119 29ecb32
aggressive_empty_cache before wake up weights
hjh0119 ad00c5c
docs
hjh0119 5977fe5
sleep level doc
hjh0119 5ab6d37
fix kl metrics
hjh0119 2841fb9
fix arxiv link & fix kl metric
hjh0119 2a97c64
revert script
hjh0119 40706d7
revert server_base_url doc
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
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.