mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2026-01-21 22:24:00 +00:00
* feat: remove on_learn_epoch fn as not used * revert: add _on_learn_epoch fn * feat: remove NaiveStrategy * test: update train_prompts tests * fix: remove prepare_llama_tokenizer_and_embedding * test: add lora arg * feat: remove roberta support in train_prompts due to runtime errs * feat: remove deberta & roberta in rm as not used * test: remove deberta and roberta tests * feat: remove deberta and roberta models as not used * fix: remove calls to roberta * fix: remove prepare_llama_tokenizer_and_embedding * chore: update transformers version * docs: update transformers version * fix: fix actor inference * fix: fix ci * feat: change llama pad token to unk * revert: revert ddp setup_distributed * fix: change llama pad token to unk * revert: undo unnecessary changes * fix: use pip to install transformers
53 lines
1.5 KiB
YAML
53 lines
1.5 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 ColossalAI and ChatGPT
|
|
run: |
|
|
pip install -e .
|
|
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
|
|
./examples/test_ci.sh
|
|
env:
|
|
NCCL_SHM_DISABLE: 1
|
|
MAX_JOBS: 8
|
|
SFT_DATASET: /data/scratch/github_actions/chat/data.json
|
|
PROMPT_PATH: /data/scratch/github_actions/chat/prompts_en.jsonl
|
|
PRETRAIN_DATASET: /data/scratch/github_actions/chat/alpaca_data.json
|