Browse Source

use `osPath` in gpu check

Jeffrey Morgan 1 year ago
parent
commit
7de300856b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      llm/ggml_llama.go

+ 1 - 1
llm/ggml_llama.go

@@ -69,7 +69,7 @@ func initGGML() {
 		case "windows":
 			files = []string{"server.exe"}
 		case "darwin":
-			if llamaPath == ggmlGPU {
+			if llamaPath == osPath(ggmlGPU) {
 				files = append(files, "ggml-metal.metal")
 			}
 		}