File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,10 @@ RUN ESPEAK_DATA=/build/lib/Linux-$(uname -m)/piper_phonemize/lib/espeak-ng-data
108108FROM requirements
109109
110110ARG FFMPEG
111+ ARG BUILD_TYPE
112+ ARG TARGETARCH
111113
114+ ENV BUILD_TYPE=${BUILD_TYPE}
112115ENV REBUILD=false
113116ENV HEALTHCHECK_ENDPOINT=http://localhost:8080/readyz
114117
@@ -126,7 +129,10 @@ WORKDIR /build
126129COPY . .
127130RUN make prepare-sources
128131COPY --from=builder /build/local-ai ./
129-
132+ # To resolve exllama import error
133+ RUN if [ "${BUILD_TYPE}" = "cublas" ] && [ "${TARGETARCH:-$(go env GOARCH)}" = "amd64" ]; then \
134+ cp -rfv /usr/local/lib/python3.9/dist-packages/exllama extra/grpc/exllama/;\
135+ fi
130136# Define the health check command
131137HEALTHCHECK --interval=1m --timeout=10m --retries=10 \
132138 CMD curl -f $HEALTHCHECK_ENDPOINT || exit 1
You can’t perform that action at this time.
0 commit comments