add llama.cpp go bindings

This commit is contained in:
Jeffrey Morgan
2023-07-03 16:32:48 -04:00
parent 76cb60d496
commit 6093a88c1a
18 changed files with 841 additions and 79 deletions

6
go.mod
View File

@@ -1,11 +1,9 @@
module github.com/ollama/ollama
module github.com/jmorganca/ollama
go 1.20
require (
github.com/gin-gonic/gin v1.9.1
github.com/go-skynet/go-llama.cpp v0.0.0-20230630201504-ecd358d2f144
github.com/r3labs/sse v0.0.0-20210224172625-26fe804710bc
github.com/spf13/cobra v1.7.0
golang.org/x/crypto v0.10.0
)
@@ -19,6 +17,7 @@ require (
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.14.0 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/cpuid/v2 v2.2.4 // indirect
@@ -35,6 +34,5 @@ require (
golang.org/x/sys v0.9.0 // indirect
golang.org/x/text v0.10.0 // indirect
google.golang.org/protobuf v1.30.0 // indirect
gopkg.in/cenkalti/backoff.v1 v1.1.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)