mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-13 05:01:44 +00:00
* 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>
54 lines
1.6 KiB
YAML
54 lines
1.6 KiB
YAML
name: Run ChatGPT examples
|
|
|
|
on:
|
|
pull_request:
|
|
types: [synchronize, opened, reopened]
|
|
paths:
|
|
- "applications/Chat/coati/**"
|
|
- "applications/Chat/requirements.txt"
|
|
- "applications/Chat/setup.py"
|
|
- "applications/Chat/examples/**"
|
|
|
|
jobs:
|
|
tests:
|
|
name: Run ChatGPT examples
|
|
if: |
|
|
github.event.pull_request.draft == false &&
|
|
github.base_ref == 'main' &&
|
|
github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI'
|
|
runs-on: [self-hosted, gpu]
|
|
container:
|
|
image: hpcaitech/pytorch-cuda:1.12.0-11.3.0
|
|
options: --gpus all --rm -v /data/scratch/github_actions/chat:/data/scratch/github_actions/chat --shm-size=10.24gb
|
|
timeout-minutes: 30
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
steps:
|
|
- name: Checkout ColossalAI
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install ChatGPT
|
|
run: |
|
|
cd applications/Chat
|
|
pip install -v .
|
|
pip install -r examples/requirements.txt
|
|
|
|
- name: Install Transformers
|
|
run: |
|
|
pip install transformers==4.30.2
|
|
|
|
- name: Execute Examples
|
|
run: |
|
|
cd applications/Chat
|
|
rm -rf ~/.cache/colossalai
|
|
./tests/test_inference.sh
|
|
./tests/test_benchmarks.sh
|
|
./tests/test_train.sh
|
|
env:
|
|
NCCL_SHM_DISABLE: 1
|
|
MAX_JOBS: 8
|
|
SFT_DATASET: /data/scratch/github_actions/chat/data.json
|
|
PROMPT_DATASET: /data/scratch/github_actions/chat/prompts_en.jsonl
|
|
PRETRAIN_DATASET: /data/scratch/github_actions/chat/alpaca_data.json
|