Skip to content

Commit 8fbc305

Browse files
committed
NPU add titan test
1 parent cfcc43b commit 8fbc305

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

.github/workflows/_ascend_npu_torchtitan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

.github/workflows/ascend_npu_test.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)