From 044942da8a4ee044a6e810e4730565d35bbeac0d Mon Sep 17 00:00:00 2001 From: Xuan Son Nguyen Date: Fri, 17 Jan 2025 15:14:50 +0100 Subject: [PATCH] local-apps: fix format (#1110) I forgot to rebase with latest `main` to see if the lint passes or not, ref: https://github.com/huggingface/huggingface.js/pull/1103 --- packages/tasks/src/local-apps.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/tasks/src/local-apps.ts b/packages/tasks/src/local-apps.ts index ddfff533d..1882fe9a8 100644 --- a/packages/tasks/src/local-apps.ts +++ b/packages/tasks/src/local-apps.ts @@ -101,14 +101,11 @@ const snippetLlamacpp = (model: ModelData, filepath?: string): LocalAppSnippet[] tagName = quantLabel ? `:${quantLabel}` : ""; } const command = (binary: string) => { - const snippet = [ - "# Load and run the model:", - `${binary} -hf ${model.id}${tagName}`, - ]; + const snippet = ["# Load and run the model:", `${binary} -hf ${model.id}${tagName}`]; if (!model.tags.includes("conversational")) { // for non-conversational models, add a prompt snippet[snippet.length - 1] += " \\"; - snippet.push(" -p \"Once upon a time,\""); + snippet.push(' -p "Once upon a time,"'); } return snippet.join("\n"); };