Skip to content

Commit

Permalink
[CI] Upgrade cu121 to cu124
Browse files Browse the repository at this point in the history
ghstack-source-id: 4b3c9c0c31a60a5e151ff13b21e54853dc426416
Pull Request resolved: #2764
  • Loading branch information
vmoens committed Feb 5, 2025
1 parent 57bdc6a commit 5da1f65
Show file tree
Hide file tree
Showing 21 changed files with 61 additions and 61 deletions.
6 changes: 3 additions & 3 deletions .github/unittest/linux_libs/scripts_ataridqn/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ fi
# submodules
git submodule sync && git submodule update --init --recursive

printf "Installing PyTorch with cu121"
printf "Installing PyTorch with cu124"
if [[ "$TORCH_VERSION" == "nightly" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu -U
else
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu121 -U
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu124 -U
fi
elif [[ "$TORCH_VERSION" == "stable" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cpu
else
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu121
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu124
fi
else
printf "Failed to install pytorch"
Expand Down
6 changes: 3 additions & 3 deletions .github/unittest/linux_libs/scripts_brax/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ fi
# submodules
git submodule sync && git submodule update --init --recursive

printf "Installing PyTorch with cu121"
printf "Installing PyTorch with cu124"
if [[ "$TORCH_VERSION" == "nightly" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu -U
else
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121 -U
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu124 -U
fi
elif [[ "$TORCH_VERSION" == "stable" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install torch --index-url https://download.pytorch.org/whl/cpu -U
else
pip3 install torch --index-url https://download.pytorch.org/whl/cu121
pip3 install torch --index-url https://download.pytorch.org/whl/cu124
fi
else
printf "Failed to install pytorch"
Expand Down
6 changes: 3 additions & 3 deletions .github/unittest/linux_libs/scripts_chess/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ fi
# submodules
git submodule sync && git submodule update --init --recursive

printf "Installing PyTorch with cu121"
printf "Installing PyTorch with cu124"
if [[ "$TORCH_VERSION" == "nightly" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu -U
else
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu121 -U
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu124 -U
fi
elif [[ "$TORCH_VERSION" == "stable" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cpu
else
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu121
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu124
fi
else
printf "Failed to install pytorch"
Expand Down
6 changes: 3 additions & 3 deletions .github/unittest/linux_libs/scripts_d4rl/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ fi
# submodules
git submodule sync && git submodule update --init --recursive

printf "Installing PyTorch with cu121"
printf "Installing PyTorch with cu124"
if [[ "$TORCH_VERSION" == "nightly" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu -U
else
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121 -U
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu124 -U
fi
elif [[ "$TORCH_VERSION" == "stable" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install torch --index-url https://download.pytorch.org/whl/cpu
else
pip3 install torch --index-url https://download.pytorch.org/whl/cu121
pip3 install torch --index-url https://download.pytorch.org/whl/cu124
fi
else
printf "Failed to install pytorch"
Expand Down
4 changes: 2 additions & 2 deletions .github/unittest/linux_libs/scripts_envpool/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ fi
# submodules
git submodule sync && git submodule update --init --recursive

printf "Installing PyTorch with cu121"
printf "Installing PyTorch with cu124"
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu -U
else
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121 -U
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu124 -U
fi

# smoke test
Expand Down
6 changes: 3 additions & 3 deletions .github/unittest/linux_libs/scripts_gen-dgrl/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ fi
# submodules
git submodule sync && git submodule update --init --recursive

printf "Installing PyTorch with cu121"
printf "Installing PyTorch with cu124"
if [[ "$TORCH_VERSION" == "nightly" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu -U
else
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu121 -U
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu124 -U
fi
elif [[ "$TORCH_VERSION" == "stable" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cpu
else
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu121
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu124
fi
else
printf "Failed to install pytorch"
Expand Down
4 changes: 2 additions & 2 deletions .github/unittest/linux_libs/scripts_habitat/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ git submodule sync && git submodule update --init --recursive

printf "Installing PyTorch with %s\n" "${CU_VERSION}"
if [[ "$TORCH_VERSION" == "nightly" ]]; then
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121 -U
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu124 -U
elif [[ "$TORCH_VERSION" == "stable" ]]; then
pip3 install torch --index-url https://download.pytorch.org/whl/cu121
pip3 install torch --index-url https://download.pytorch.org/whl/cu124
fi

# install tensordict
Expand Down
6 changes: 3 additions & 3 deletions .github/unittest/linux_libs/scripts_jumanji/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ fi
# submodules
git submodule sync && git submodule update --init --recursive

printf "Installing PyTorch with cu121"
printf "Installing PyTorch with cu124"
if [[ "$TORCH_VERSION" == "nightly" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu -U
else
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu121 -U
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu124 -U
fi
elif [[ "$TORCH_VERSION" == "stable" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cpu
else
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu121
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu124
fi
else
printf "Failed to install pytorch"
Expand Down
6 changes: 3 additions & 3 deletions .github/unittest/linux_libs/scripts_meltingpot/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ fi
# submodules
git submodule sync && git submodule update --init --recursive

printf "Installing PyTorch with cu121"
printf "Installing PyTorch with cu124"
if [[ "$TORCH_VERSION" == "nightly" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu -U
else
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121 -U
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu124 -U
fi
elif [[ "$TORCH_VERSION" == "stable" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install torch --index-url https://download.pytorch.org/whl/cpu
else
pip3 install torch --index-url https://download.pytorch.org/whl/cu121
pip3 install torch --index-url https://download.pytorch.org/whl/cu124
fi
else
printf "Failed to install pytorch"
Expand Down
6 changes: 3 additions & 3 deletions .github/unittest/linux_libs/scripts_minari/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ fi
# submodules
git submodule sync && git submodule update --init --recursive

printf "Installing PyTorch with cu121"
printf "Installing PyTorch with cu124"
if [[ "$TORCH_VERSION" == "nightly" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu -U
else
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121 -U
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu124 -U
fi
elif [[ "$TORCH_VERSION" == "stable" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install torch --index-url https://download.pytorch.org/whl/cpu
else
pip3 install torch --index-url https://download.pytorch.org/whl/cu121
pip3 install torch --index-url https://download.pytorch.org/whl/cu124
fi
else
printf "Failed to install pytorch"
Expand Down
6 changes: 3 additions & 3 deletions .github/unittest/linux_libs/scripts_open_spiel/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ fi
# submodules
git submodule sync && git submodule update --init --recursive

printf "Installing PyTorch with cu121"
printf "Installing PyTorch with cu124"
if [[ "$TORCH_VERSION" == "nightly" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu -U
else
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121 -U
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu124 -U
fi
elif [[ "$TORCH_VERSION" == "stable" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install torch --index-url https://download.pytorch.org/whl/cpu
else
pip3 install torch --index-url https://download.pytorch.org/whl/cu121
pip3 install torch --index-url https://download.pytorch.org/whl/cu124
fi
else
printf "Failed to install pytorch"
Expand Down
6 changes: 3 additions & 3 deletions .github/unittest/linux_libs/scripts_openx/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ fi
# submodules
git submodule sync && git submodule update --init --recursive

printf "Installing PyTorch with cu121"
printf "Installing PyTorch with cu124"
if [[ "$TORCH_VERSION" == "nightly" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu -U
else
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu121 -U
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu124 -U
fi
elif [[ "$TORCH_VERSION" == "stable" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cpu -U
else
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu121 -U
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu124 -U
fi
else
printf "Failed to install pytorch"
Expand Down
6 changes: 3 additions & 3 deletions .github/unittest/linux_libs/scripts_pettingzoo/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ fi
# submodules
git submodule sync && git submodule update --init --recursive

printf "Installing PyTorch with cu121"
printf "Installing PyTorch with cu124"
if [[ "$TORCH_VERSION" == "nightly" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu -U
else
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121 -U
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu124 -U
fi
elif [[ "$TORCH_VERSION" == "stable" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install torch --index-url https://download.pytorch.org/whl/cpu
else
pip3 install torch --index-url https://download.pytorch.org/whl/cu121
pip3 install torch --index-url https://download.pytorch.org/whl/cu124
fi
else
printf "Failed to install pytorch"
Expand Down
6 changes: 3 additions & 3 deletions .github/unittest/linux_libs/scripts_rlhf/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ fi
# submodules
git submodule sync && git submodule update --init --recursive

printf "Installing PyTorch with cu121"
printf "Installing PyTorch with cu124"
if [[ "$TORCH_VERSION" == "nightly" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install --pre torch "numpy<2.0.0" --index-url https://download.pytorch.org/whl/nightly/cpu -U
else
pip3 install --pre torch "numpy<2.0.0" --index-url https://download.pytorch.org/whl/nightly/cu121 -U
pip3 install --pre torch "numpy<2.0.0" --index-url https://download.pytorch.org/whl/nightly/cu124 -U
fi
elif [[ "$TORCH_VERSION" == "stable" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install torch "numpy<2.0.0" --index-url https://download.pytorch.org/whl/cpu
else
pip3 install torch "numpy<2.0.0" --index-url https://download.pytorch.org/whl/cu121
pip3 install torch "numpy<2.0.0" --index-url https://download.pytorch.org/whl/cu124
fi
else
printf "Failed to install pytorch"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@ esac
# submodules
git submodule sync && git submodule update --init --recursive

printf "Installing PyTorch with cu121"
printf "Installing PyTorch with cu124"
if [[ "$TORCH_VERSION" == "nightly" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu -U
else
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121 -U
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu124 -U
fi
elif [[ "$TORCH_VERSION" == "stable" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install torch --index-url https://download.pytorch.org/whl/cpu
else
pip3 install torch --index-url https://download.pytorch.org/whl/cu121
pip3 install torch --index-url https://download.pytorch.org/whl/cu124
fi
else
printf "Failed to install pytorch"
Expand Down
6 changes: 3 additions & 3 deletions .github/unittest/linux_libs/scripts_roboset/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ fi
# submodules
git submodule sync && git submodule update --init --recursive

printf "Installing PyTorch with cu121"
printf "Installing PyTorch with cu124"
if [[ "$TORCH_VERSION" == "nightly" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu -U
else
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121 -U
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu124 -U
fi
elif [[ "$TORCH_VERSION" == "stable" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install torch --index-url https://download.pytorch.org/whl/cpu
else
pip3 install torch --index-url https://download.pytorch.org/whl/cu121
pip3 install torch --index-url https://download.pytorch.org/whl/cu124
fi
else
printf "Failed to install pytorch"
Expand Down
6 changes: 3 additions & 3 deletions .github/unittest/linux_libs/scripts_sklearn/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ fi
# submodules
git submodule sync && git submodule update --init --recursive

printf "Installing PyTorch with cu121"
printf "Installing PyTorch with cu124"
if [[ "$TORCH_VERSION" == "nightly" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu -U
else
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121 -U
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu124 -U
fi
elif [[ "$TORCH_VERSION" == "stable" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install torch --index-url https://download.pytorch.org/whl/cpu
else
pip3 install torch --index-url https://download.pytorch.org/whl/cu121
pip3 install torch --index-url https://download.pytorch.org/whl/cu124
fi
else
printf "Failed to install pytorch"
Expand Down
6 changes: 3 additions & 3 deletions .github/unittest/linux_libs/scripts_smacv2/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ fi
# submodules
git submodule sync && git submodule update --init --recursive

printf "Installing PyTorch with cu121"
printf "Installing PyTorch with cu124"
if [[ "$TORCH_VERSION" == "nightly" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu -U
else
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121 -U
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu124 -U
fi
elif [[ "$TORCH_VERSION" == "stable" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install torch --index-url https://download.pytorch.org/whl/cpu
else
pip3 install torch --index-url https://download.pytorch.org/whl/cu121
pip3 install torch --index-url https://download.pytorch.org/whl/cu124
fi
else
printf "Failed to install pytorch"
Expand Down
6 changes: 3 additions & 3 deletions .github/unittest/linux_libs/scripts_unity_mlagents/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ fi
# submodules
git submodule sync && git submodule update --init --recursive

printf "Installing PyTorch with cu121"
printf "Installing PyTorch with cu124"
if [[ "$TORCH_VERSION" == "nightly" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu -U
else
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121 -U
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu124 -U
fi
elif [[ "$TORCH_VERSION" == "stable" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install torch --index-url https://download.pytorch.org/whl/cpu
else
pip3 install torch --index-url https://download.pytorch.org/whl/cu121
pip3 install torch --index-url https://download.pytorch.org/whl/cu124
fi
else
printf "Failed to install pytorch"
Expand Down
Loading

0 comments on commit 5da1f65

Please sign in to comment.