"git@developer.sourcefind.cn:change/sglang.git" did not exist on "a437aa99870d805ac59de74b3962088b3a916bf2"
Unverified Commit 4b61ae3f authored by moto's avatar moto Committed by GitHub
Browse files

Revert CI hot fix (#1614)

parent 9b5a2704
...@@ -23,34 +23,20 @@ eval "$("${conda_dir}/bin/conda" shell.bash hook)" ...@@ -23,34 +23,20 @@ eval "$("${conda_dir}/bin/conda" shell.bash hook)"
conda activate "${env_dir}" conda activate "${env_dir}"
# 1. Install PyTorch # 1. Install PyTorch
# [2021/06/22 Temporary workaround] Disabling the original installation if [ -z "${CUDA_VERSION:-}" ] ; then
# The orignal, conda-based instartion is working for GPUs, but not for CPUs if [ "${os}" == MacOSX ] ; then
# For CPUs we use pip-based installation cudatoolkit=''
# if [ -z "${CUDA_VERSION:-}" ] ; then else
# if [ "${os}" == MacOSX ] ; then cudatoolkit="cpuonly"
# cudatoolkit='' fi
# else
# cudatoolkit="cpuonly"
# fi
# else
# version="$(python -c "print('.'.join(\"${CUDA_VERSION}\".split('.')[:2]))")"
# cudatoolkit="cudatoolkit=${version}"
# fi
# printf "Installing PyTorch with %s\n" "${cudatoolkit}"
# (
# set -x
# conda install ${CONDA_CHANNEL_FLAGS:-} -y -c "pytorch-${UPLOAD_CHANNEL}" "pytorch-${UPLOAD_CHANNEL}::pytorch" ${cudatoolkit}
# )
if [ "${os}" == MacOSX ] || [ -z "${CUDA_VERSION:-}" ] ; then
device="cpu"
else else
device=cu"$(python -c "print(''.join(\"${CUDA_VERSION}\".split('.')[:2]))")" version="$(python -c "print('.'.join(\"${CUDA_VERSION}\".split('.')[:2]))")"
cudatoolkit="cudatoolkit=${version}"
fi fi
printf "Installing PyTorch with %s\n" "${device}" printf "Installing PyTorch with %s\n" "${cudatoolkit}"
( (
set -x set -x
pip install --pre torch==1.10.0.dev20210618 -f "https://download.pytorch.org/whl/nightly/${device}/torch_nightly.html" conda install ${CONDA_CHANNEL_FLAGS:-} -y -c "pytorch-${UPLOAD_CHANNEL}" "pytorch-${UPLOAD_CHANNEL}::pytorch" ${cudatoolkit}
) )
# 2. Install torchaudio # 2. Install torchaudio
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment