macos amd64 compatibility fixes

This commit is contained in:
Jeffrey Morgan
2023-09-05 21:33:27 -04:00
parent d42d88386a
commit 213ffdb548
4 changed files with 7 additions and 3 deletions

View File

@@ -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 {