From 32365c04eda485585e45ba57517cfc3202732455 Mon Sep 17 00:00:00 2001 From: Xuan Son Nguyen Date: Wed, 4 Dec 2024 20:08:10 +0100 Subject: [PATCH] local-apps: update llama.cpp snippet to use cmake (#1060) Ref: https://github.com/ggerganov/llama.cpp/pull/10514 The recommended way to build llama.cpp is by using `cmake` command. --- packages/tasks/src/local-apps.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/tasks/src/local-apps.ts b/packages/tasks/src/local-apps.ts index 2249183a4..0f2695c13 100644 --- a/packages/tasks/src/local-apps.ts +++ b/packages/tasks/src/local-apps.ts @@ -129,9 +129,10 @@ const snippetLlamacpp = (model: ModelData, filepath?: string): LocalAppSnippet[] setup: [ "git clone https://github.com/ggerganov/llama.cpp.git", "cd llama.cpp", - "LLAMA_CURL=1 make llama-cli", + "cmake -B build -DLLAMA_CURL=ON", + "cmake --build build -j --target llama-cli", ].join("\n"), - content: command("./llama-cli"), + content: command("./build/bin/llama-cli"), }, ]; };