File tree 24 files changed +936
-277
lines changed
linux_olddeps/scripts_gym_0_13
24 files changed +936
-277
lines changed Original file line number Diff line number Diff line change @@ -127,13 +127,13 @@ if [[ "$TORCH_VERSION" == "nightly" ]]; then
127
127
if [ " ${CU_VERSION:- } " == cpu ] ; then
128
128
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu -U
129
129
else
130
- pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/$CU_VERSION
130
+ pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/$CU_VERSION -U
131
131
fi
132
132
elif [[ " $TORCH_VERSION " == " stable" ]]; then
133
133
if [ " ${CU_VERSION:- } " == cpu ] ; then
134
- pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cpu
134
+ pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cpu -U
135
135
else
136
- pip3 install torch torchvision --index-url https://download.pytorch.org/whl/$CU_VERSION
136
+ pip3 install torch torchvision --index-url https://download.pytorch.org/whl/$CU_VERSION -U
137
137
fi
138
138
else
139
139
printf " Failed to install pytorch"
Original file line number Diff line number Diff line change @@ -150,15 +150,15 @@ git submodule sync && git submodule update --init --recursive
150
150
printf " Installing PyTorch with %s\n" " ${CU_VERSION} "
151
151
if [[ " $TORCH_VERSION " == " nightly" ]]; then
152
152
if [ " ${CU_VERSION:- } " == cpu ] ; then
153
- pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu -U
153
+ pip3 install --pre torch torchvision numpy==1.26.4 --index-url https://download.pytorch.org/whl/nightly/cpu -U
154
154
else
155
- pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/$CU_VERSION
155
+ pip3 install --pre torch torchvision numpy==1.26.4 --index-url https://download.pytorch.org/whl/nightly/$CU_VERSION
156
156
fi
157
157
elif [[ " $TORCH_VERSION " == " stable" ]]; then
158
158
if [ " ${CU_VERSION:- } " == cpu ] ; then
159
- pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cpu
159
+ pip3 install torch torchvision numpy==1.26.4 --index-url https://download.pytorch.org/whl/cpu
160
160
else
161
- pip3 install torch torchvision --index-url https://download.pytorch.org/whl/$CU_VERSION
161
+ pip3 install torch torchvision numpy==1.26.4 --index-url https://download.pytorch.org/whl/$CU_VERSION
162
162
fi
163
163
else
164
164
printf " Failed to install pytorch"
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ if [[ "$TORCH_VERSION" == "nightly" ]]; then
34
34
fi
35
35
elif [[ " $TORCH_VERSION " == " stable" ]]; then
36
36
if [ " ${CU_VERSION:- } " == cpu ] ; then
37
- pip3 install torch --index-url https://download.pytorch.org/whl/cpu
37
+ pip3 install torch --index-url https://download.pytorch.org/whl/cpu -U
38
38
else
39
39
pip3 install torch --index-url https://download.pytorch.org/whl/cu121
40
40
fi
Original file line number Diff line number Diff line change @@ -37,9 +37,9 @@ if [[ "$TORCH_VERSION" == "nightly" ]]; then
37
37
fi
38
38
elif [[ " $TORCH_VERSION " == " stable" ]]; then
39
39
if [ " ${CU_VERSION:- } " == cpu ] ; then
40
- pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cpu
40
+ pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cpu -U
41
41
else
42
- pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu121
42
+ pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu121 -U
43
43
fi
44
44
else
45
45
printf " Failed to install pytorch"
Original file line number Diff line number Diff line change @@ -31,15 +31,15 @@ git submodule sync && git submodule update --init --recursive
31
31
printf " Installing PyTorch with cu121"
32
32
if [[ " $TORCH_VERSION " == " nightly" ]]; then
33
33
if [ " ${CU_VERSION:- } " == cpu ] ; then
34
- pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu -U
34
+ pip3 install --pre torch numpy==1.26.4 --index-url https://download.pytorch.org/whl/nightly/cpu -U
35
35
else
36
- pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121 -U
36
+ pip3 install --pre torch numpy==1.26.4 --index-url https://download.pytorch.org/whl/nightly/cu121 -U
37
37
fi
38
38
elif [[ " $TORCH_VERSION " == " stable" ]]; then
39
39
if [ " ${CU_VERSION:- } " == cpu ] ; then
40
- pip3 install torch --index-url https://download.pytorch.org/whl/cpu
40
+ pip3 install torch numpy==1.26.4 --index-url https://download.pytorch.org/whl/cpu
41
41
else
42
- pip3 install torch --index-url https://download.pytorch.org/whl/cu121
42
+ pip3 install torch numpy==1.26.4 --index-url https://download.pytorch.org/whl/cu121
43
43
fi
44
44
else
45
45
printf " Failed to install pytorch"
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ if [[ "$TORCH_VERSION" == "nightly" ]]; then
37
37
fi
38
38
elif [[ " $TORCH_VERSION " == " stable" ]]; then
39
39
if [ " ${CU_VERSION:- } " == cpu ] ; then
40
- pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cpu
40
+ pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cpu -U
41
41
else
42
42
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu121
43
43
fi
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ printf "Installing PyTorch with %s\n" "${CU_VERSION}"
39
39
if [ " ${CU_VERSION:- } " == cpu ] ; then
40
40
conda install pytorch==2.0 torchvision==0.15 cpuonly -c pytorch -y
41
41
else
42
- conda install pytorch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 pytorch-cuda=11.8 numpy==1.26 numpy-base==1.26 -c pytorch -c nvidia -y
42
+ conda install pytorch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 pytorch-cuda=11.8 numpy==1.26 -c pytorch -c nvidia -y
43
43
fi
44
44
45
45
# Solving circular import: https://stackoverflow.com/questions/75501048/how-to-fix-attributeerror-partially-initialized-module-charset-normalizer-has
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ version="$(python -c "print('.'.join(\"${CUDA_VERSION}\".split('.')[:2]))")"
20
20
git submodule sync && git submodule update --init --recursive
21
21
22
22
printf " Installing PyTorch with %s\n" " ${CU_VERSION} "
23
- pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/$CU_VERSION
23
+ pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/$CU_VERSION -U
24
24
25
25
# install tensordict
26
26
if [[ " $RELEASE " == 0 ]]; then
You can’t perform that action at this time.
0 commit comments