Skip to content

Commit 760312c

Browse files
committed
Add initial GPU support
1 parent 3e58039 commit 760312c

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

openwakeword/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:bullseye-slim
1+
FROM nvidia/cuda:12.1.1-cudnn8-runtime-ubuntu22.04
22
ARG TARGETARCH
33
ARG TARGETVARIANT
44

piper/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:bullseye-slim
1+
FROM nvidia/cuda:12.1.1-cudnn8-runtime-ubuntu22.04
22
ARG TARGETARCH
33
ARG TARGETVARIANT
44

@@ -17,6 +17,7 @@ RUN \
1717
&& pip3 install --no-cache-dir -U \
1818
setuptools \
1919
wheel \
20+
onnxruntime-gpu \
2021
&& pip3 install --no-cache-dir \
2122
"wyoming-piper==${PIPER_LIB_VERSION}" \
2223
\

piper/run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22
python3 -m wyoming_piper \
33
--piper '/usr/share/piper/piper' \
4+
--cuda \
45
--uri 'tcp://0.0.0.0:10200' \
56
--data-dir /data \
67
--download-dir /data "$@"

whisper/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:bullseye-slim
1+
FROM nvidia/cuda:11.2.2-cudnn8-runtime-ubuntu20.04
22

33
# Install Whisper
44
WORKDIR /usr/src

0 commit comments

Comments
 (0)