Skip to content

Commit 157de34

Browse files
committed
Update
[ghstack-poisoned]
2 parents 3121a93 + 7574daa commit 157de34

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+34075
-1647
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export DISPLAY=:0
8080
export SDL_VIDEODRIVER=dummy
8181

8282
# legacy from bash scripts: remove?
83-
conda env config vars set MUJOCO_GL=$MUJOCO_GL PYOPENGL_PLATFORM=$MUJOCO_GL DISPLAY=:0 SDL_VIDEODRIVER=dummy LAZY_LEGACY_OP=False RL_LOGGING_LEVEL=DEBUG
83+
conda env config vars set MUJOCO_GL=$MUJOCO_GL PYOPENGL_PLATFORM=$MUJOCO_GL DISPLAY=:0 SDL_VIDEODRIVER=dummy LAZY_LEGACY_OP=False RL_LOGGING_LEVEL=DEBUG TOKENIZERS_PARALLELISM=true
8484

8585
pip3 install pip --upgrade
8686
pip install virtualenv

.github/unittest/linux_distributed/scripts/setup_env.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ conda env config vars set MUJOCO_PY_MUJOCO_PATH=$root_dir/.mujoco/mujoco210 \
6969
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$root_dir/.mujoco/mujoco210/bin \
7070
SDL_VIDEODRIVER=dummy \
7171
MUJOCO_GL=$PRIVATE_MUJOCO_GL \
72-
PYOPENGL_PLATFORM=$PRIVATE_MUJOCO_GL
72+
PYOPENGL_PLATFORM=$PRIVATE_MUJOCO_GL \
73+
TOKENIZERS_PARALLELISM=true
7374

7475
# Software rendering requires GLX and OSMesa.
7576
if [ $PRIVATE_MUJOCO_GL == 'egl' ] || [ $PRIVATE_MUJOCO_GL == 'osmesa' ] ; then

.github/unittest/linux_libs/scripts_chess/environment.yml

+3
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ dependencies:
1818
- scipy
1919
- hydra-core
2020
- chess
21+
- transformers
22+
- cairosvg
23+
- pycairo

.github/unittest/linux_libs/scripts_chess/install.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ git submodule sync && git submodule update --init --recursive
2828
printf "Installing PyTorch with cu121"
2929
if [[ "$TORCH_VERSION" == "nightly" ]]; then
3030
if [ "${CU_VERSION:-}" == cpu ] ; then
31-
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu -U
31+
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu -U
3232
else
33-
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121 -U
33+
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu121 -U
3434
fi
3535
elif [[ "$TORCH_VERSION" == "stable" ]]; then
3636
if [ "${CU_VERSION:-}" == cpu ] ; then
37-
pip3 install torch --index-url https://download.pytorch.org/whl/cpu
37+
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cpu
3838
else
39-
pip3 install torch --index-url https://download.pytorch.org/whl/cu121
39+
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu121
4040
fi
4141
else
4242
printf "Failed to install pytorch"

.github/unittest/linux_libs/scripts_chess/setup_env.sh

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ set -e
99
set -v
1010

1111
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
12+
yum install cairo-devel -y
13+
1214
# Avoid error: "fatal: unsafe repository"
1315

1416
git config --global --add safe.directory '*'
@@ -46,4 +48,7 @@ cat "${this_dir}/environment.yml"
4648

4749
pip install pip --upgrade
4850

51+
conda install anaconda::cmake -y
52+
conda install conda-forge::cairo -y
53+
4954
conda env update --file "${this_dir}/environment.yml" --prune

.github/unittest/linux_libs/scripts_d4rl/setup_env.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ conda env config vars set \
9292
MUJOCO_PY_MJKEY_PATH=$root_dir/.mujoco/mjkey.txt \
9393
SDL_VIDEODRIVER=dummy \
9494
MUJOCO_GL=$PRIVATE_MUJOCO_GL \
95-
PYOPENGL_PLATFORM=$PRIVATE_MUJOCO_GL
95+
PYOPENGL_PLATFORM=$PRIVATE_MUJOCO_GL \
96+
TOKENIZERS_PARALLELISM=true
9697

9798
conda env update --file "${this_dir}/environment.yml" --prune

.github/unittest/linux_libs/scripts_gym/setup_env.sh

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ conda env config vars set \
8080
MUJOCO_PY_MJKEY_PATH=${root_dir}/mujoco-py/mujoco_py/binaries/mjkey.txt \
8181
MUJOCO_PY_MUJOCO_PATH=${root_dir}/mujoco-py/mujoco_py/binaries/linux/mujoco210 \
8282
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/pytorch/rl/mujoco-py/mujoco_py/binaries/linux/mujoco210/bin
83+
TOKENIZERS_PARALLELISM=true
8384
# LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/circleci/project/mujoco-py/mujoco_py/binaries/linux/mujoco210/bin
8485

8586
# make env variables apparent

.github/unittest/linux_libs/scripts_habitat/run_test.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ conda activate ./env
1010
# https://stackoverflow.com/questions/72540359/glibcxx-3-4-30-not-found-for-librosa-in-conda-virtual-environment-after-tryin
1111
#conda install -y -c conda-forge gcc=12.1.0
1212
conda install -y -c conda-forge libstdcxx-ng=12
13-
conda env config vars set LD_PRELOAD=$LD_PRELOAD:$STDC_LOC
13+
conda env config vars set LD_PRELOAD=$LD_PRELOAD:$STDC_LOC TOKENIZERS_PARALLELISM=true
1414

1515
## find libstdc
1616
STDC_LOC=$(find conda/ -name "libstdc++.so.6" | head -1)
@@ -36,7 +36,7 @@ export MKL_THREADING_LAYER=GNU
3636
#wget https://github.com/openai/mujoco-py/blob/master/vendor/10_nvidia.json
3737
#mv 10_nvidia.json /usr/share/glvnd/egl_vendor.d/10_nvidia.json
3838

39-
conda env config vars set MAGNUM_LOG=quiet HABITAT_SIM_LOG=quiet
39+
conda env config vars set MAGNUM_LOG=quiet HABITAT_SIM_LOG=quiet TOKENIZERS_PARALLELISM=true
4040

4141
conda deactivate && conda activate ./env
4242

.github/unittest/linux_libs/scripts_habitat/setup_env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fi
4141
conda activate "${env_dir}"
4242

4343
# set debug variables
44-
conda env config vars set MAGNUM_LOG=debug HABITAT_SIM_LOG=debug
44+
conda env config vars set MAGNUM_LOG=debug HABITAT_SIM_LOG=debug TOKENIZERS_PARALLELISM=true
4545
conda deactivate && conda activate "${env_dir}"
4646

4747
pip3 install "cython<3"

.github/unittest/linux_libs/scripts_minari/environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ dependencies:
1717
- pyyaml
1818
- scipy
1919
- hydra-core
20-
- minari[gcs,hdf5]
20+
- minari[gcs,hdf5,hf]
2121
- gymnasium<1.0.0

.github/unittest/linux_libs/scripts_robohive/setup_env.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ conda env config vars set \
6767
PYOPENGL_PLATFORM=egl \
6868
NVIDIA_PATH=/usr/src/nvidia-470.63.01 \
6969
sim_backend=MUJOCO \
70-
LAZY_LEGACY_OP=False
70+
LAZY_LEGACY_OP=False \
71+
TOKENIZERS_PARALLELISM=true
7172

7273
# make env variables apparent
7374
conda deactivate && conda activate "${env_dir}"

.github/unittest/linux_olddeps/scripts_gym_0_13/environment.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ channels:
22
- pytorch
33
- defaults
44
dependencies:
5-
- pip
5+
- pip<25.0
66
- protobuf
77
- pip:
88
- hypothesis
@@ -21,7 +21,6 @@ dependencies:
2121
- pyyaml
2222
- scipy
2323
- hydra-core
24-
- dm_control -e git+https://github.com/deepmind/dm_control.git@c053360edea6170acfd9c8f65446703307d9d352#egg={dm_control}
2524
- mujoco
2625
- patchelf
2726
- pyopengl==3.1.4

.github/unittest/linux_olddeps/scripts_gym_0_13/run_test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export MKL_THREADING_LAYER=GNU
2222
export BATCHED_PIPE_TIMEOUT=60
2323

2424
python .github/unittest/helpers/coverage_run_parallel.py -m pytest test/smoke_test.py -v --durations 200
25-
python .github/unittest/helpers/coverage_run_parallel.py -m pytest test/smoke_test_deps.py -v --durations 200 -k 'test_gym or test_dm_control_pixels or test_dm_control'
25+
python .github/unittest/helpers/coverage_run_parallel.py -m pytest test/smoke_test_deps.py -v --durations 200 -k 'test_gym'
2626

2727
export DISPLAY=':99.0'
2828
Xvfb :99 -screen 0 1400x900x24 > /dev/null 2>&1 &

.github/unittest/linux_olddeps/scripts_gym_0_13/setup_env.sh

+9-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,13 @@ cp mjkey.txt mujoco_py/binaries/
6262
pip install -e .
6363
cd ..
6464

65-
#cd $this_dir
65+
# OLD DM_CONTROL NOT SUPPORTED ANYMORE
66+
# # Install dm_control
67+
# git clone https://github.com/deepmind/dm_control
68+
# cd dm_control
69+
# git checkout c053360edea6170acfd9c8f65446703307d9d352
70+
# pip install -e .
71+
# cd ..
6672

6773
# 4. Install Conda dependencies
6874
printf "* Installing dependencies (except PyTorch)\n"
@@ -79,7 +85,8 @@ conda env config vars set \
7985
NVIDIA_PATH=/usr/src/nvidia-470.63.01 \
8086
MUJOCO_PY_MJKEY_PATH=${root_dir}/mujoco-py/mujoco_py/binaries/mjkey.txt \
8187
MUJOCO_PY_MUJOCO_PATH=${root_dir}/mujoco-py/mujoco_py/binaries/linux/mujoco210 \
82-
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/circleci/project/mujoco-py/mujoco_py/binaries/linux/mujoco210/bin
88+
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/circleci/project/mujoco-py/mujoco_py/binaries/linux/mujoco210/bin \
89+
TOKENIZERS_PARALLELISM=true
8390

8491
# make env variables apparent
8592
conda deactivate && conda activate "${env_dir}"

.github/unittest/linux_sota/scripts/run_all.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ conda env config vars set MUJOCO_PY_MUJOCO_PATH=$root_dir/.mujoco/mujoco210 \
8383
SDL_VIDEODRIVER=dummy \
8484
MUJOCO_GL=egl \
8585
PYOPENGL_PLATFORM=egl \
86-
BATCHED_PIPE_TIMEOUT=60
86+
BATCHED_PIPE_TIMEOUT=60 \
87+
TOKENIZERS_PARALLELISM=true
8788

8889
pip install pip --upgrade
8990

@@ -100,7 +101,7 @@ pip install git+https://github.com/Farama-Foundation/d4rl@master#egg=d4rl
100101
conda install -y -c conda-forge libstdcxx-ng=12
101102
## find libstdc
102103
STDC_LOC=$(find conda/ -name "libstdc++.so.6" | head -1)
103-
conda env config vars set LD_PRELOAD=${root_dir}/$STDC_LOC
104+
conda env config vars set LD_PRELOAD=${root_dir}/$STDC_LOC TOKENIZERS_PARALLELISM=true
104105

105106
# compile mujoco-py (bc it's done at runtime for whatever reason someone thought it was a good idea)
106107
python -c """import gym;import d4rl"""

.github/workflows/benchmarks.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
run: |
3030
echo "Action triggered by ${{ github.event.pull_request.html_url }}"
3131
- name: Checkout
32-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
3333
with:
3434
fetch-depth: 50 # this is to make sure we obtain the target base commit
3535
- name: Python Setup
@@ -50,6 +50,7 @@ jobs:
5050
5151
cd benchmarks/
5252
export TORCHDYNAMO_INLINE_INBUILT_NN_MODULES=1
53+
export COMPOSITE_LP_AGGREGATE=0
5354
export TD_GET_DEFAULTS_TO_NONE=1
5455
python3 -m pytest -vvv --rank 0 --benchmark-json output.json --ignore test_collectors_benchmark.py
5556
- name: Store benchmark results
@@ -84,7 +85,7 @@ jobs:
8485
- name: Check ldd --version
8586
run: ldd --version
8687
- name: Checkout
87-
uses: actions/checkout@v3
88+
uses: actions/checkout@v4
8889
with:
8990
fetch-depth: 50 # this is to make sure we obtain the target base commit
9091
- name: Python Setup
@@ -131,6 +132,7 @@ jobs:
131132
132133
cd benchmarks/
133134
export TORCHDYNAMO_INLINE_INBUILT_NN_MODULES=1
135+
export COMPOSITE_LP_AGGREGATE=0
134136
export TD_GET_DEFAULTS_TO_NONE=1
135137
python3 -m pytest -vvv --rank 0 --benchmark-json output.json --ignore test_collectors_benchmark.py
136138
- name: Store benchmark results

.github/workflows/benchmarks_pr.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
run: |
2121
echo "Action triggered by ${{ github.event.pull_request.html_url }}"
2222
- name: Checkout
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424
with:
2525
fetch-depth: 50 # this is to make sure we obtain the target base commit
2626
- name: Python Setup
@@ -48,6 +48,7 @@ jobs:
4848
4949
cd benchmarks/
5050
export TORCHDYNAMO_INLINE_INBUILT_NN_MODULES=1
51+
export COMPOSITE_LP_AGGREGATE=0
5152
export TD_GET_DEFAULTS_TO_NONE=1
5253
RUN_BENCHMARK="python3 -m pytest -vvv --rank 0 --ignore test_collectors_benchmark.py --benchmark-json "
5354
git checkout ${{ github.event.pull_request.base.sha }}
@@ -93,7 +94,7 @@ jobs:
9394
- name: Check ldd --version
9495
run: ldd --version
9596
- name: Checkout
96-
uses: actions/checkout@v3
97+
uses: actions/checkout@v4
9798
with:
9899
fetch-depth: 50 # this is to make sure we obtain the target base commit
99100
- name: Python Setup
@@ -141,6 +142,7 @@ jobs:
141142
142143
cd benchmarks/
143144
export TORCHDYNAMO_INLINE_INBUILT_NN_MODULES=1
145+
export COMPOSITE_LP_AGGREGATE=0
144146
export TD_GET_DEFAULTS_TO_NONE=1
145147
RUN_BENCHMARK="python3 -m pytest -vvv --rank 0 --ignore test_collectors_benchmark.py --benchmark-json "
146148
git checkout ${{ github.event.pull_request.base.sha }}

.github/workflows/docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
strategy:
2828
matrix:
2929
python_version: ["3.10"]
30-
cuda_arch_version: ["12.1"]
30+
cuda_arch_version: ["12.4"]
3131
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
3232
with:
3333
repository: pytorch/rl

.github/workflows/test-linux-habitat.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
strategy:
2525
matrix:
2626
python_version: ["3.9"]
27-
cuda_arch_version: ["12.1"]
27+
cuda_arch_version: ["12.4"]
2828
fail-fast: false
2929
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
3030
with:

0 commit comments

Comments
 (0)