From 726ae5bc9ae111ca8a3b647b2915f0902128bc0c Mon Sep 17 00:00:00 2001 From: Gilad S Date: Wed, 27 Sep 2023 22:15:50 +0300 Subject: [PATCH] fix: make disabling metal on build work --- src/utils/compileLLamaCpp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/compileLLamaCpp.ts b/src/utils/compileLLamaCpp.ts index fcb1cc74..402ae64a 100644 --- a/src/utils/compileLLamaCpp.ts +++ b/src/utils/compileLLamaCpp.ts @@ -26,7 +26,7 @@ export async function compileLlamaCpp({ const cmakeCustomOptions = []; if ((metal && process.platform === "darwin") || process.env.LLAMA_METAL === "1") cmakeCustomOptions.push("LLAMA_METAL=1"); - else cmakeCustomOptions.push("LLAMA_METAL=0"); + else cmakeCustomOptions.push("LLAMA_METAL=OFF"); if (cuda || process.env.LLAMA_CUBLAS === "1") cmakeCustomOptions.push("LLAMA_CUBLAS=1"); if (process.env.LLAMA_MPI === "1") cmakeCustomOptions.push("LLAMA_MPI=1");