|
29 | 29 | - npu-arm64 |
30 | 30 | default: 'self-hosted' |
31 | 31 | description: 'The runner selected to run on' |
| 32 | + image: |
| 33 | + required: true |
| 34 | + type: choice |
| 35 | + options: |
| 36 | + - ascendai/cann:7.1-openeuler2203sp2 |
| 37 | + - ascendai/cann:8.0.rc2.alpha003-910b-ubuntu22.04-py3.9 |
| 38 | + - ascendai/cann:8.0.rc3.alpha002-910b-ubuntu22.04-py3.9 |
| 39 | + default: 'ascendai/cann:8.0.rc3.alpha002-910b-ubuntu22.04-py3.9' |
| 40 | + description: 'The docker image which will be loaded' |
32 | 41 | device: |
33 | 42 | required: true |
34 | 43 | type: choice |
|
43 | 52 | - /dev/davinci8 |
44 | 53 | default: '/dev/davinci6' |
45 | 54 | description: 'The device selected to run on' |
46 | | - image: |
47 | | - required: true |
48 | | - type: choice |
49 | | - options: |
50 | | - - ascendai/cann:7.1-openeuler2203sp2 |
51 | | - - ascendai/cann:8.0.rc2.alpha003-910b-ubuntu22.04-py3.9 |
52 | | - - ascendai/cann:8.0.rc3.alpha002-910b-ubuntu22.04-py3.9 |
53 | | - default: 'ascendai/cann:8.0.rc3.alpha002-910b-ubuntu22.04-py3.9' |
54 | | - description: 'The docker image which will be loaded' |
55 | 55 |
|
56 | 56 | # Only cancel the previous runs when triggered by a pull request |
57 | 57 | concurrency: |
|
64 | 64 | runs-on: ubuntu-latest |
65 | 65 | outputs: |
66 | 66 | runner: ${{ steps.set-param.outputs.runner }} |
67 | | - device: ${{ steps.set-param.outputs.device }} |
68 | 67 | image: ${{ steps.set-param.outputs.image }} |
| 68 | + device: ${{ steps.set-param.outputs.device }} |
69 | 69 | steps: |
70 | 70 | - name: Set param |
71 | 71 | id: set-param |
@@ -107,34 +107,54 @@ jobs: |
107 | 107 | uses: ./.github/workflows/_ascend_npu_test.yml |
108 | 108 | with: |
109 | 109 | runner: ${{ needs.prepare.outputs.runner }} |
| 110 | + image: ${{ needs.prepare.outputs.image }} |
110 | 111 | device: ${{ needs.prepare.outputs.device }} |
| 112 | + artifact_name: ${{ needs.build.outputs.artifact_name }} |
| 113 | + |
| 114 | + pytorch-examples: |
| 115 | + name: Run PyTorch examples |
| 116 | + needs: |
| 117 | + - prepare |
| 118 | + - test |
| 119 | + uses: ./.github/workflows/_ascend_npu_run_pytorch_examples.yml |
| 120 | + with: |
| 121 | + runner: ${{ needs.prepare.outputs.runner }} |
111 | 122 | image: ${{ needs.prepare.outputs.image }} |
| 123 | + device: ${{ needs.prepare.outputs.device }} |
112 | 124 | artifact_name: ${{ needs.build.outputs.artifact_name }} |
113 | 125 |
|
114 | | -# pytorch-examples: |
115 | | -# name: Run PyTorch examples |
116 | | -# needs: |
117 | | -# - prepare |
118 | | -# - build |
119 | | -# runs-on: ${{ needs.prepare.outputs.runner }} |
120 | | -# |
121 | | -# pytorch-benchmark: |
122 | | -# name: Run PyTorch benchmark |
123 | | -# needs: |
124 | | -# - prepare |
125 | | -# - build |
126 | | -# runs-on: ${{ needs.prepare.outputs.runner }} |
127 | | -# |
128 | | -# transformers-examples: |
129 | | -# name: Run transformers examples |
130 | | -# needs: |
131 | | -# - prepare |
132 | | -# - build |
133 | | -# runs-on: ${{ needs.prepare.outputs.runner }} |
134 | | -# |
135 | | -# transformers-timm: |
136 | | -# name: Run PyTorch examples |
137 | | -# needs: |
138 | | -# - prepare |
139 | | -# - build |
140 | | -# runs-on: ${{ needs.prepare.outputs.runner }} |
| 126 | + pytorch-benchmark: |
| 127 | + name: Run PyTorch benchmark |
| 128 | + needs: |
| 129 | + - prepare |
| 130 | + - pytorch-examples |
| 131 | + uses: ./.github/workflows/_ascend_npu_run_pytorch_benchmark.yml |
| 132 | + with: |
| 133 | + runner: ${{ needs.prepare.outputs.runner }} |
| 134 | + image: ${{ needs.prepare.outputs.image }} |
| 135 | + device: ${{ needs.prepare.outputs.device }} |
| 136 | + artifact_name: ${{ needs.build.outputs.artifact_name }} |
| 137 | + |
| 138 | + transformers-examples: |
| 139 | + name: Run transformers examples |
| 140 | + needs: |
| 141 | + - prepare |
| 142 | + - pytorch-benchmark |
| 143 | + uses: ./.github/workflows/_ascend_npu_run_transformers_examples.yml |
| 144 | + with: |
| 145 | + runner: ${{ needs.prepare.outputs.runner }} |
| 146 | + image: ${{ needs.prepare.outputs.image }} |
| 147 | + device: ${{ needs.prepare.outputs.device }} |
| 148 | + artifact_name: ${{ needs.build.outputs.artifact_name }} |
| 149 | + |
| 150 | + transformers-timm: |
| 151 | + name: Run PyTorch image models(timm) |
| 152 | + needs: |
| 153 | + - prepare |
| 154 | + - transformers-examples |
| 155 | + uses: ./.github/workflows/_ascend_npu_run_transformers_timm.yml |
| 156 | + with: |
| 157 | + runner: ${{ needs.prepare.outputs.runner }} |
| 158 | + image: ${{ needs.prepare.outputs.image }} |
| 159 | + device: ${{ needs.prepare.outputs.device }} |
| 160 | + artifact_name: ${{ needs.build.outputs.artifact_name }} |
0 commit comments