11
11
- " .github/workflows/_ascend_npu_ut.yml"
12
12
- " .github/workflows/_ascend_npu_benchmark.yml"
13
13
- " .github/workflows/_ascend_npu_torchtitan.yml"
14
+ - " .github/workflows/_ascend_npu_torchtune.yml"
14
15
- " .ci/**"
15
16
- " ascend_npu/**"
16
17
- " src/**"
25
26
- " .github/workflows/_ascend_npu_ut.yml"
26
27
- " .github/workflows/_ascend_npu_benchmark.yml"
27
28
- " .github/workflows/_ascend_npu_torchtitan.yml"
29
+ - " .github/workflows/_ascend_npu_torchtune.yml"
28
30
- " .ci/**"
29
31
- " ascend_npu/**"
30
32
- " src/**"
@@ -120,19 +122,20 @@ jobs:
120
122
image : ${{ needs.prepare.outputs.image }}
121
123
torch-artifact : ${{ needs.build-torch.outputs.torch-artifact }}
122
124
123
- torchtitan :
124
- name : Run torchtitan
125
+ test :
126
+ name : Test torch_npu
125
127
needs :
126
128
- prepare
127
129
- build-torch
128
130
- build
129
131
if : |
130
132
!cancelled() && github.event_name != 'repository_dispatch' &&
131
133
(success() || (needs.build-torch.result == 'skipped' && needs.build.result == 'success'))
132
- uses : ./.github/workflows/_ascend_npu_torchtitan .yml
134
+ uses : ./.github/workflows/_ascend_npu_ut .yml
133
135
with :
134
136
runner : ${{ needs.prepare.outputs.runner }}
135
137
image : ${{ needs.prepare.outputs.image }}
138
+ device : ${{ needs.prepare.outputs.device }}
136
139
torch-artifact : ${{ needs.build-torch.outputs.torch-artifact }}
137
140
torch-npu-artifact : ${{ needs.build.outputs.torch-npu-artifact }}
138
141
@@ -142,35 +145,47 @@ jobs:
142
145
- prepare
143
146
- build-torch
144
147
- build
145
- - test
146
148
if : |
147
149
!cancelled() && github.event_name != 'repository_dispatch' &&
148
150
(success() || (needs.build-torch.result == 'skipped' && needs.build.result == 'success'))
149
151
uses : ./.github/workflows/_ascend_npu_benchmark.yml
150
152
with :
151
153
runner : ${{ needs.prepare.outputs.runner }}
152
154
image : ${{ needs.prepare.outputs.image }}
153
- device : ${{ needs.prepare.outputs.device }}
154
155
torch-artifact : ${{ needs.build-torch.outputs.torch-artifact }}
155
156
torch-npu-artifact : ${{ needs.build.outputs.torch-npu-artifact }}
156
157
secrets :
157
158
pr-token : ${{ secrets.COSDT_BOT_TOKEN }}
159
+
160
+ torchtitan :
161
+ name : Run torchtitan
162
+ needs :
163
+ - prepare
164
+ - build-torch
165
+ - build
166
+ if : |
167
+ !cancelled() && github.event_name != 'repository_dispatch' &&
168
+ (success() || (needs.build-torch.result == 'skipped' && needs.build.result == 'success'))
169
+ uses : ./.github/workflows/_ascend_npu_torchtitan.yml
170
+ with :
171
+ runner : ${{ needs.prepare.outputs.runner }}
172
+ image : ${{ needs.prepare.outputs.image }}
173
+ torch-artifact : ${{ needs.build-torch.outputs.torch-artifact }}
174
+ torch-npu-artifact : ${{ needs.build.outputs.torch-npu-artifact }}
158
175
159
176
torchtune :
160
177
name : Run torchtune for torch_npu
161
178
needs :
162
179
- prepare
163
180
- build-torch
164
181
- build
165
- - test
166
182
if : |
167
183
!cancelled() && github.event_name != 'repository_dispatch' &&
168
184
(success() || (needs.build-torch.result == 'skipped' && needs.build.result == 'success'))
169
185
uses : ./.github/workflows/_ascend_npu_torchtune.yml
170
186
with :
171
187
runner : ${{ needs.prepare.outputs.runner }}
172
188
image : ${{ needs.prepare.outputs.image }}
173
- device : ${{ needs.prepare.outputs.device }}
174
189
torch-artifact : ${{ needs.build-torch.outputs.torch-artifact }}
175
190
torch-npu-artifact : ${{ needs.build.outputs.torch-npu-artifact }}
176
191
secrets :
0 commit comments