Files
ColossalAI/.github/workflows/run_chatgpt_unit_tests.yml

44 lines
1.1 KiB
YAML

name: Run ChatGPT unit tests
on:
pull_request:
types: [synchronize, opened, reopened]
paths:
- 'applications/ChatGPT/chatgpt/**'
- 'applications/ChatGPT/requirements.txt'
- 'applications/ChatGPT/setup.py'
- 'applications/ChatGPT/requirements-test.txt'
- 'applications/ChatGPT/tests/**'
- 'applications/ChatGPT/pytest.ini'
jobs:
tests:
name: Run ChatGPT unit tests
runs-on: [self-hosted, gpu]
container:
image: hpcaitech/pytorch-cuda:1.12.0-11.3.0
options: --gpus all --rm -v /data/scratch/chatgpt:/data/scratch/chatgpt
timeout-minutes: 30
defaults:
run:
shell: bash
steps:
- name: Checkout ColossalAI
uses: actions/checkout@v2
- name: Install ColossalAI and ChatGPT
run: |
pip install -v .
cd applications/ChatGPT
pip install -v .
pip install -r requirements-test.txt
- name: Execute Unit Testing
run: |
cd applications/ChatGPT
rm -rf ~/.cache/colossalai
pytest tests/
env:
NCCL_SHM_DISABLE: 1
MAX_JOBS: 8