From e0ed30dffe1a69f665a9eb073e6aad93de794897 Mon Sep 17 00:00:00 2001 From: Bryan Silverthorn Date: Fri, 5 May 2023 10:49:03 -0700 Subject: [PATCH] Dockerfiles: use LLAMA_AVX2_ONLY. Docker builds produced by GitHub actions seem to fail on Alder Lake machines. The purpose of the Docker builds is to provide an easy way to start generating tokens. Targeting AVX2-only is a compromise between performance and compatibility. --- .devops/full.Dockerfile | 2 +- .devops/main.Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.devops/full.Dockerfile b/.devops/full.Dockerfile index 491d67676..4e59e81b5 100644 --- a/.devops/full.Dockerfile +++ b/.devops/full.Dockerfile @@ -14,6 +14,6 @@ WORKDIR /app COPY . . -RUN make +RUN LLAMA_AVX2_ONLY=1 make ENTRYPOINT ["/app/.devops/tools.sh"] diff --git a/.devops/main.Dockerfile b/.devops/main.Dockerfile index 2e629f8ce..d66a9c64b 100644 --- a/.devops/main.Dockerfile +++ b/.devops/main.Dockerfile @@ -9,7 +9,7 @@ WORKDIR /app COPY . . -RUN make +RUN LLAMA_AVX2_ONLY=1 make FROM ubuntu:$UBUNTU_VERSION as runtime