Skip to content

Commit

Permalink
v0.2.0 branch (#1609)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens authored Oct 5, 2023
1 parent fe19cf5 commit bf264e0
Show file tree
Hide file tree
Showing 28 changed files with 114 additions and 106 deletions.
6 changes: 3 additions & 3 deletions .github/unittest/linux/scripts/run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ git submodule sync && git submodule update --init --recursive
printf "Installing PyTorch with %s\n" "${CU_VERSION}"
if [[ "$TORCH_VERSION" == "nightly" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu
pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
else
pip3 install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/$CU_VERSION
pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/$CU_VERSION
fi
elif [[ "$TORCH_VERSION" == "stable" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
Expand All @@ -146,7 +146,7 @@ python -c "import functorch"
pip3 install git+https://github.com/pytorch/torchsnapshot

# install tensordict
pip3 install git+https://github.com/pytorch-labs/tensordict.git
pip3 install git+https://github.com/pytorch/tensordict.git

printf "* Installing torchrl\n"
python setup.py develop
Expand Down
6 changes: 3 additions & 3 deletions .github/unittest/linux_distributed/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ git submodule sync && git submodule update --init --recursive

printf "Installing PyTorch with %s\n" "${CU_VERSION}"
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu
pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
else
pip3 install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/$CU_VERSION
pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/$CU_VERSION
fi

# smoke test
Expand All @@ -40,7 +40,7 @@ python -c "import functorch"
pip install git+https://github.com/pytorch/torchsnapshot

# install tensordict
pip install git+https://github.com/pytorch-labs/tensordict.git
pip install git+https://github.com/pytorch/tensordict.git

printf "* Installing torchrl\n"
python setup.py develop
4 changes: 2 additions & 2 deletions .github/unittest/linux_examples/scripts/run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ version="$(python -c "print('.'.join(\"${CUDA_VERSION}\".split('.')[:2]))")"
git submodule sync && git submodule update --init --recursive

printf "Installing PyTorch with %s\n" "${CU_VERSION}"
pip3 install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/$CU_VERSION
pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/$CU_VERSION

# smoke test
python -c "import functorch"
Expand All @@ -155,7 +155,7 @@ python -c "import functorch"
pip install git+https://github.com/pytorch/torchsnapshot

# install tensordict
pip install git+https://github.com/pytorch-labs/tensordict.git
pip install git+https://github.com/pytorch/tensordict.git

printf "* Installing torchrl\n"
python setup.py develop
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 @@ -30,13 +30,13 @@ if [ "${CU_VERSION:-}" == cpu ] ; then
# conda install -y pytorch torchvision cpuonly -c pytorch-nightly
# use pip to install pytorch as conda can frequently pick older release
# conda install -y pytorch cpuonly -c pytorch-nightly
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall --progress-bar off
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall --progress-bar off
else
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall --progress-bar off
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall --progress-bar off
fi

# install tensordict
pip install git+https://github.com/pytorch-labs/tensordict.git --progress-bar off
pip install git+https://github.com/pytorch/tensordict.git --progress-bar off

# smoke test
python -c "import functorch;import tensordict"
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 @@ -33,13 +33,13 @@ if [ "${CU_VERSION:-}" == cpu ] ; then
# conda install -y pytorch torchvision cpuonly -c pytorch-nightly
# use pip to install pytorch as conda can frequently pick older release
# conda install -y pytorch cpuonly -c pytorch-nightly
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
else
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
fi

# install tensordict
pip install git+https://github.com/pytorch-labs/tensordict.git
pip install git+https://github.com/pytorch/tensordict.git

# smoke test
python -c "import functorch;import tensordict"
Expand Down
6 changes: 3 additions & 3 deletions .github/unittest/linux_libs/scripts_envpool/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ git submodule sync && git submodule update --init --recursive

printf "Installing PyTorch with %s\n" "${CU_VERSION}"
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
else
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cu118
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu118
fi

# smoke test
python -c "import functorch"

# install tensordict
pip install git+https://github.com/pytorch-labs/tensordict
pip install git+https://github.com/pytorch/tensordict

printf "* Installing torchrl\n"
python setup.py develop
2 changes: 1 addition & 1 deletion .github/unittest/linux_libs/scripts_gym/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fi
pip install -U --force-reinstall charset-normalizer

# install tensordict
pip install git+https://github.com/pytorch-labs/tensordict.git
pip install git+https://github.com/pytorch/tensordict.git

# smoke test
python -c "import tensordict"
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 @@ -20,10 +20,10 @@ version="$(python -c "print('.'.join(\"${CUDA_VERSION}\".split('.')[:2]))")"
git submodule sync && git submodule update --init --recursive

printf "Installing PyTorch with %s\n" "${CU_VERSION}"
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall

# install tensordict
pip3 install git+https://github.com/pytorch-labs/tensordict.git
pip3 install git+https://github.com/pytorch/tensordict.git

# smoke test
python3 -c "import functorch;import 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 @@ -30,13 +30,13 @@ if [ "${CU_VERSION:-}" == cpu ] ; then
# conda install -y pytorch torchvision cpuonly -c pytorch-nightly
# use pip to install pytorch as conda can frequently pick older release
# conda install -y pytorch cpuonly -c pytorch-nightly
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
else
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
fi

# install tensordict
pip install git+https://github.com/pytorch-labs/tensordict.git
pip install git+https://github.com/pytorch/tensordict.git

# smoke test
python -c "import functorch;import tensordict"
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 @@ -30,13 +30,13 @@ if [ "${CU_VERSION:-}" == cpu ] ; then
# conda install -y pytorch torchvision cpuonly -c pytorch-nightly
# use pip to install pytorch as conda can frequently pick older release
# conda install -y pytorch cpuonly -c pytorch-nightly
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
else
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
fi

# install tensordict
pip install git+https://github.com/pytorch-labs/tensordict.git
pip install git+https://github.com/pytorch/tensordict.git

# smoke test
python -c "import tensordict"
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 @@ -33,13 +33,13 @@ if [ "${CU_VERSION:-}" == cpu ] ; then
# conda install -y pytorch torchvision cpuonly -c pytorch-nightly
# use pip to install pytorch as conda can frequently pick older release
# conda install -y pytorch cpuonly -c pytorch-nightly
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
else
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
fi

# install tensordict
pip install git+https://github.com/pytorch-labs/tensordict.git
pip install git+https://github.com/pytorch/tensordict.git

# smoke test
python -c "import tensordict"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ if [ "${CU_VERSION:-}" == cpu ] ; then
# conda install -y pytorch torchvision cpuonly -c pytorch-nightly
# use pip to install pytorch as conda can frequently pick older release
# conda install -y pytorch cpuonly -c pytorch-nightly
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
else
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
fi

# install tensordict
pip install git+https://github.com/pytorch-labs/tensordict.git
pip install git+https://github.com/pytorch/tensordict.git

# smoke test
python -c "import tensordict"
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 @@ -33,13 +33,13 @@ if [ "${CU_VERSION:-}" == cpu ] ; then
# conda install -y pytorch torchvision cpuonly -c pytorch-nightly
# use pip to install pytorch as conda can frequently pick older release
# conda install -y pytorch cpuonly -c pytorch-nightly
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
else
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
fi

# install tensordict
pip install git+https://github.com/pytorch-labs/tensordict.git
pip install git+https://github.com/pytorch/tensordict.git

# smoke test
python -c "import functorch;import tensordict"
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 @@ -30,13 +30,13 @@ if [ "${CU_VERSION:-}" == cpu ] ; then
# conda install -y pytorch torchvision cpuonly -c pytorch-nightly
# use pip to install pytorch as conda can frequently pick older release
# conda install -y pytorch cpuonly -c pytorch-nightly
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
else
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
fi

# install tensordict
pip install git+https://github.com/pytorch-labs/tensordict.git
pip install git+https://github.com/pytorch/tensordict.git

# smoke test
python -c "import tensordict"
Expand Down
6 changes: 3 additions & 3 deletions .github/unittest/linux_libs/scripts_vmas/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ if [ "${CU_VERSION:-}" == cpu ] ; then
# conda install -y pytorch torchvision cpuonly -c pytorch-nightly
# use pip to install pytorch as conda can frequently pick older release
# conda install -y pytorch cpuonly -c pytorch-nightly
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
else
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
fi

# install tensordict
pip install git+https://github.com/pytorch-labs/tensordict.git
pip install git+https://github.com/pytorch/tensordict.git

# smoke test
python -c "import tensordict"
Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/linux_olddeps/scripts_gym_0_13/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fi
pip install -U --force-reinstall charset-normalizer

# install tensordict
pip install git+https://github.com/pytorch-labs/tensordict.git
pip install git+https://github.com/pytorch/tensordict.git

# smoke test
python -c "import tensordict"
Expand Down
4 changes: 2 additions & 2 deletions .github/unittest/linux_optdeps/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ version="$(python -c "print('.'.join(\"${CUDA_VERSION}\".split('.')[:2]))")"
git submodule sync && git submodule update --init --recursive

printf "Installing PyTorch with %s\n" "${CU_VERSION}"
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/$CU_VERSION
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/$CU_VERSION

# install tensordict
pip install git+https://github.com/pytorch-labs/tensordict.git
pip install git+https://github.com/pytorch/tensordict.git

# smoke test
python -c "import functorch"
Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/windows_optdepts/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fi
#python -m pip install pip --upgrade

# install tensordict
pip3 install git+https://github.com/pytorch-labs/tensordict
pip3 install git+https://github.com/pytorch/tensordict

# smoke test
python -c """
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Setup Environment
run: |
python -m pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
python -m pip install git+https://github.com/pytorch-labs/tensordict
python -m pip install git+https://github.com/pytorch/tensordict
python setup.py develop
python -m pip install pytest pytest-benchmark
python -m pip install dm_control
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
- name: Setup Environment
run: |
python3 -m pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu118
python3 -m pip install git+https://github.com/pytorch-labs/tensordict
python3 -m pip install git+https://github.com/pytorch/tensordict
python3 setup.py develop
python3 -m pip install pytest pytest-benchmark
python3 -m pip install dm_control
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/benchmarks_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Setup Environment
run: |
python -m pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
python -m pip install git+https://github.com/pytorch-labs/tensordict
python -m pip install git+https://github.com/pytorch/tensordict
python setup.py develop
python -m pip install pytest pytest-benchmark
python -m pip install dm_control
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
- name: Setup Environment
run: |
python3 -m pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu118
python3 -m pip install git+https://github.com/pytorch-labs/tensordict
python3 -m pip install git+https://github.com/pytorch/tensordict
python3 setup.py develop
python3 -m pip install pytest pytest-benchmark
python3 -m pip install dm_control
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
#pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu118 --quiet --root-user-action=ignore
- name: Install tensordict
run: |
pip3 install git+https://github.com/pytorch-labs/tensordict.git --quiet --root-user-action=ignore
pip3 install git+https://github.com/pytorch/tensordict.git --quiet --root-user-action=ignore
- name: Install TorchRL
run: |
python3 setup.py develop
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
apt-get update && apt-get install -y rsync
- name: Pull TensorDict docs
run: |
git clone --branch gh-pages https://github.com/pytorch-labs/tensordict.git docs/_local_build/tensordict
git clone --branch gh-pages https://github.com/pytorch/tensordict.git docs/_local_build/tensordict
rm -rf docs/_local_build/tensordict/.git
- name: Get output time
run: echo "The time was ${{ steps.build.outputs.time }}"
Expand Down
Loading

0 comments on commit bf264e0

Please sign in to comment.