Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Aphrodite Engine to Local Apps #723

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all 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
22 changes: 22 additions & 0 deletions packages/tasks/src/local-apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ function isGgufModel(model: ModelData) {
return model.tags.includes("gguf");
}

function isTransformersModel(model: ModelData) {
return model.tags.includes("transformers");
}

const snippetLlamacpp = (model: ModelData): string[] => {
return [
`
Expand All @@ -63,6 +67,17 @@ LLAMA_CURL=1 make
];
};

const snippetAphroditeEngine = (model: ModelData): string[] => {
return [
`
## Install Aphrodite Engine. It should pull models from HF automatically.
pip install aphrodite-engine --extra-index-url https://downloads.pygmalion.chat/whl
`,
`## Load and run the model
aphrodite run "${model.id}"`
];
};

/**
* Add your new local app here.
*
Expand Down Expand Up @@ -103,6 +118,13 @@ export const LOCAL_APPS = {
displayOnModelPage: isGgufModel,
deeplink: (model) => new URL(`https://backyard.ai/hf/model/${model.id}`),
},
aphrodite: {
prettyLabel: "Aphrodite Engine",
docsUrl: "https://github.com/PygmalionAI/aphrodite-engine/wiki",
mainTask: "text-generation",
displayOnModelPage: isTransformersModel,
snippet: snippetAphroditeEngine,
},
drawthings: {
prettyLabel: "Draw Things",
docsUrl: "https://drawthings.ai",
Expand Down