File tree Expand file tree Collapse file tree 2 files changed +24
-24
lines changed Expand file tree Collapse file tree 2 files changed +24
-24
lines changed Original file line number Diff line number Diff line change 90
90
run : |
91
91
pip install -r https://raw.githubusercontent.com/Ascend/pytorch/refs/heads/master/requirements.txt
92
92
93
- - name : List torch version
94
- id : list-torch-version
95
- shell : bash
96
- run : |
97
- torch_version=$(python -c "import torch; print(torch.__version__)")
98
- echo "torch-version=${torch_version}" >> $GITHUB_OUTPUT
99
-
100
93
- name : Download torch_npu artifact
101
94
uses : actions/download-artifact@v4
102
95
with :
@@ -108,6 +101,13 @@ jobs:
108
101
run : |
109
102
pip install ${{ inputs.torch-npu-artifact }}
110
103
104
+ - name : List torch version
105
+ id : list-torch-version
106
+ shell : bash
107
+ run : |
108
+ torch_version=$(python -c "from importlib.metadata import version;print(version('torch'))")
109
+ echo "torch-version=${torch_version}" >> $GITHUB_OUTPUT
110
+
111
111
- name : Install benchmark dependencies
112
112
run : |
113
113
pip install -r benchmark/requirements.txt \
Original file line number Diff line number Diff line change @@ -133,23 +133,23 @@ jobs:
133
133
torch-artifact : ${{ needs.build-torch.outputs.torch-artifact }}
134
134
torch-npu-artifact : ${{ needs.build.outputs.torch-npu-artifact }}
135
135
136
- # benchmark:
137
- # name: Run benchmarks
138
- # needs:
139
- # - prepare
140
- # - build-torch
141
- # - build
142
- # if: |
143
- # !cancelled() && github.event_name != 'repository_dispatch' &&
144
- # (success() || (needs.build-torch.result == 'skipped' && needs.build.result == 'success'))
145
- # uses: ./.github/workflows/_ascend_npu_benchmark.yml
146
- # with:
147
- # runner: ${{ needs.prepare.outputs.runner }}
148
- # image: ${{ needs.prepare.outputs.image }}
149
- # torch-artifact: ${{ needs.build-torch.outputs.torch-artifact }}
150
- # torch-npu-artifact: ${{ needs.build.outputs.torch-npu-artifact }}
151
- # secrets:
152
- # pr-token: ${{ secrets.ASCEND_RUNNER_TOKEN }}
136
+ benchmark :
137
+ name : Run benchmarks
138
+ needs :
139
+ - prepare
140
+ - build-torch
141
+ - build
142
+ if : |
143
+ !cancelled() && github.event_name != 'repository_dispatch' &&
144
+ (success() || (needs.build-torch.result == 'skipped' && needs.build.result == 'success'))
145
+ uses : ./.github/workflows/_ascend_npu_benchmark.yml
146
+ with :
147
+ runner : ${{ needs.prepare.outputs.runner }}
148
+ image : ${{ needs.prepare.outputs.image }}
149
+ torch-artifact : ${{ needs.build-torch.outputs.torch-artifact }}
150
+ torch-npu-artifact : ${{ needs.build.outputs.torch-npu-artifact }}
151
+ secrets :
152
+ pr-token : ${{ secrets.ASCEND_RUNNER_TOKEN }}
153
153
154
154
torchtune :
155
155
name : Run torchtune
You can’t perform that action at this time.
0 commit comments