Skip to content
Open
Show file tree
Hide file tree
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
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 @@ -2112,6 +2112,12 @@ export const hezar = (model: ModelData): string[] => [
model = Model.load("${model.id}")`,
];

export const hunyuanimage_2_1 = (model: ModelData): string[] => [
`from hyimage.diffusion.pipelines.hunyuanimage_pipeline import HunyuanImagePipeline
pipe = HunyuanImagePipeline.from_pretrained("${model.id}")`,
];


export const zonos = (model: ModelData): string[] => [
`# pip install git+https://github.com/Zyphra/Zonos.git
import torchaudio
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 @@ -1261,6 +1261,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
countDownloads: `path:"model_vae_fp16.pt"`,
snippets: snippets.threedtopia_xl,
},
"HunyuanImage-2.1":{
prettyLabel: "HunyuanImage-2.1",
repoName: "HunyuanImage-2.1",
repoUrl: "https://huggingface.co/tencent/HunyuanImage-2.1",
countDownloads: `path_filename:"hunyuanimage2.1.safetensors"`,
snippets: snippets.hunyuanimage_2_1,
}
} satisfies Record<string, LibraryUiElement>;

export type ModelLibraryKey = keyof typeof MODEL_LIBRARIES_UI_ELEMENTS;
Expand Down