Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
f6b4ca4e
"examples/git@developer.sourcefind.cn:OpenDAS/colossalai.git" did not exist on "131f32a076d8cbbf9db41d60e67f0e1f1eda98a0"
Unverified
Commit
f6b4ca4e
authored
Feb 15, 2023
by
ver217
Committed by
GitHub
Feb 15, 2023
Browse files
[devops] add chatgpt ci (#2713)
parent
cb2c6a24
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
0 deletions
+82
-0
.github/workflows/run_chatgpt_examples.yml
.github/workflows/run_chatgpt_examples.yml
+41
-0
.github/workflows/run_chatgpt_unit_tests.yml
.github/workflows/run_chatgpt_unit_tests.yml
+41
-0
No files found.
.github/workflows/run_chatgpt_examples.yml
0 → 100644
View file @
f6b4ca4e
name
:
Run ChatGPT examples
on
:
pull_request
:
types
:
[
synchronize
,
opened
,
reopened
]
paths
:
-
'
applications/ChatGPT/chatgpt/**'
-
'
applications/ChatGPT/requirements.txt'
-
'
applications/ChatGPT/setup.py'
-
'
applications/ChatGPT/examples/**'
jobs
:
tests
:
name
:
Run ChatGPT examples
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 examples/requirements.txt
-
name
:
Execute Examples
run
:
|
./examples/test_ci.sh
env
:
NCCL_SHM_DISABLE
:
1
MAX_JOBS
:
8
PROMPT_PATH
:
/data/scratch/chatgpt/prompts.csv
.github/workflows/run_chatgpt_unit_tests.yml
0 → 100644
View file @
f6b4ca4e
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
:
|
pytest tests/
env
:
NCCL_SHM_DISABLE
:
1
MAX_JOBS
:
8
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment