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:
127
127
128
128
- name : Run torchtitan integration_test
129
129
working-directory : torchtitan
130
- run : |
130
+ run : |
131
131
npu_count=$(python -c "import torch; print(torch.npu.device_count())")
132
132
python ./tests/integration_tests.py artifacts-to-be-uploaded --ngpu ${npu_count}
133
133
Original file line number Diff line number Diff line change @@ -120,6 +120,25 @@ jobs:
120
120
image : ${{ needs.prepare.outputs.image }}
121
121
torch-artifact : ${{ needs.build-torch.outputs.torch-artifact }}
122
122
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
+
123
142
torchtitan :
124
143
name : Run torchtitan
125
144
needs :
@@ -131,8 +150,10 @@ jobs:
131
150
(success() || (needs.build-torch.result == 'skipped' && needs.build.result == 'success'))
132
151
uses : ./.github/workflows/_ascend_npu_torchtitan.yml
133
152
with :
134
- runner : ${{ needs.prepare.outputs.runner }}
153
+ runner : " linux-arm64-npu-4 "
135
154
image : ${{ needs.prepare.outputs.image }}
155
+ device : ${{ needs.prepare.outputs.device }}
136
156
torch-artifact : ${{ needs.build-torch.outputs.torch-artifact }}
137
157
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