File tree Expand file tree Collapse file tree 2 files changed +24
-3
lines changed
Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ jobs:
127127
128128 - name : Run torchtitan integration_test
129129 working-directory : torchtitan
130- run : |
130+ run : |
131131 npu_count=$(python -c "import torch; print(torch.npu.device_count())")
132132 python ./tests/integration_tests.py artifacts-to-be-uploaded --ngpu ${npu_count}
133133
Original file line number Diff line number Diff line change @@ -120,6 +120,25 @@ jobs:
120120 image : ${{ needs.prepare.outputs.image }}
121121 torch-artifact : ${{ needs.build-torch.outputs.torch-artifact }}
122122
123+ benchmark :
124+ name : Run benchmarks
125+ needs :
126+ - prepare
127+ - build-torch
128+ - build
129+ if : |
130+ !cancelled() && github.event_name != 'repository_dispatch' &&
131+ (success() || (needs.build-torch.result == 'skipped' && needs.build.result == 'success'))
132+ uses : ./.github/workflows/_ascend_npu_benchmark.yml
133+ with :
134+ runner : ${{ needs.prepare.outputs.runner }}
135+ image : ${{ needs.prepare.outputs.image }}
136+ device : ${{ needs.prepare.outputs.device }}
137+ torch-artifact : ${{ needs.build-torch.outputs.torch-artifact }}
138+ torch-npu-artifact : ${{ needs.build.outputs.torch-npu-artifact }}
139+ secrets :
140+ pr-token : ${{ secrets.COSDT_BOT_TOKEN }}
141+
123142 torchtitan :
124143 name : Run torchtitan
125144 needs :
@@ -131,8 +150,10 @@ jobs:
131150 (success() || (needs.build-torch.result == 'skipped' && needs.build.result == 'success'))
132151 uses : ./.github/workflows/_ascend_npu_torchtitan.yml
133152 with :
134- runner : ${{ needs.prepare.outputs.runner }}
153+ runner : " linux-arm64-npu-4 "
135154 image : ${{ needs.prepare.outputs.image }}
155+ device : ${{ needs.prepare.outputs.device }}
136156 torch-artifact : ${{ needs.build-torch.outputs.torch-artifact }}
137157 torch-npu-artifact : ${{ needs.build.outputs.torch-npu-artifact }}
138-
158+ secrets :
159+ pr-token : ${{ secrets.COSDT_BOT_TOKEN }}
You can’t perform that action at this time.
0 commit comments