Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Torchaudio
Commits
4b61ae3f
"git@developer.sourcefind.cn:change/sglang.git" did not exist on "a437aa99870d805ac59de74b3962088b3a916bf2"
Unverified
Commit
4b61ae3f
authored
Jun 28, 2021
by
moto
Committed by
GitHub
Jun 28, 2021
Browse files
Revert CI hot fix (#1614)
parent
9b5a2704
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
24 deletions
+10
-24
.circleci/unittest/linux/scripts/install.sh
.circleci/unittest/linux/scripts/install.sh
+10
-24
No files found.
.circleci/unittest/linux/scripts/install.sh
View file @
4b61ae3f
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment