Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Oct 22, 2024
1 parent 9be6bdf commit d0287be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/unittest/linux_libs/scripts_rlhf/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ git submodule sync && git submodule update --init --recursive
printf "Installing PyTorch with cu121"
if [[ "$TORCH_VERSION" == "nightly" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install --pre torch numpy==1.26.3 --index-url https://download.pytorch.org/whl/nightly/cpu -U
pip3 install --pre torch "numpy<2.0.0" --index-url https://download.pytorch.org/whl/nightly/cpu -U
else
pip3 install --pre torch numpy==1.26.3 --index-url https://download.pytorch.org/whl/nightly/cu121 -U
pip3 install --pre torch "numpy<2.0.0" --index-url https://download.pytorch.org/whl/nightly/cu121 -U
fi
elif [[ "$TORCH_VERSION" == "stable" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install torch numpy==1.26.3 --index-url https://download.pytorch.org/whl/cpu
pip3 install torch "numpy<2.0.0" --index-url https://download.pytorch.org/whl/cpu
else
pip3 install torch numpy==1.26.3 --index-url https://download.pytorch.org/whl/cu121
pip3 install torch "numpy<2.0.0" --index-url https://download.pytorch.org/whl/cu121
fi
else
printf "Failed to install pytorch"
Expand Down

0 comments on commit d0287be

Please sign in to comment.