Skip to content

Commit

Permalink
Modify ci for different models.
Browse files Browse the repository at this point in the history
  • Loading branch information
yao-fengchen committed Dec 27, 2023
1 parent f93d535 commit 2594285
Showing 1 changed file with 53 additions and 8 deletions.
61 changes: 53 additions & 8 deletions .github/workflows/_runs-on-topsrider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,67 @@ jobs:
runs-on: ${{ inputs.runner }}
needs: checkout_code
steps:
- name: build and test on topsrider
- name: build on topsrider
uses: DeepLink-org/deeplink.framework/.github/actions/code-build-test@main
with:
build_shell: "
source dicp/scripts/ci/tops/ci_tops_build_env.sh && \
pip uninstall torch_dipu -y && \
pip uninstall dicp -y && \
cd dipu && python setup.py install --user && \
cd ../dicp && python setup.py install --user && \
cd .. && source dicp/scripts/ci/tops/ci_tops_test_env.sh \
/mnt/models/llama_models /mnt/models/stable_diffusion_models && \
cd ../dicp && python setup.py install --user && python -c \"import torch_dipu\" && \
source scripts/ci/tops/ci_tops_test_env.sh /mnt/models/llama_models /mnt/models/stable_diffusion_models && \
export TEST_DIR=$(pwd)/dicp/test && echo ${TEST_DIR}
"
job_name: "build_test"
cover_job: "0"

- name: test ops on topsrider
uses: DeepLink-org/deeplink.framework/.github/actions/code-build-test@main
with:
build_shell: "
echo ${TEST_DIR} && echo ${TEST_DIR} && echo ${TEST_DIR} && \
source dicp/scripts/ci/tops/ci_tops_test_env.sh /mnt/models/llama_models /mnt/models/stable_diffusion_models && \
export TEST_DIR=$(pwd)/dicp/test && echo ${TEST_DIR} && \
bash ${TEST_DIR}/tops_scripts/ops/run_test_ops.sh false
"
job_name: "build_test"
cover_job: "1"

- name: test llama on topsrider
uses: DeepLink-org/deeplink.framework/.github/actions/code-build-test@main
with:
build_shell: "
echo ${TEST_DIR} && echo ${TEST_DIR} && echo ${TEST_DIR} && \
echo ${LLAMA_MODEL_DIR} && echo ${STABLE_DIFFUSION_MODEL_DIR} && \
echo ${TEST_DIR} && echo ${TEST_DIR} && echo ${TEST_DIR} && \
source dicp/scripts/ci/tops/ci_tops_test_env.sh /mnt/models/llama_models /mnt/models/stable_diffusion_models && \
export TEST_DIR=$(pwd)/dicp/test && echo ${TEST_DIR} && \
bash ${TEST_DIR}/model/run_test_model.sh llama topsgraph false
"
job_name: "build_test"
cover_job: "1"

- name: test resnet50 on topsrider
uses: DeepLink-org/deeplink.framework/.github/actions/code-build-test@main
with:
build_shell: "
echo ${TEST_DIR} && echo ${TEST_DIR} && echo ${TEST_DIR} && \
source dicp/scripts/ci/tops/ci_tops_test_env.sh /mnt/models/llama_models /mnt/models/stable_diffusion_models && \
export TEST_DIR=$(pwd)/dicp/test && echo ${TEST_DIR} && \
bash ${TEST_DIR}/model/run_test_model.sh resnet50 topsgraph false
"
job_name: "build_test"
cover_job: "1"

- name: test stable-diffusion on topsrider
uses: DeepLink-org/deeplink.framework/.github/actions/code-build-test@main
with:
build_shell: "
echo ${TEST_DIR} && echo ${TEST_DIR} && echo ${TEST_DIR} && \
source dicp/scripts/ci/tops/ci_tops_test_env.sh /mnt/models/llama_models /mnt/models/stable_diffusion_models && \
export TEST_DIR=$(pwd)/dicp/test && echo ${TEST_DIR} && \
bash ${TEST_DIR}/tops_scripts/ops/run_test_ops.sh false && \
bash ${TEST_DIR}/model/run_test_model.sh llama topsgraph false && \
bash ${TEST_DIR}/model/run_test_model.sh resnet50 topsgraph false && \
bash ${TEST_DIR}/model/run_test_model.sh stable_diffusion topsgraph false
"
job_name: "build_test"
cover_job: "0"
cover_job: "1"

0 comments on commit 2594285

Please sign in to comment.