Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Fix broken workflows #2428

Merged
merged 8 commits into from
Sep 10, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
amend
vmoens committed Sep 10, 2024
commit 60a93e530672e1bc329dde91534ac3eb9177b8ec
1 change: 1 addition & 0 deletions .github/unittest/linux_libs/scripts_gym/batch_scripts.sh
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@
DIR="$(cd "$(dirname "$0")" && pwd)"

set -e
set -v

eval "$(./conda/bin/conda shell.bash hook)"
conda activate ./env
4 changes: 2 additions & 2 deletions .github/unittest/linux_libs/scripts_gym/install.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@ unset PYTORCH_VERSION
apt-get update && apt-get install -y git wget gcc g++

set -e
set -v

eval "$(./conda/bin/conda shell.bash hook)"
conda activate ./env
@@ -39,12 +40,11 @@ printf "Installing PyTorch with %s\n" "${CU_VERSION}"
if [ "${CU_VERSION:-}" == cpu ] ; then
conda install pytorch==2.0 torchvision==0.15 cpuonly -c pytorch -y
else
conda install pytorch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 pytorch-cuda=11.8 -c pytorch -c nvidia -y
conda install pytorch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 pytorch-cuda=11.8 -c pytorch numpy<2.0 numpy-base<2.0 -c nvidia -y
fi

# Solving circular import: https://stackoverflow.com/questions/75501048/how-to-fix-attributeerror-partially-initialized-module-charset-normalizer-has
pip install -U charset-normalizer
pip install "numpy<2.0"

# install tensordict
if [[ "$RELEASE" == 0 ]]; then
2 changes: 1 addition & 1 deletion .github/workflows/test-linux-habitat.yml
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ jobs:
tests:
strategy:
matrix:
python_version: ["3.9"]
python_version: ["3.10"]
cuda_arch_version: ["12.1"]
fail-fast: false
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main