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 1a01899 commit 646944cCopy full SHA for 646944c
1 file changed
.devops/cpu.Dockerfile
@@ -4,19 +4,15 @@ FROM ubuntu:$UBUNTU_VERSION AS build
4
5
ARG TARGETARCH
6
7
-ARG GGML_CPU_ARM_ARCH=armv8-a
8
-
9
RUN apt-get update && \
10
apt-get install -y build-essential git cmake libcurl4-openssl-dev
11
12
WORKDIR /app
13
14
COPY . .
15
16
-RUN if [ "$TARGETARCH" = "amd64" ]; then \
+RUN if [ "$TARGETARCH" = "amd64" ] || [ "$TARGETARCH" = "arm64" ]; then \
17
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DGGML_NATIVE=OFF -DLLAMA_BUILD_TESTS=OFF -DGGML_BACKEND_DL=ON -DGGML_CPU_ALL_VARIANTS=ON; \
18
- elif [ "$TARGETARCH" = "arm64" ]; then \
19
- cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DGGML_NATIVE=OFF -DLLAMA_BUILD_TESTS=OFF -DGGML_CPU_ARM_ARCH=${GGML_CPU_ARM_ARCH}; \
20
else \
21
echo "Unsupported architecture"; \
22
exit 1; \
0 commit comments