Skip to content

Commit

Permalink
Add VFI-Mamba as library (#885)
Browse files Browse the repository at this point in the history
This PR is linked with MCG-NJU/VFIMamba#2 to
ensure download stats are working for the VFI-Mamba repo.

It also adds a "How to use this model" button with a code snippet.

---------

Co-authored-by: Lucain <[email protected]>
  • Loading branch information
NielsRogge and Wauplin committed Sep 9, 2024
1 parent 7dd9043 commit 7ce7a3e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/tasks/src/model-libraries-snippets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,12 @@ IWorker engine = WorkerFactory.CreateWorker(BackendType.GPUCompute, model);
`,
];

export const vfimamba = (model: ModelData): string[] => [
`from Trainer_finetune import Model
model = Model.from_pretrained("${model.id}")`,
];

export const voicecraft = (model: ModelData): string[] => [
`from voicecraft import VoiceCraft
Expand Down
7 changes: 7 additions & 0 deletions packages/tasks/src/model-libraries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
filter: true,
countDownloads: `path_extension:"sentis"`,
},
"vfi-mamba": {
prettyLabel: "VFIMamba",
repoName: "VFIMamba",
repoUrl: "https://github.com/MCG-NJU/VFIMamba",
countDownloads: `path_extension:"pkl"`,
snippets: snippets.vfimamba,
},
voicecraft: {
prettyLabel: "VoiceCraft",
repoName: "VoiceCraft",
Expand Down

0 comments on commit 7ce7a3e

Please sign in to comment.