Tong Li
aca547623f
[feat] Support prompt level dynamic ( #6300 )
...
* adjust to dynamic prompt bs
* remove debug
* update pad seq (#6303 )
Co-authored-by: Tong Li <tong.li35271158@gmail.com>
* adjust to dynamic prompt bs
* remove debug
* fix dp issue
* fix
* fix default settings
---------
Co-authored-by: Tong Li <tong.li35271158@gmail.com>
2025-05-14 16:40:35 +08:00
Tong Li
b920af427b
update pad seq ( #6303 )
...
Co-authored-by: Tong Li <tong.li35271158@gmail.com>
2025-05-13 16:51:27 +08:00
YeAnbang
eb6b5dd62e
[fix] revert reward update and evaluation ( #6295 )
...
* Revert "rewrite reward fn"
This reverts commit d06042b434
.
* Revert "upgrade reward math verification"
This reverts commit a6085ff676
.
* Revert "fix bug"
This reverts commit 01640ebd65
.
* Revert "reuse comm-group"
This reverts commit bd61918dcf
.
* Revert "Support evaluation during training"
This reverts commit 57a88395fe
.
2025-05-07 10:56:47 +08:00
YeAnbang
17928ad84f
Merge pull request #6292 from hpcaitech/grpo-latest-dev-reward-update
...
[feat] Update reward verification
2025-05-03 10:00:32 +08:00
YeAnbang
d06042b434
rewrite reward fn
2025-05-01 11:28:05 +08:00
YeAnbang
a6085ff676
upgrade reward math verification
2025-04-30 22:59:54 +08:00
YeAnbang
01640ebd65
fix bug
2025-04-30 22:53:12 +08:00
YeAnbang
bd61918dcf
reuse comm-group
2025-04-30 21:36:11 +08:00
YeAnbang
57a88395fe
Support evaluation during training
2025-04-30 18:31:49 +08:00
Tong Li
5fd4bcb9d8
[feat] Sync shard model ( #6289 )
...
* [feat] support hybrid parallel model sync
* update consumer and producer
* update files
* update producer
* remove print
* update
---------
Co-authored-by: duanjunwen <935724073@qq.com>
Co-authored-by: YeAnbang <44796419+YeAnbang@users.noreply.github.com>
Co-authored-by: Tong Li <tong.li35271158@gmail.com>
2025-04-30 14:47:01 +08:00
YeAnbang
14f237ce7e
[feat] Support boxed math reward ( #6284 )
...
* fix pp+tp, fix dataloader
* fixed plugin micro-batch size
* support boxed reward
* add boxed reward
* fix pp state dict incomplete issue
* Revert "fix pp state dict incomplete issue"
This reverts commit 6c1b3b694f
.
2025-04-29 16:46:47 +08:00
YeAnbang
2ca1e3c630
fix pp+tp, fix dataloader ( #6280 )
2025-04-28 17:10:00 +08:00
Tong Li
28795f560c
fix save issue ( #6279 )
...
Co-authored-by: Tong Li <tong.li35271158@gmail.com>
2025-04-27 17:54:06 +08:00
YeAnbang
38008858e4
fix checkpoint naming; add num_epoch parameter ( #6277 )
2025-04-26 14:00:28 +08:00
YeAnbang
26d859f68e
[feat] Support DAPO ( #6263 )
...
* update help information
* update style
* fix
* minor fix
* support PP training
* add pp support
* remove unused code
* address conversation
* fix memory leakage support tp+pp
* move empty cache
* move empty cache
* add DAPO support
* remove format reward
* fix filtering, still buggy
* small fix
* add DAPO support
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* tested multi-node training; fix bind_batch bug
* fix conversation; support sleep mode
* support reusing excessive samples
* add dynamic batching control flag
* add dynamic batching control flag
* refactored
* fix logging
---------
Co-authored-by: Tong Li <tong.li35271158@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-04-25 17:39:17 +08:00
Tong Li
b823c6eec7
[feat] Add final save at the end ( #6274 )
...
* add final save
* default 1 episode
2025-04-23 10:03:46 +08:00
Tong Li
03f4b1dde3
add prompt template ( #6273 )
...
Co-authored-by: Tong Li <tong.li35271158@gmail.com>
2025-04-22 10:39:47 +08:00
YeAnbang
9467c10690
[hot-fix] Fix memory leakage bug, support TP+PP ( #6258 )
...
* update help information
* update style
* fix
* minor fix
* support PP training
* add pp support
* remove unused code
* address conversation
* fix memory leakage support tp+pp
* move empty cache
* move empty cache
---------
Co-authored-by: Tong Li <tong.li35271158@gmail.com>
2025-04-10 10:52:18 +08:00
YeAnbang
ed43a4be04
[Distributed RLHF] Integration of PP ( #6257 )
...
* update help information
* update style
* fix
* minor fix
* support PP training
* add pp support
* remove unused code
* address conversation
---------
Co-authored-by: Tong Li <tong.li35271158@gmail.com>
2025-04-09 13:23:24 +08:00
YeAnbang
50153005b4
[feat] add microbatch forwarding ( #6251 )
...
* add microbatch forwarding
* fix forward microbatch
* fix producer OOM
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* change project name
* fix temperature annealing
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* address conversation
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-03-28 10:24:58 +08:00
YeAnbang
489f215ad9
Merge pull request #6250 from hpcaitech/grpo-latest-dev
...
[feat] Fix Vllm, logprob, add filtering, temperature annealing, lr descent
2025-03-21 16:25:35 +08:00
YeAnbang
2aa7385c88
update logging
2025-03-21 16:12:07 +08:00
YeAnbang
d8eaf0d473
simplify vllm preprocessing input ids
2025-03-21 15:03:10 +08:00
YeAnbang
0472f44163
fix logprob, add filtering, temperature annealing, lr descent
2025-03-21 10:24:24 +08:00
YeAnbang
7ee4452f8c
fix vllm
2025-03-19 17:11:10 +08:00
duanjunwen
7795d4c50d
[Feature] Support Distributed LogProb for GRPO Training ( #6247 )
...
* [fix] fix qwen VocabParallelLMHead1D and gather output
* fix tp bug
* fix consumer
* [feat] Support Distributed LogProb for GRPO Training
* [fix] fix loss func
* [fix] fix log prob plugin
* [fix] fix qwen modeling param
* [fix] rm comments
* [fix] rm hard-code;fix non-dist version
* [fix] fix test file param name and benchmark tp gather output=True/False
* [fix] rm non-dist version in dist log prob
* [fix] fix comments
* [fix] fix dis log prob plugin
* [fix] fix test case
* [fix] fix qwen VocabParallelLMHead1D and gather output
* [fix] fix DistLogProb comments
* [fix] restore tp size
* [fix] fix comments
* [fix] fix comment; fix LogSoftmax usage
---------
Co-authored-by: Tong Li <tong.li35271158@gmail.com>
2025-03-18 17:47:55 +08:00
YeAnbang
bc0171d392
fix transformers backend
2025-03-14 18:12:35 +08:00
Tong Li
57b49da5e4
setup update
2025-03-13 16:52:15 +08:00
Tong Li
45ac6c6cb2
print results
2025-03-13 16:51:22 +08:00
Tong Li
4702d57841
convert to 8 generation
2025-03-13 16:49:02 +08:00
Tong Li
afddfde2dd
fix consumer
2025-03-13 14:55:26 +08:00
Tong Li
131eeceb5d
fix tp bug
2025-03-13 14:52:09 +08:00
Tong Li
704866a240
detach
2025-03-11 16:17:02 +08:00
Tong Li
47d6493778
add response length
2025-03-11 13:06:09 +08:00
Tong Li
abca66e69f
fix reward score
2025-03-11 10:17:32 +08:00
Tong Li
71a0181fce
update reward
2025-03-10 14:19:10 +08:00
Tong Li
754b16dfbf
update reward fn
2025-03-10 14:18:22 +08:00
Tong Li
9d9d51614e
update grpo
2025-03-10 14:12:04 +08:00
pre-commit-ci[bot]
eb6337f07f
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2025-03-06 08:29:59 +00:00
Tong Li
22cc1558a8
Merge branch 'grpo-latest' of github.com:hpcaitech/ColossalAI into grpo-latest
2025-03-06 16:28:47 +08:00
Tong Li
0590f10fb7
update select algo
2025-03-06 16:27:13 +08:00
Tong Li
0cc0c843ed
add save
2025-03-06 16:26:14 +08:00
pre-commit-ci[bot]
ab5b6d8432
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2025-03-06 06:30:27 +00:00
Tong Li
0f566cc2d4
add algo selection
2025-03-06 14:29:22 +08:00
Tong Li
812f4b7750
update loader
2025-03-06 11:44:42 +08:00
Tong Li
7f2ceac5c3
update example
2025-03-06 10:54:23 +08:00
Tong Li
d03cdea949
update reward fn
2025-03-06 10:53:48 +08:00
Tong Li
678f5a9eca
update loss
2025-03-06 10:53:03 +08:00
Tong Li
b96d69055e
grpo consumer
2025-03-06 10:51:27 +08:00
Tong Li
c15225bc52
modify data loader
2025-03-06 10:49:44 +08:00