File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
.circleci/unittest/windows_optdepts/scripts Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 38
38
git submodule sync && git submodule update --init --recursive
39
39
40
40
printf " Installing PyTorch with %s\n" " ${cudatoolkit} "
41
- conda install -y -c " pytorch-${UPLOAD_CHANNEL} " -c nvidia pytorch " ${cudatoolkit} "
41
+ if $torch_cuda ; then
42
+ pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu118
43
+ else
44
+ pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
45
+ fi
42
46
43
47
torch_cuda=$( python -c " import torch; print(torch.cuda.is_available())" )
44
48
echo torch.cuda.is_available is $torch_cuda
Original file line number Diff line number Diff line change @@ -37,3 +37,6 @@ conda activate "${env_dir}"
37
37
# 3. Install Conda dependencies
38
38
printf " * Installing dependencies (except PyTorch)\n"
39
39
conda env update --file " ${this_dir} /environment.yml" --prune
40
+
41
+ # we don't use torchsnapshot
42
+ conda env config vars set CKPT_BACKEND=torch
You can’t perform that action at this time.
0 commit comments