Skip to content

Commit bf264e0

Browse files
authored
v0.2.0 branch (#1609)
1 parent fe19cf5 commit bf264e0

File tree

28 files changed

+114
-106
lines changed

28 files changed

+114
-106
lines changed

.github/unittest/linux/scripts/run_all.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ git submodule sync && git submodule update --init --recursive
124124
printf "Installing PyTorch with %s\n" "${CU_VERSION}"
125125
if [[ "$TORCH_VERSION" == "nightly" ]]; then
126126
if [ "${CU_VERSION:-}" == cpu ] ; then
127-
pip3 install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu
127+
pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
128128
else
129-
pip3 install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/$CU_VERSION
129+
pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/$CU_VERSION
130130
fi
131131
elif [[ "$TORCH_VERSION" == "stable" ]]; then
132132
if [ "${CU_VERSION:-}" == cpu ] ; then
@@ -146,7 +146,7 @@ python -c "import functorch"
146146
pip3 install git+https://github.com/pytorch/torchsnapshot
147147

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

151151
printf "* Installing torchrl\n"
152152
python setup.py develop

.github/unittest/linux_distributed/scripts/install.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ git submodule sync && git submodule update --init --recursive
2828

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

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

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

4545
printf "* Installing torchrl\n"
4646
python setup.py develop

.github/unittest/linux_examples/scripts/run_all.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ version="$(python -c "print('.'.join(\"${CUDA_VERSION}\".split('.')[:2]))")"
146146
git submodule sync && git submodule update --init --recursive
147147

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

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

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

160160
printf "* Installing torchrl\n"
161161
python setup.py develop

.github/unittest/linux_libs/scripts_brax/install.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ if [ "${CU_VERSION:-}" == cpu ] ; then
3030
# conda install -y pytorch torchvision cpuonly -c pytorch-nightly
3131
# use pip to install pytorch as conda can frequently pick older release
3232
# conda install -y pytorch cpuonly -c pytorch-nightly
33-
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall --progress-bar off
33+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall --progress-bar off
3434
else
35-
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall --progress-bar off
35+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall --progress-bar off
3636
fi
3737

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

4141
# smoke test
4242
python -c "import functorch;import tensordict"

.github/unittest/linux_libs/scripts_d4rl/install.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ if [ "${CU_VERSION:-}" == cpu ] ; then
3333
# conda install -y pytorch torchvision cpuonly -c pytorch-nightly
3434
# use pip to install pytorch as conda can frequently pick older release
3535
# conda install -y pytorch cpuonly -c pytorch-nightly
36-
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
36+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
3737
else
38-
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
38+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
3939
fi
4040

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

4444
# smoke test
4545
python -c "import functorch;import tensordict"

.github/unittest/linux_libs/scripts_envpool/install.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ git submodule sync && git submodule update --init --recursive
2828

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

3636
# smoke test
3737
python -c "import functorch"
3838

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

4242
printf "* Installing torchrl\n"
4343
python setup.py develop

.github/unittest/linux_libs/scripts_gym/install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fi
4646
pip install -U --force-reinstall charset-normalizer
4747

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

5151
# smoke test
5252
python -c "import tensordict"

.github/unittest/linux_libs/scripts_habitat/install.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ version="$(python -c "print('.'.join(\"${CUDA_VERSION}\".split('.')[:2]))")"
2020
git submodule sync && git submodule update --init --recursive
2121

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

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

2828
# smoke test
2929
python3 -c "import functorch;import tensordict"

.github/unittest/linux_libs/scripts_jumanji/install.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ if [ "${CU_VERSION:-}" == cpu ] ; then
3030
# conda install -y pytorch torchvision cpuonly -c pytorch-nightly
3131
# use pip to install pytorch as conda can frequently pick older release
3232
# conda install -y pytorch cpuonly -c pytorch-nightly
33-
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
33+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
3434
else
35-
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
35+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
3636
fi
3737

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

4141
# smoke test
4242
python -c "import functorch;import tensordict"

.github/unittest/linux_libs/scripts_pettingzoo/install.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ if [ "${CU_VERSION:-}" == cpu ] ; then
3030
# conda install -y pytorch torchvision cpuonly -c pytorch-nightly
3131
# use pip to install pytorch as conda can frequently pick older release
3232
# conda install -y pytorch cpuonly -c pytorch-nightly
33-
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
33+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
3434
else
35-
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
35+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
3636
fi
3737

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

4141
# smoke test
4242
python -c "import tensordict"

.github/unittest/linux_libs/scripts_rlhf/install.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ if [ "${CU_VERSION:-}" == cpu ] ; then
3333
# conda install -y pytorch torchvision cpuonly -c pytorch-nightly
3434
# use pip to install pytorch as conda can frequently pick older release
3535
# conda install -y pytorch cpuonly -c pytorch-nightly
36-
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
36+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
3737
else
38-
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
38+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
3939
fi
4040

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

4444
# smoke test
4545
python -c "import tensordict"

.github/unittest/linux_libs/scripts_robohive/install_and_run_test.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ if [ "${CU_VERSION:-}" == cpu ] ; then
4141
# conda install -y pytorch torchvision cpuonly -c pytorch-nightly
4242
# use pip to install pytorch as conda can frequently pick older release
4343
# conda install -y pytorch cpuonly -c pytorch-nightly
44-
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
44+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
4545
else
46-
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
46+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
4747
fi
4848

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

5252
# smoke test
5353
python -c "import tensordict"

.github/unittest/linux_libs/scripts_sklearn/install.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ if [ "${CU_VERSION:-}" == cpu ] ; then
3333
# conda install -y pytorch torchvision cpuonly -c pytorch-nightly
3434
# use pip to install pytorch as conda can frequently pick older release
3535
# conda install -y pytorch cpuonly -c pytorch-nightly
36-
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
36+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
3737
else
38-
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
38+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
3939
fi
4040

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

4444
# smoke test
4545
python -c "import functorch;import tensordict"

.github/unittest/linux_libs/scripts_smacv2/install.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ if [ "${CU_VERSION:-}" == cpu ] ; then
3030
# conda install -y pytorch torchvision cpuonly -c pytorch-nightly
3131
# use pip to install pytorch as conda can frequently pick older release
3232
# conda install -y pytorch cpuonly -c pytorch-nightly
33-
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
33+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
3434
else
35-
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
35+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
3636
fi
3737

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

4141
# smoke test
4242
python -c "import tensordict"

.github/unittest/linux_libs/scripts_vmas/install.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ if [ "${CU_VERSION:-}" == cpu ] ; then
3030
# conda install -y pytorch torchvision cpuonly -c pytorch-nightly
3131
# use pip to install pytorch as conda can frequently pick older release
3232
# conda install -y pytorch cpuonly -c pytorch-nightly
33-
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
33+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
3434
else
35-
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
35+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu116 --force-reinstall
3636
fi
3737

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

4141
# smoke test
4242
python -c "import tensordict"

.github/unittest/linux_olddeps/scripts_gym_0_13/install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fi
4646
pip install -U --force-reinstall charset-normalizer
4747

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

5151
# smoke test
5252
python -c "import tensordict"

.github/unittest/linux_optdeps/scripts/install.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ version="$(python -c "print('.'.join(\"${CUDA_VERSION}\".split('.')[:2]))")"
2020
git submodule sync && git submodule update --init --recursive
2121

2222
printf "Installing PyTorch with %s\n" "${CU_VERSION}"
23-
pip3 install --pre torch --extra-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
2424

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

2828
# smoke test
2929
python -c "import functorch"

.github/unittest/windows_optdepts/scripts/install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fi
5757
#python -m pip install pip --upgrade
5858

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

6262
# smoke test
6363
python -c """

.github/workflows/benchmarks.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Setup Environment
3232
run: |
3333
python -m pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
34-
python -m pip install git+https://github.com/pytorch-labs/tensordict
34+
python -m pip install git+https://github.com/pytorch/tensordict
3535
python setup.py develop
3636
python -m pip install pytest pytest-benchmark
3737
python -m pip install dm_control
@@ -94,7 +94,7 @@ jobs:
9494
- name: Setup Environment
9595
run: |
9696
python3 -m pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu118
97-
python3 -m pip install git+https://github.com/pytorch-labs/tensordict
97+
python3 -m pip install git+https://github.com/pytorch/tensordict
9898
python3 setup.py develop
9999
python3 -m pip install pytest pytest-benchmark
100100
python3 -m pip install dm_control

.github/workflows/benchmarks_pr.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Setup Environment
3131
run: |
3232
python -m pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
33-
python -m pip install git+https://github.com/pytorch-labs/tensordict
33+
python -m pip install git+https://github.com/pytorch/tensordict
3434
python setup.py develop
3535
python -m pip install pytest pytest-benchmark
3636
python -m pip install dm_control
@@ -105,7 +105,7 @@ jobs:
105105
- name: Setup Environment
106106
run: |
107107
python3 -m pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu118
108-
python3 -m pip install git+https://github.com/pytorch-labs/tensordict
108+
python3 -m pip install git+https://github.com/pytorch/tensordict
109109
python3 setup.py develop
110110
python3 -m pip install pytest pytest-benchmark
111111
python3 -m pip install dm_control

.github/workflows/docs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
#pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu118 --quiet --root-user-action=ignore
6161
- name: Install tensordict
6262
run: |
63-
pip3 install git+https://github.com/pytorch-labs/tensordict.git --quiet --root-user-action=ignore
63+
pip3 install git+https://github.com/pytorch/tensordict.git --quiet --root-user-action=ignore
6464
- name: Install TorchRL
6565
run: |
6666
python3 setup.py develop
@@ -88,7 +88,7 @@ jobs:
8888
apt-get update && apt-get install -y rsync
8989
- name: Pull TensorDict docs
9090
run: |
91-
git clone --branch gh-pages https://github.com/pytorch-labs/tensordict.git docs/_local_build/tensordict
91+
git clone --branch gh-pages https://github.com/pytorch/tensordict.git docs/_local_build/tensordict
9292
rm -rf docs/_local_build/tensordict/.git
9393
- name: Get output time
9494
run: echo "The time was ${{ steps.build.outputs.time }}"

0 commit comments

Comments
 (0)