1111 - " .github/workflows/_ascend_npu_ut.yml"
1212 - " .github/workflows/_ascend_npu_benchmark.yml"
1313 - " .github/workflows/_ascend_npu_torchtitan.yml"
14+ - " .github/workflows/_ascend_npu_torchtune.yml"
1415 - " .ci/**"
1516 - " ascend_npu/**"
1617 - " src/**"
2526 - " .github/workflows/_ascend_npu_ut.yml"
2627 - " .github/workflows/_ascend_npu_benchmark.yml"
2728 - " .github/workflows/_ascend_npu_torchtitan.yml"
29+ - " .github/workflows/_ascend_npu_torchtune.yml"
2830 - " .ci/**"
2931 - " ascend_npu/**"
3032 - " src/**"
@@ -120,19 +122,20 @@ jobs:
120122 image : ${{ needs.prepare.outputs.image }}
121123 torch-artifact : ${{ needs.build-torch.outputs.torch-artifact }}
122124
123- torchtitan :
124- name : Run torchtitan
125+ test :
126+ name : Test torch_npu
125127 needs :
126128 - prepare
127129 - build-torch
128130 - build
129131 if : |
130132 !cancelled() && github.event_name != 'repository_dispatch' &&
131133 (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
133135 with :
134136 runner : ${{ needs.prepare.outputs.runner }}
135137 image : ${{ needs.prepare.outputs.image }}
138+ device : ${{ needs.prepare.outputs.device }}
136139 torch-artifact : ${{ needs.build-torch.outputs.torch-artifact }}
137140 torch-npu-artifact : ${{ needs.build.outputs.torch-npu-artifact }}
138141
@@ -142,35 +145,47 @@ jobs:
142145 - prepare
143146 - build-torch
144147 - build
145- - test
146148 if : |
147149 !cancelled() && github.event_name != 'repository_dispatch' &&
148150 (success() || (needs.build-torch.result == 'skipped' && needs.build.result == 'success'))
149151 uses : ./.github/workflows/_ascend_npu_benchmark.yml
150152 with :
151153 runner : ${{ needs.prepare.outputs.runner }}
152154 image : ${{ needs.prepare.outputs.image }}
153- device : ${{ needs.prepare.outputs.device }}
154155 torch-artifact : ${{ needs.build-torch.outputs.torch-artifact }}
155156 torch-npu-artifact : ${{ needs.build.outputs.torch-npu-artifact }}
156157 secrets :
157158 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 }}
158175
159176 torchtune :
160177 name : Run torchtune for torch_npu
161178 needs :
162179 - prepare
163180 - build-torch
164181 - build
165- - test
166182 if : |
167183 !cancelled() && github.event_name != 'repository_dispatch' &&
168184 (success() || (needs.build-torch.result == 'skipped' && needs.build.result == 'success'))
169185 uses : ./.github/workflows/_ascend_npu_torchtune.yml
170186 with :
171187 runner : ${{ needs.prepare.outputs.runner }}
172188 image : ${{ needs.prepare.outputs.image }}
173- device : ${{ needs.prepare.outputs.device }}
174189 torch-artifact : ${{ needs.build-torch.outputs.torch-artifact }}
175190 torch-npu-artifact : ${{ needs.build.outputs.torch-npu-artifact }}
176191 secrets :
0 commit comments