Skip to content
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
26 changes: 26 additions & 0 deletions packages/tasks/src/local-apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ function isAmdRyzenModel(model: ModelData) {
return model.tags.includes("ryzenai-hybrid") || model.tags.includes("ryzenai-npu");
}

function isCactusModel(model: ModelData) {
return model.tags.includes("cactus");
}

function isMlxModel(model: ModelData) {
return model.tags.includes("mlx");
}
Expand Down Expand Up @@ -361,6 +365,21 @@ const snippetLemonade = (model: ModelData, filepath?: string): LocalAppSnippet[]
];
};

const snippetCactus = (model: ModelData, filepath?: string): LocalAppSnippet[] => {
return [
{
title: "Install Cactus for Flutter",
setup: "flutter pub get cactus",
content: "Follow the documentation",
},
{
title: "Install Cactus for React Native",
setup: "npm install cactus-react-native",
content: "Follow the documentation",
},
];
};

/**
* Add your new local app here.
*
Expand Down Expand Up @@ -545,6 +564,13 @@ export const LOCAL_APPS = {
displayOnModelPage: (model) => isLlamaCppGgufModel(model) || isAmdRyzenModel(model),
snippet: snippetLemonade,
},
cactus: {
prettyLabel: "Cactus",
docsUrl: "https://cactuscompute.com/docs",
mainTask: "text-generation",
displayOnModelPage: isCactusModel,
snippet: snippetCactus
},
} satisfies Record<string, LocalApp>;

export type LocalAppKey = keyof typeof LOCAL_APPS;