Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions packages/tasks/src/local-apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,28 @@ const snippetDockerModelRunner = (model: ModelData, filepath?: string): string =
return `docker model run hf.co/${model.id}${getQuantTag(filepath)}`;
};

const snippetLemonade = (model: ModelData, filepath?: string): LocalAppSnippet[] => {
const tagName = getQuantTag(filepath);
return [
{
title: "Run and chat with the model",
setup: "# Download Lemonade from https://lemonade-server.ai/",
content: [
`lemonade-server run ${model.id}${tagName}`,
"# Note: If you installed from source, use the lemonade-server-dev command instead."
],
},
{
title: "Install the model ahead of time",
content: `lemonade-server pull ${model.id}${tagName}`,
},
{
title: "List all available models",
content: "lemonade-server list",
},
];
};

/**
* Add your new local app here.
*
Expand Down Expand Up @@ -478,6 +500,13 @@ export const LOCAL_APPS = {
displayOnModelPage: isLlamaCppGgufModel,
snippet: snippetDockerModelRunner,
},
lemonade: {
prettyLabel: "Lemonade",
docsUrl: "https://lemonade-server.ai",
mainTask: "text-generation",
displayOnModelPage: isLlamaCppGgufModel,
snippet: snippetLemonade,
},
} satisfies Record<string, LocalApp>;

export type LocalAppKey = keyof typeof LOCAL_APPS;