mirror of
https://github.com/NVIDIA/TensorRT-LLM.git
synced 2026-01-13 22:18:36 +08:00
Signed-off-by: Iman Tabrizian <10105175+tabrizian@users.noreply.github.com> Signed-off-by: Zhanrui Sun <184402041+ZhanruiSunCh@users.noreply.github.com> Co-authored-by: Zhanrui Sun <184402041+ZhanruiSunCh@users.noreply.github.com>
30 lines
629 B
Bash
30 lines
629 B
Bash
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
CUDA_VER="13"
|
|
|
|
install_triton_deps() {
|
|
apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
pigz \
|
|
libxml2-dev \
|
|
libre2-dev \
|
|
libnuma-dev \
|
|
python3-build \
|
|
libb64-dev \
|
|
libarchive-dev \
|
|
datacenter-gpu-manager-4-cuda${CUDA_VER} \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
}
|
|
|
|
# Install Triton only if base image is Ubuntu
|
|
ID=$(grep -oP '(?<=^ID=).+' /etc/os-release | tr -d '"')
|
|
if [ "$ID" == "ubuntu" ]; then
|
|
install_triton_deps
|
|
else
|
|
rm -rf /opt/tritonserver
|
|
echo "Skip Triton installation for non-Ubuntu base image"
|
|
fi
|