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
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
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
Tong Li
070907dd7f
polish
2025-02-28 10:16:42 +08:00
Tong Li
f736d747e3
update grpo
2025-02-25 18:12:04 +08:00
Tong Li
ffd3878a1e
add simple grpo
2025-02-23 22:54:26 +08:00
Tong Li
8e6c9a4ab3
add reward related function
2025-02-23 11:02:54 +08:00
Hongxin Liu
de282dd694
[feature] fit RL style generation ( #6213 )
...
* [feature] fit rl style generation
* [doc] add docstr
* [doc] add docstr
2025-02-21 17:28:19 +08:00
Hongxin Liu
43c9b5fb44
[chat] add distributed impl ( #6210 )
2025-02-21 15:24:23 +08:00
Hongxin Liu
f73ae55394
[application] add lora sft example data ( #6198 )
2025-02-18 20:18:18 +08:00
Tong Li
f8b9e88484
[application] Update README ( #6196 )
...
* remove unused ray
* remove unused readme
* update readme
* update readme
* update
* update
* add link
* update readme
* update readme
* fix link
* update code
* update cititaion
* update
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* update readme
* update project
* add images
* update link
* update note
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-02-18 20:17:56 +08:00
Hongxin Liu
d54642a263
[application] add lora sft example ( #6192 )
...
* [application] add lora sft example
* update requirements
* update readme
* update comment
* update ci
2025-02-18 13:06:38 +08:00
YeAnbang
d20c8ffd97
Add GRPO and Support RLVR for PPO ( #6186 )
...
* add grpo, support rlvr
* add grpo, support rlvr
* tested deepseek r1 pipeline
* add ci
* verify grpo r1
* verify grpo r1
* update readme, remove unused code
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* remove path
* clean code
* fix circular import
* fix ci OOM
* fix ci OOM
* skip kto tp, fix qwen generation
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-02-18 09:43:36 +08:00
Tong Li
30a9443132
[Coati] Refine prompt for better inference ( #6117 )
...
* refine prompt
* update prompt
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-11-08 11:00:37 +08:00
Tong Li
7a60161035
update readme ( #6116 )
2024-11-06 17:24:08 +08:00
Tong Li
89a9a600bc
[MCTS] Add self-refined MCTS ( #6098 )
...
* add reasoner
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* update code
* delete llama
* update prompts
* update readme
* update readme
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-10-24 17:51:19 +08:00
Tong Li
4c8e85ee0d
[Coati] Train DPO using PP ( #6054 )
...
* update dpo
* remove unsupport plugin
* update msg
* update dpo
* remove unsupport plugin
* update msg
* update template
* update dataset
* add pp for dpo
* update dpo
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* add dpo fn
* update dpo
* update dpo
* update dpo
* update dpo
* minor update
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* update loss
* update help
* polish code
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-10-11 19:32:00 +08:00
Tong Li
c650a906db
[Hotfix] Remove deprecated install ( #6042 )
...
* remove deprecated install
* remove unused folder
2024-09-03 10:33:18 +08:00
Tong Li
39e2597426
[ColossalChat] Add PP support ( #6001 )
...
* support pp training
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* update rm
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* refactor
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* update test case
* fix
* change to 4
* fix eval
* test
* add pp
* hotfix
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* support pp training
* update rm
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* refactor
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* update test case
* fix
* change to 4
* fix eval
* test
* add pp
* hotfix
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* update
* skip pp eval
* update all reduce
* update sft
* update ignore
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* update no cache
* add eval
* remove fi
* remove debug
* remove parentheses to avoid warning
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Revert "add eval"
This reverts commit 3ab2f6fa32
.
* add all reduce
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-21 10:47:39 +08:00
YeAnbang
ed97d3a5d3
[Chat] fix readme ( #5989 )
...
* fix readme
* fix readme, tokenization fully tested
* fix readme, tokenization fully tested
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: root <root@notebook-8f919155-6035-47b4-9c6f-1be133b9e2c9-0.notebook-8f919155-6035-47b4-9c6f-1be133b9e2c9.colossal-ai.svc.cluster.local>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-12 14:55:17 +08:00
Tong Li
ad3fa4f49c
[Hotfix] README link ( #5966 )
...
* update ignore
* update readme
* run style
* update readme
2024-08-08 18:04:47 +08:00
YeAnbang
0b2d55c4ab
Support overall loss, update KTO logging
2024-08-02 06:51:38 +00:00
Tong Li
1aeb5e8847
[hotfix] Remove unused plan section ( #5957 )
...
* remove readme
* fix readme
* update
2024-07-31 17:47:46 +08:00
YeAnbang
66fbf2ecb7
Update README.md ( #5958 )
2024-07-31 17:44:09 +08:00
YeAnbang
30f4e31a33
[Chat] Fix lora ( #5946 )
...
* fix merging
* remove filepath
* fix style
2024-07-31 14:10:17 +08:00
YeAnbang
6fd9e86864
fix style
2024-07-29 01:29:18 +00:00
YeAnbang
de1bf08ed0
fix style
2024-07-26 10:07:15 +00:00
YeAnbang
8a3ff4f315
fix style
2024-07-26 09:55:15 +00:00
YeAnbang
9688e19b32
remove real data path
2024-07-22 06:13:02 +00:00
YeAnbang
b0e15d563e
remove real data path
2024-07-22 06:11:38 +00:00
YeAnbang
12fe8b5858
refactor evaluation
2024-07-22 05:57:39 +00:00
YeAnbang
c5f582f666
fix test data
2024-07-22 01:31:32 +00:00
YeAnbang
150505cbb8
Merge branch 'kto' of https://github.com/hpcaitech/ColossalAI into kto
2024-07-19 10:11:05 +00:00
YeAnbang
d49550fb49
refactor tokenization
2024-07-19 10:10:48 +00:00
Tong Li
d08c99be0d
Merge branch 'main' into kto
2024-07-19 15:23:31 +08:00
Tong Li
f585d4e38e
[ColossalChat] Hotfix for ColossalChat ( #5910 )
...
* add ignore and tiny llama
* fix path issue
* run style
* fix issue
* update bash
* add ignore and tiny llama
* fix path issue
* run style
* fix issue
* update bash
* fix ddp issue
* add Qwen 1.5 32B
2024-07-19 13:40:07 +08:00
YeAnbang
544b7a38a1
fix style, add kto data sample
2024-07-18 08:38:56 +00:00
YeAnbang
09d5ffca1a
add kto
2024-07-18 07:54:11 +00:00
YeAnbang
b3594d4d68
fix orpo cross entropy loss
2024-07-15 02:12:05 +00:00
YeAnbang
115c4cc5a4
hotfix citation
2024-07-11 06:05:05 +00:00
YeAnbang
e7a8634636
fix eval
2024-07-11 03:35:03 +00:00
pre-commit-ci[bot]
8a9721bafe
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-07-10 10:44:32 +00:00
YeAnbang
f6ef5c3609
fix style
2024-07-10 10:37:17 +00:00
YeAnbang
d888c3787c
add benchmark for sft, dpo, simpo, orpo. Add benchmarking result. Support lora with gradient checkpoint
2024-07-10 10:17:08 +00:00
YeAnbang
16f3451fe2
Merge branch 'main' of https://github.com/hpcaitech/ColossalAI into rlhf_SimPO
2024-07-10 02:32:07 +00:00
pre-commit-ci[bot]
7c2f79fa98
[pre-commit.ci] pre-commit autoupdate ( #5572 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/PyCQA/autoflake: v2.2.1 → v2.3.1](https://github.com/PyCQA/autoflake/compare/v2.2.1...v2.3.1 )
- [github.com/pycqa/isort: 5.12.0 → 5.13.2](https://github.com/pycqa/isort/compare/5.12.0...5.13.2 )
- [github.com/psf/black-pre-commit-mirror: 23.9.1 → 24.4.2](https://github.com/psf/black-pre-commit-mirror/compare/23.9.1...24.4.2 )
- [github.com/pre-commit/mirrors-clang-format: v13.0.1 → v18.1.7](https://github.com/pre-commit/mirrors-clang-format/compare/v13.0.1...v18.1.7 )
- [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v4.6.0 )
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-01 17:16:41 +08:00
YeAnbang
ff535204fe
update transformers version
2024-06-28 06:24:30 +00:00
YeAnbang
a8af6ccb73
fix torch colossalai version
2024-06-28 03:58:29 +00:00
YeAnbang
b117274074
fix colossalai, transformers version
2024-06-27 08:30:17 +00:00
YeAnbang
afa53066ca
fix colossalai, transformers version
2024-06-27 08:28:36 +00:00
YeAnbang
384c64057d
fix colossalai, transformers version
2024-06-27 08:26:44 +00:00
YeAnbang
8aad064fe7
fix style
2024-06-27 07:29:33 +00:00
YeAnbang
c8d1b4a968
add orpo
2024-06-27 07:20:28 +00:00
YeAnbang
f3de5a025c
remove debug code
2024-06-24 05:16:29 +00:00
YeAnbang
0b2d6275c4
fix dataloader
2024-06-24 05:10:44 +00:00
YeAnbang
82aecd6374
add SimPO
2024-06-24 02:12:20 +00:00
YeAnbang
84eab13078
update sft trainning script
2024-06-11 02:44:20 +00:00
YeAnbang
2abdede1d7
fix readme
2024-06-10 01:08:42 +00:00
YeAnbang
77db21610a
replace the customized dataloader setup with the build-in one
2024-06-07 09:44:25 +00:00
YeAnbang
0d7ff10ea5
replace the customized dataloader setup with the build-in one
2024-06-07 09:43:42 +00:00
YeAnbang
790e1362a6
merge
2024-06-07 07:01:32 +00:00
YeAnbang
ac1520cb8f
remove baichuan from template test due to transformer version conflict
2024-06-07 07:01:32 +00:00
YeAnbang
e16ccc272a
update ci
2024-06-07 07:01:32 +00:00
YeAnbang
45195ac53d
remove local data path
2024-06-07 07:01:31 +00:00
YeAnbang
bf57b13dda
remove models that require huggingface auth from ci
2024-06-07 07:01:31 +00:00
YeAnbang
0bbac158ed
fix datasets version
2024-06-07 07:01:31 +00:00
YeAnbang
62eb28b929
remove duplicated test
2024-06-07 07:01:31 +00:00
YeAnbang
b8b5cacf38
fix transformers version
2024-06-07 07:01:31 +00:00
pre-commit-ci[bot]
1b880ce095
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-06-07 07:01:31 +00:00
YeAnbang
7ae87b3159
fix training script
2024-06-07 07:01:31 +00:00
YeAnbang
0b4a33548c
moupdate ci tests, st ci test cases passed, tp failed in generation for ppo, sp is buggy
2024-06-07 07:01:31 +00:00
YeAnbang
7e65b71815
run pre-commit
2024-06-07 07:01:30 +00:00
YeAnbang
929e1e3da4
upgrade ppo dpo rm script
2024-06-07 07:01:30 +00:00
YeAnbang
7a7e86987d
upgrade colossal-chat support tp_group>1, add sp for sft
2024-06-07 07:01:30 +00:00