mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
Add cgo implementation for llama.cpp
Run the server.cpp directly inside the Go runtime via cgo while retaining the LLM Go abstractions.
This commit is contained in:
parent
5e7fd6906f
commit
d4cd695759
27 changed files with 1189 additions and 765 deletions
|
@ -9,7 +9,7 @@ mkdir -p dist
|
|||
|
||||
for TARGETARCH in arm64 amd64; do
|
||||
GOOS=darwin GOARCH=$TARGETARCH go generate ./...
|
||||
GOOS=darwin GOARCH=$TARGETARCH go build -o dist/ollama-darwin-$TARGETARCH
|
||||
CGO_ENABLED=1 GOOS=darwin GOARCH=$TARGETARCH go build -o dist/ollama-darwin-$TARGETARCH
|
||||
rm -rf llm/llama.cpp/*/build
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue