![]() * feat: modify forward fn of critic and reward model * feat: modify calc_action_log_probs * to: add wandb in sft and rm trainer * feat: update train_sft * feat: update train_rm * style: modify type annotation and add warning * feat: pass tokenizer to ppo trainer * to: modify trainer base and maker base * feat: add wandb in ppo trainer * feat: pass tokenizer to generate * test: update generate fn tests * test: update train tests * fix: remove action_mask * feat: remove unused code * fix: fix wrong ignore_index * fix: fix mock tokenizer * chore: update requirements * revert: modify make_experience * fix: fix inference * fix: add padding side * style: modify _on_learn_batch_end * test: use mock tokenizer * fix: use bf16 to avoid overflow * fix: fix workflow * [chat] fix gemini strategy * [chat] fix * sync: update colossalai strategy * fix: fix args and model dtype * fix: fix checkpoint test * fix: fix requirements * fix: fix missing import and wrong arg * fix: temporarily skip gemini test in stage 3 * style: apply pre-commit * fix: temporarily skip gemini test in stage 1&2 --------- Co-authored-by: Mingyan Jiang <1829166702@qq.com> |
||
---|---|---|
.. | ||
community | ||
images | ||
inference | ||
language | ||
tutorial | ||
README.md |
README.md
Colossal-AI Examples
Table of Contents
Overview
This folder provides several examples accelerated by Colossal-AI.
Folders such as images
and language
include a wide range of deep learning tasks and applications.
The community
folder aim to create a collaborative platform for developers to contribute exotic features built on top of Colossal-AI.
The tutorial
folder is for everyone to quickly try out the different features in Colossal-AI.
You can find applications such as Chatbot, AIGC and Biomedicine in the Applications directory.
Folder Structure
└─ examples
└─ images
└─ vit
└─ test_ci.sh
└─ train.py
└─ README.md
└─ ...
└─ ...
Invitation to open-source contribution
Referring to the successful attempts of BLOOM and Stable Diffusion, any and all developers and partners with computing powers, datasets, models are welcome to join and build the Colossal-AI community, making efforts towards the era of big AI models!
You may contact us or participate in the following ways:
- Leaving a Star ⭐ to show your like and support. Thanks!
- Posting an issue, or submitting a PR on GitHub follow the guideline in Contributing.
- Join the Colossal-AI community on Slack, and WeChat(微信) to share your ideas.
- Send your official proposal to email contact@hpcaitech.com
Thanks so much to all of our amazing contributors!
Integrate Your Example With Testing
Regular checks are important to ensure that all examples run without apparent bugs and stay compatible with the latest API. Colossal-AI runs workflows to check for examples on a on-pull-request and weekly basis. When a new example is added or changed, the workflow will run the example to test whether it can run. Moreover, Colossal-AI will run testing for examples every week.
Therefore, it is essential for the example contributors to know how to integrate your example with the testing workflow. Simply, you can follow the steps below.
- Create a script called
test_ci.sh
in your example folder - Configure your testing parameters such as number steps, batch size in
test_ci.sh
, e.t.c. Keep these parameters small such that each example only takes several minutes. - Export your dataset path with the prefix
/data
and make sure you have a copy of the dataset in the/data/scratch/examples-data
directory on the CI machine. Community contributors can contact us via slack to request for downloading the dataset on the CI machine. - Implement the logic such as dependency setup and example execution
Community Dependency
We are happy to introduce the following nice community dependency repos that are powered by Colossal-AI: