File tree 3 files changed +13
-3
lines changed
3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ MODELS_PATH=/models
26
26
# # Specify a build type. Available: cublas, openblas, clblas.
27
27
# BUILD_TYPE=openblas
28
28
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
31
31
32
32
# # Enable go tags, available: stablediffusion, tts
33
33
# # stablediffusion: image generation with stablediffusion
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ FROM requirements
94
94
95
95
ARG FFMPEG
96
96
97
- ENV REBUILD=true
97
+ ENV REBUILD=false
98
98
ENV HEALTHCHECK_ENDPOINT=http://localhost:8080/readyz
99
99
100
100
# Add FFmpeg
Original file line number Diff line number Diff line change @@ -6,6 +6,16 @@ cd /build
6
6
if [ " $REBUILD " != " false" ]; then
7
7
rm -rf ./local-ai
8
8
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 " @@@@@"
9
19
fi
10
20
11
21
./local-ai " $@ "
You can’t perform that action at this time.
0 commit comments