Commit cfd58543 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Store ollama models in /var/lib/ollama

parent b9814656
......@@ -11,6 +11,7 @@ all: ollama-service
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
......@@ -33,6 +34,7 @@ User=root
Group=root
Environment="GIN_MODE=release"
Environment="OLLAMA_HOST=0.0.0.0"
Environment="OLLAMA_MODELS=/var/lib/ollama"
ExecStart=/usr/bin/ollama serve
Restart=on-failure
......
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