-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
27fd896
commit 27c4aeb
Showing
9 changed files
with
182 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: pytorch1_13-yitian | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
schedule: | ||
- cron: '0 17 * * *' # 1:00 am UTC+8:00 | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
if: github.repository == 'alibaba/BladeDISC' | ||
# The type of runner that the job will run on | ||
runs-on: [self-hosted, yitian-ci] | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Build Dev Docker | ||
run: | | ||
set -e | ||
source $HOME/.cache/proxy_config | ||
git submodule sync | ||
git submodule update --depth=1 --init --recursive | ||
cp /etc/apt/sources.list . | ||
docker build -t disc-dev-cpu-yitian \ | ||
--build-arg BASEIMAGE=ubuntu:20.04 \ | ||
-f docker/dev/Dockerfile.aarch64 . | ||
- name: Build And Test DISC | ||
run: | | ||
set -e | ||
docker run --rm -t --user $(id -u):$(id -g) \ | ||
-v $HOME/.cache:$HOME/.cache \ | ||
-v /etc/passwd:/etc/passwd:ro \ | ||
-v /etc/group:/etc/group:ro \ | ||
-v /etc/hosts:/etc/hosts:ro \ | ||
-v $PWD:/disc \ | ||
-e GITHUB_WORKFLOW=$GITHUB_WORKFLOW \ | ||
-e TORCH_BLADE_BUILD_WITH_CUDA_SUPPORT=OFF \ | ||
-e TORCH_BLADE_CI_BUILD_TORCH_VERSION=1.13.1+aarch64 \ | ||
-e TORCH_BLADE_BUILD_ON_YITIAN=ON \ | ||
-w /disc \ | ||
disc-dev-cpu-yitian \ | ||
bash ./scripts/ci/test_pytorch_blade.sh | ||
- name: Deploy Dev Docker Image | ||
if: github.event.ref == 'refs/heads/main' | ||
env: | ||
ALIYUN_DOCKER_USERNAME: ${{ secrets.ALIYUN_DOCKER_USERNAME }} | ||
ALIYUN_DOCKER_PASSWORD: ${{ secrets.ALIYUN_DOCKER_PASSWORD }} | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
GITHUB_PULL_REQUEST: ${{ github.event.number }} | ||
LOCAL_DEV_DOCKER: disc-dev-cpu-yitian | ||
REMOTE_DEV_DOCKER: bladedisc:latest-devel-cpu-yitian | ||
run: | | ||
set -e | ||
echo "Try to deploy runtime docker image..." | ||
source $HOME/.cache/proxy_config | ||
bash ./scripts/ci/deploy_wrapper.sh | ||
- name: Deploy Runtime Docker Image | ||
if: github.event.ref == 'refs/heads/main' | ||
env: | ||
ALIYUN_DOCKER_USERNAME: ${{ secrets.ALIYUN_DOCKER_USERNAME }} | ||
ALIYUN_DOCKER_PASSWORD: ${{ secrets.ALIYUN_DOCKER_PASSWORD }} | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
GITHUB_PULL_REQUEST: ${{ github.event.number }} | ||
RUNTIME_BASEIMAGE: bladedisc/bladedisc:latest-devel-cpu-yitian | ||
RUNTIME_DOCKER_FILE: docker/runtime/Dockerfile.pytorch.aarch64 | ||
REMOTE_RUNTIME_DOCKER: bladedisc:latest-runtime-torch1.13.1-cpu-yitian | ||
run: | | ||
set -e | ||
echo "Try to deploy runtime docker image..." | ||
source $HOME/.cache/proxy_config | ||
bash ./scripts/ci/deploy_wrapper.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: tf2_8-yitian | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
schedule: | ||
- cron: '0 17 * * *' # 1:00 am UTC+8:00 | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
if: github.repository == 'alibaba/BladeDISC' | ||
# The type of runner that the job will run on | ||
runs-on: [self-hosted, yitian-ci] | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Build Dev Docker | ||
run: | | ||
set -e | ||
source $HOME/.cache/proxy_config | ||
git submodule sync | ||
git submodule update --depth=1 --init --recursive | ||
cp /etc/apt/sources.list . | ||
docker build -t disc-dev-cpu-yitian \ | ||
--build-arg BASEIMAGE=ubuntu:20.04 \ | ||
--build-arg DISC_HOST_TF_VERSION="tensorflow-aarch64==2.8" \ | ||
-f docker/dev/Dockerfile.aarch64 . | ||
- name: Build And Test DISC | ||
run: | | ||
set -e | ||
docker run --rm -t --user $(id -u):$(id -g) \ | ||
-v $HOME/.cache:$HOME/.cache \ | ||
-v /etc/passwd:/etc/passwd:ro \ | ||
-v /etc/group:/etc/group:ro \ | ||
-v /etc/hosts:/etc/hosts:ro \ | ||
-v $PWD:/disc \ | ||
-e GITHUB_WORKFLOW=$GITHUB_WORKFLOW \ | ||
-h=`hostname` \ | ||
-w /disc \ | ||
disc-dev-cpu-yitian \ | ||
bash ./scripts/ci/build_and_test.sh --cpu-only --target_cpu_arch="armv8.6-a-sve2" | ||
- name: Deploy Dev Docker Image | ||
if: github.event.ref == 'refs/heads/main' | ||
env: | ||
ALIYUN_DOCKER_USERNAME: ${{ secrets.ALIYUN_DOCKER_USERNAME }} | ||
ALIYUN_DOCKER_PASSWORD: ${{ secrets.ALIYUN_DOCKER_PASSWORD }} | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
GITHUB_PULL_REQUEST: ${{ github.event.number }} | ||
LOCAL_DEV_DOCKER: disc-dev-cpu-yitian | ||
REMOTE_DEV_DOCKER: bladedisc:latest-devel-cpu-yitian | ||
run: | | ||
set -e | ||
echo "Try to deploy runtime docker image..." | ||
source $HOME/.cache/proxy_config | ||
bash ./scripts/ci/deploy_wrapper.sh | ||
- name: Deploy Runtime Docker Image | ||
if: github.event.ref == 'refs/heads/main' | ||
env: | ||
ALIYUN_DOCKER_USERNAME: ${{ secrets.ALIYUN_DOCKER_USERNAME }} | ||
ALIYUN_DOCKER_PASSWORD: ${{ secrets.ALIYUN_DOCKER_PASSWORD }} | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
GITHUB_PULL_REQUEST: ${{ github.event.number }} | ||
RUNTIME_BASEIMAGE: bladedisc/bladedisc:latest-devel-cpu-yitian | ||
RUNTIME_DOCKER_FILE: docker/runtime/Dockerfile.tf.aarch64 | ||
REMOTE_RUNTIME_DOCKER: bladedisc:latest-runtime-tensorflow2.8-cpu-yitian | ||
run: | | ||
set -e | ||
echo "Try to deploy runtime docker image..." | ||
source $HOME/.cache/proxy_config | ||
bash ./scripts/ci/deploy_wrapper.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters