Skip to content

Commit 5244a90

Browse files
author
Vincent Moens
committed
[CI] Fix h5py dependency in olddeps
ghstack-source-id: 87936dc Pull Request resolved: #2513
1 parent 1431ae5 commit 5244a90

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ git submodule sync && git submodule update --init --recursive
3131
printf "Installing PyTorch with cu121"
3232
if [[ "$TORCH_VERSION" == "nightly" ]]; then
3333
if [ "${CU_VERSION:-}" == cpu ] ; then
34-
pip3 install --pre torch numpy==1.26.4 --index-url https://download.pytorch.org/whl/nightly/cpu -U
34+
pip3 install --pre torch "numpy<2.0.0" --index-url https://download.pytorch.org/whl/nightly/cpu -U
3535
else
36-
pip3 install --pre torch numpy==1.26.4 --index-url https://download.pytorch.org/whl/nightly/cu121 -U
36+
pip3 install --pre torch "numpy<2.0.0" --index-url https://download.pytorch.org/whl/nightly/cu121 -U
3737
fi
3838
elif [[ "$TORCH_VERSION" == "stable" ]]; then
3939
if [ "${CU_VERSION:-}" == cpu ] ; then
40-
pip3 install torch numpy==1.26.4 --index-url https://download.pytorch.org/whl/cpu
40+
pip3 install torch "numpy<2.0.0" --index-url https://download.pytorch.org/whl/cpu
4141
else
42-
pip3 install torch numpy==1.26.4 --index-url https://download.pytorch.org/whl/cu121
42+
pip3 install torch "numpy<2.0.0" --index-url https://download.pytorch.org/whl/cu121
4343
fi
4444
else
4545
printf "Failed to install pytorch"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ dependencies:
2727
- pyopengl==3.1.4
2828
- ray
2929
- av
30+
- h5py

test/test_cost.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@
157157
pytest.mark.filterwarnings(
158158
"ignore:The current behavior of MLP when not providing `num_cells` is that the number"
159159
),
160+
pytest.mark.filterwarnings(
161+
"ignore:dep_util is Deprecated. Use functions from setuptools instead"
162+
),
160163
]
161164

162165

0 commit comments

Comments
 (0)