Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
kurtamohler committed Feb 6, 2025
2 parents 2f6d649 + 4300b29 commit 631d908
Show file tree
Hide file tree
Showing 37 changed files with 389 additions and 304 deletions.
50 changes: 50 additions & 0 deletions .github/scripts/version_script.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,53 @@
@echo off
set TORCHRL_BUILD_VERSION=0.7.0
echo TORCHRL_BUILD_VERSION is set to %TORCHRL_BUILD_VERSION%

@echo on

set VC_VERSION_LOWER=17
set VC_VERSION_UPPER=18
if "%VC_YEAR%" == "2019" (
set VC_VERSION_LOWER=16
set VC_VERSION_UPPER=17
)
if "%VC_YEAR%" == "2017" (
set VC_VERSION_LOWER=15
set VC_VERSION_UPPER=16
)

for /f "usebackq tokens=*" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -legacy -products * -version [%VC_VERSION_LOWER%^,%VC_VERSION_UPPER%^) -property installationPath`) do (
if exist "%%i" if exist "%%i\VC\Auxiliary\Build\vcvarsall.bat" (
set "VS15INSTALLDIR=%%i"
set "VS15VCVARSALL=%%i\VC\Auxiliary\Build\vcvarsall.bat"
goto vswhere
)
)

:vswhere
if "%VSDEVCMD_ARGS%" == "" (
call "%VS15VCVARSALL%" x64 || exit /b 1
) else (
call "%VS15VCVARSALL%" x64 %VSDEVCMD_ARGS% || exit /b 1
)

@echo on

if "%CU_VERSION%" == "xpu" call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"

set DISTUTILS_USE_SDK=1

set args=%1
shift
:start
if [%1] == [] goto done
set args=%args% %1
shift
goto start

:done
if "%args%" == "" (
echo Usage: vc_env_helper.bat [command] [args]
echo e.g. vc_env_helper.bat cl /c test.cpp
)

%args% || exit /b 1
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
Loading

0 comments on commit 631d908

Please sign in to comment.