Skip to content

Commit

Permalink
local-apps: fix format (#1110)
Browse files Browse the repository at this point in the history
I forgot to rebase with latest `main` to see if the lint passes or not,
ref: #1103
  • Loading branch information
ngxson authored Jan 17, 2025
1 parent 645c58d commit 044942d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/tasks/src/local-apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
};
Expand Down

0 comments on commit 044942d

Please sign in to comment.