We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64e66dd commit 7aa377bCopy full SHA for 7aa377b
Dockerfile
@@ -301,7 +301,13 @@ COPY .git .
301
RUN make prepare
302
303
## Build the binary
304
-RUN make build
+## If we're on arm64 AND using cublas/hipblas, skip some of the llama-compat backends to save space
305
+## Otherwise just run the normal build
306
+RUN if [ "${TARGETARCH}" = "arm64" ] && ( [ "${BUILD_TYPE}" = "cublas" ] || [ "${BUILD_TYPE}" = "hipblas" ] ); then \
307
+ SKIP_GRPC_BACKEND="backend-assets/grpc/llama-cpp-avx512 backend-assets/grpc/llama-cpp-avx backend-assets/grpc/llama-cpp-avx2" make build; \
308
+ else \
309
+ make build; \
310
+ fi
311
312
RUN if [ ! -d "/build/sources/go-piper/piper-phonemize/pi/lib/" ]; then \
313
mkdir -p /build/sources/go-piper/piper-phonemize/pi/lib/ \
0 commit comments