mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-15 18:27:08 +00:00
macos amd64 compatibility fixes
This commit is contained in:
@@ -45,6 +45,7 @@ func osPath(llamaPath string) string {
|
||||
if runtime.GOOS == "windows" {
|
||||
return path.Join(llamaPath, "Release")
|
||||
}
|
||||
|
||||
return llamaPath
|
||||
}
|
||||
|
||||
@@ -68,7 +69,9 @@ func initGGML() {
|
||||
case "windows":
|
||||
files = []string{"server.exe"}
|
||||
case "darwin":
|
||||
files = append(files, "ggml-metal.metal")
|
||||
if llamaPath == ggmlGPU {
|
||||
files = append(files, "ggml-metal.metal")
|
||||
}
|
||||
}
|
||||
|
||||
for _, f := range files {
|
||||
|
||||
Reference in New Issue
Block a user