Skip to content

Commit 4de7f55

Browse files
committed
Make REBUILD=false default behavior
Add notice to documentation Signed-off-by: mudler <[email protected]>
1 parent def23e4 commit 4de7f55

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ MODELS_PATH=/models
2626
## Specify a build type. Available: cublas, openblas, clblas.
2727
# BUILD_TYPE=openblas
2828

29-
## Uncomment and set to false to disable rebuilding from source
30-
# REBUILD=false
29+
## Uncomment and set to true to enable rebuilding from source
30+
# REBUILD=true
3131

3232
## Enable go tags, available: stablediffusion, tts
3333
## stablediffusion: image generation with stablediffusion

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ FROM requirements
9494

9595
ARG FFMPEG
9696

97-
ENV REBUILD=true
97+
ENV REBUILD=false
9898
ENV HEALTHCHECK_ENDPOINT=http://localhost:8080/readyz
9999

100100
# Add FFmpeg

entrypoint.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ cd /build
66
if [ "$REBUILD" != "false" ]; then
77
rm -rf ./local-ai
88
ESPEAK_DATA=/build/lib/Linux-$(uname -m)/piper_phonemize/lib/espeak-ng-data make build -j${BUILD_PARALLELISM:-1}
9+
else
10+
echo "@@@@@"
11+
echo "Skipping rebuild"
12+
echo "@@@@@"
13+
echo "If you are experiencing issues with the pre-compiled builds, try setting REBUILD=true"
14+
echo "If you are still experiencing issues with the build, try setting CMAKE_ARGS and disable the instructions set as needed:"
15+
echo 'CMAKE_ARGS="-DLLAMA_F16C=OFF -DLLAMA_AVX512=OFF -DLLAMA_AVX2=OFF -DLLAMA_FMA=OFF"'
16+
echo "see the documentation at: https://localai.io/basics/build/index.html"
17+
echo "Note: See also https://github.com/go-skynet/LocalAI/issues/288"
18+
echo "@@@@@"
919
fi
1020

1121
./local-ai "$@"

0 commit comments

Comments
 (0)