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":{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you move this entry up in the mapping to keep alphabetical order?

prettyLabel: "HunyuanImage-2.1",
repoName: "HunyuanImage-2.1",
repoUrl: "https://huggingface.co/tencent/HunyuanImage-2.1",
countDownloads: `path_filename:"hunyuanimage2.1.safetensors"`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking at the models listed on https://huggingface.co/models?other=HunyuanImage-2.1, I can't find a "hunyuanimage2.1.safetensors" file in them. Best would be to adopt a common structure in these repos and then chose a file to count the downloads from.

snippets: snippets.hunyuanimage_2_1,
}
} satisfies Record<string, LibraryUiElement>;

export type ModelLibraryKey = keyof typeof MODEL_LIBRARIES_UI_ELEMENTS;
Expand Down