File tree Expand file tree Collapse file tree 3 files changed +11
-13
lines changed Expand file tree Collapse file tree 3 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -99,14 +99,21 @@ jobs:
9999 # artifact: ${{ inputs.torch-artifact }}
100100
101101 - name : Download torch artifact
102+ if : ${{ inputs.torch-artifact }}
102103 uses : actions/download-artifact@v4
103104 with :
104105 name : ${{ inputs.torch-artifact }}
105106
106107 - name : Install torch
108+ if : ${{ inputs.torch-artifact }}
107109 run : |
108110 pip install ${{ inputs.torch-artifact }}
109111
112+ - name : Install torch_npu dependencies
113+ if : ${{ !inputs.torch-artifact }}
114+ run : |
115+ pip install -r https://raw.githubusercontent.com/Ascend/pytorch/refs/heads/master/requirements.txt
116+
110117 - name : List torch version
111118 id : list-torch-version
112119 shell : bash
Original file line number Diff line number Diff line change 4343 outputs :
4444 dist-name : ${{ steps.list-dist.outputs.dist-name }}
4545 steps :
46- - name : Hit
47- if : ${{ inputs.torch-artifact }}
48- run : |
49- set -x
50- echo ${{ inputs.torch-artifact }}
51- exit 1
52-
53- - name : Hit
54- run : |
55- set -x
56- echo ${{ inputs.torch-artifact }}
57- exit 1
58-
5946 - name : Config mirrors
6047 run : |
6148 sed -i 's|ports.ubuntu.com|mirrors.tuna.tsinghua.edu.cn|g' /etc/apt/sources.list
@@ -99,11 +86,13 @@ jobs:
9986 # artifact: ${{ inputs.torch-artifact }}
10087
10188 - name : Download torch artifact
89+ if : ${{ inputs.torch-artifact }}
10290 uses : actions/download-artifact@v4
10391 with :
10492 name : ${{ inputs.torch-artifact }}
10593
10694 - name : Install torch
95+ if : ${{ inputs.torch-artifact }}
10796 run : |
10897 pip install ${{ inputs.torch-artifact }}
10998
Original file line number Diff line number Diff line change @@ -102,11 +102,13 @@ jobs:
102102 # artifact: ${{ inputs.torch-artifact }}
103103
104104 - name : Download torch artifact
105+ if : ${{ inputs.torch-artifact }}
105106 uses : actions/download-artifact@v4
106107 with :
107108 name : ${{ inputs.torch-artifact }}
108109
109110 - name : Install torch
111+ if : ${{ inputs.torch-artifact }}
110112 run : |
111113 pip install ${{ inputs.torch-artifact }}
112114
You can’t perform that action at this time.
0 commit comments