Commit 535b251d authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Added nvidia-86 target

parent 87087b52
......@@ -21,6 +21,17 @@ all: ollama-service
swapoff swap
rm -rf swap
nvidia-86: ollama-service
tar xf ollama-0.11.4.tar.gz
cd ollama-0.11.4 && cmake -B build -DCMAKE_CUDA_ARCHITECTURES=86
cd ollama-0.11.4 && cmake --build build
cd ollama-0.11.4 && GO111MODULE=on GOCACHE=/tmp/gocache GOPATH=$(CURDIR)/../go/go $(CURDIR)/../go/go/bin/go mod download
cd ollama-0.11.4 && GO111MODULE=on GOCACHE=/tmp/gocache GOPATH=$(CURDIR)/../go/go $(CURDIR)/../go/go/bin/go build -trimpath -buildmode=pie -o /usr/bin/ollama .
install -v -dm755 /var/lib/ollama
@echo "$$OLLAMA_SERVICE" > /lib/systemd/system/ollama.service
systemctl enable ollama.service
rm -rf ollama-0.11.4
ollama-service:
define OLLAMA_SERVICE
[Unit]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment