Make REBUILD=false default behavior

Add notice to documentation

Signed-off-by: mudler <mudler@localai.io>
renovate/github.com-imdario-mergo-1.x
mudler 1 year ago
parent def23e4ee2
commit 4de7f55f2f
  1. 4
      .env
  2. 2
      Dockerfile
  3. 10
      entrypoint.sh

@ -26,8 +26,8 @@ MODELS_PATH=/models
## Specify a build type. Available: cublas, openblas, clblas. ## Specify a build type. Available: cublas, openblas, clblas.
# BUILD_TYPE=openblas # BUILD_TYPE=openblas
## Uncomment and set to false to disable rebuilding from source ## Uncomment and set to true to enable rebuilding from source
# REBUILD=false # REBUILD=true
## Enable go tags, available: stablediffusion, tts ## Enable go tags, available: stablediffusion, tts
## stablediffusion: image generation with stablediffusion ## stablediffusion: image generation with stablediffusion

@ -94,7 +94,7 @@ FROM requirements
ARG FFMPEG ARG FFMPEG
ENV REBUILD=true ENV REBUILD=false
ENV HEALTHCHECK_ENDPOINT=http://localhost:8080/readyz ENV HEALTHCHECK_ENDPOINT=http://localhost:8080/readyz
# Add FFmpeg # Add FFmpeg

@ -6,6 +6,16 @@ cd /build
if [ "$REBUILD" != "false" ]; then if [ "$REBUILD" != "false" ]; then
rm -rf ./local-ai rm -rf ./local-ai
ESPEAK_DATA=/build/lib/Linux-$(uname -m)/piper_phonemize/lib/espeak-ng-data make build -j${BUILD_PARALLELISM:-1} ESPEAK_DATA=/build/lib/Linux-$(uname -m)/piper_phonemize/lib/espeak-ng-data make build -j${BUILD_PARALLELISM:-1}
else
echo "@@@@@"
echo "Skipping rebuild"
echo "@@@@@"
echo "If you are experiencing issues with the pre-compiled builds, try setting REBUILD=true"
echo "If you are still experiencing issues with the build, try setting CMAKE_ARGS and disable the instructions set as needed:"
echo 'CMAKE_ARGS="-DLLAMA_F16C=OFF -DLLAMA_AVX512=OFF -DLLAMA_AVX2=OFF -DLLAMA_FMA=OFF"'
echo "see the documentation at: https://localai.io/basics/build/index.html"
echo "Note: See also https://github.com/go-skynet/LocalAI/issues/288"
echo "@@@@@"
fi fi
./local-ai "$@" ./local-ai "$@"

Loading…
Cancel
Save