16 cores
This commit is contained in:
1 parent
c08ca3bf7c
commit
1d8894b7bc
1 file changed
+2
-2
@@ -18,9 +18,9 @@ RUN apt-get update && apt-get install -y \
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN git clone --recursive https://github.com/ollama/ollama.git .
|
RUN git clone --recursive https://github.com/ollama/ollama.git .
|
||||||
|
|
||||||
# Configure and build using Ollama's native Vulkan backend flag
|
# Configure and safely build with constrained parallelism to protect 96GB RAM
|
||||||
RUN cmake -B build . -DOLLAMA_LLAMA_BACKENDS="vulkan" -DCMAKE_BUILD_TYPE=Release
|
RUN cmake -B build . -DOLLAMA_LLAMA_BACKENDS="vulkan" -DCMAKE_BUILD_TYPE=Release
|
||||||
RUN cmake --build build --parallel $(nproc)
|
RUN cmake --build build --parallel 16
|
||||||
|
|
||||||
# Build the main Go application binary
|
# Build the main Go application binary
|
||||||
RUN go build -o ollama .
|
RUN go build -o ollama .
|
||||||
|
|||||||
Reference in new issue
Block a user