File tree 2 files changed +2
-2
lines changed 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 63
63
$cudaNum = [int]$cudaVersion.substring($cudaVersion.LastIndexOf('.')+1)
64
64
while ($cudaNum -ge 0) { $cudaChannels += '-c nvidia/label/cuda-' + $cudaVersion.Remove($cudaVersion.LastIndexOf('.')+1) + $cudaNum + ' '; $cudaNum-- }
65
65
mamba install -y 'cuda' $cudaChannels.TrimEnd().Split()
66
- if ([version]$env:CUDAVER -gt [version]'11.8.0') {$torch = "torch==2.1.0 "} else {$torch = "torch==2.0.1 "}
66
+ if ([version]$env:CUDAVER -lt [version]'11.8.0') {$torch = "torch==2.0.1 "} else {$torch = "torch==2.1.0 "}
67
67
python -m pip install build wheel safetensors sentencepiece ninja $torch --extra-index-url "https://download.pytorch.org/whl/cu$cudaVersionPytorch"
68
68
69
69
- name : Build Wheel
Original file line number Diff line number Diff line change 60
60
$cudaNum = [int]$cudaVersion.substring($cudaVersion.LastIndexOf('.')+1)
61
61
while ($cudaNum -ge 0) { $cudaChannels += '-c nvidia/label/cuda-' + $cudaVersion.Remove($cudaVersion.LastIndexOf('.')+1) + $cudaNum + ' '; $cudaNum-- }
62
62
mamba install -y 'cuda' $cudaChannels.TrimEnd().Split()
63
- if ([version]$env:CUDAVER -gt [version]'11.8.0') {$torch = "torch==2.1.0 "} else {$torch = "torch==2.0.1 "}
63
+ if ([version]$env:CUDAVER -lt [version]'11.8.0') {$torch = "torch==2.0.1 "} else {$torch = "torch==2.1.0 "}
64
64
python -m pip install build wheel safetensors sentencepiece ninja $torch --extra-index-url "https://download.pytorch.org/whl/cu$cudaVersionPytorch"
65
65
66
66
- name : Build Wheel
You can’t perform that action at this time.
0 commit comments