瀏覽代碼

use `osPath` in gpu check

Jeffrey Morgan 1 年之前
父節點
當前提交
7de300856b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      llm/ggml_llama.go

+ 1 - 1
llm/ggml_llama.go

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