mirror of
https://github.com/linuxserver/docker-piper.git
synced 2026-03-16 00:01:56 +08:00
Add all the other nvidia libs needed for onnx GPU support
This commit is contained in:
parent
d9a09878f4
commit
f5b09b1d2d
@ -30,7 +30,11 @@ RUN \
|
||||
wheel && \
|
||||
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ \
|
||||
nvidia-cublas-cu12 \
|
||||
nvidia-cuda-nvrtc-cu12 \
|
||||
nvidia-cuda-runtime-cu12 \
|
||||
"nvidia-cudnn-cu12>=9.0,<10.0" \
|
||||
nvidia-cufft-cu12 \
|
||||
nvidia-curand-cu12 \
|
||||
onnxruntime-gpu \
|
||||
"wyoming-piper==${PIPER_VERSION}" && \
|
||||
if [ -z ${PIPER_BIN_VERSION+x} ]; then \
|
||||
|
||||
@ -1,6 +1,16 @@
|
||||
#!/command/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
NVIDIA_PACKAGE_DIR="/lsiopy/lib/python3.12/site-packages/nvidia"
|
||||
|
||||
for dir in "${NVIDIA_PACKAGE_DIR}"/*; do
|
||||
if [ -d "$dir/lib" ]; then
|
||||
export LD_LIBRARY_PATH="$dir/lib:$LD_LIBRARY_PATH"
|
||||
fi
|
||||
done
|
||||
|
||||
LD_LIBRARY_PATH="/lsiopy/lib/python3.12/site-packages/onnxruntime/capi:$LD_LIBRARY_PATH"
|
||||
|
||||
exec \
|
||||
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 10200" \
|
||||
s6-setuidgid abc python3 -m wyoming_piper \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user