mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-06-19 15:52:08 +00:00
commenting out Python part for TensorRT installation
This commit is contained in:
parent
805e584b92
commit
3db1be412c
@ -75,8 +75,8 @@ install_centos_requirements() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
install_tensorrt() {
|
install_tensorrt() {
|
||||||
PY_VERSION=$(python3 -c 'import sys; print(".".join(map(str, sys.version_info[0:2])))')
|
#PY_VERSION=$(python3 -c 'import sys; print(".".join(map(str, sys.version_info[0:2])))')
|
||||||
PARSED_PY_VERSION=$(echo "${PY_VERSION//./}")
|
#PARSED_PY_VERSION=$(echo "${PY_VERSION//./}")
|
||||||
TRT_CUDA_VERSION="12.4"
|
TRT_CUDA_VERSION="12.4"
|
||||||
|
|
||||||
if [ -z "$RELEASE_URL_TRT" ];then
|
if [ -z "$RELEASE_URL_TRT" ];then
|
||||||
@ -91,7 +91,7 @@ install_tensorrt() {
|
|||||||
wget --no-verbose ${RELEASE_URL_TRT} -O /tmp/TensorRT.tar
|
wget --no-verbose ${RELEASE_URL_TRT} -O /tmp/TensorRT.tar
|
||||||
tar -xf /tmp/TensorRT.tar -C /usr/local/
|
tar -xf /tmp/TensorRT.tar -C /usr/local/
|
||||||
mv /usr/local/TensorRT-${TRT_VER} /usr/local/tensorrt
|
mv /usr/local/TensorRT-${TRT_VER} /usr/local/tensorrt
|
||||||
pip3 install /usr/local/tensorrt/python/tensorrt-*-cp${PARSED_PY_VERSION}-*.whl
|
# pip3 install /usr/local/tensorrt/python/tensorrt-*-cp${PARSED_PY_VERSION}-*.whl
|
||||||
rm -rf /tmp/TensorRT.tar
|
rm -rf /tmp/TensorRT.tar
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user