Skip to content

Commit 73114be

Browse files
authored
Merge branch 'main' into add-video-to-video
2 parents 1ba4363 + 179eae0 commit 73114be

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

packages/tasks/src/model-libraries-snippets.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,6 +1493,19 @@ model = SwarmFormerModel.from_pretrained("${model.id}")
14931493
`,
14941494
];
14951495

1496+
export const univa = (model: ModelData): string[] => [
1497+
`# Follow installation instructions at https://github.com/PKU-YuanGroup/UniWorld-V1
1498+
1499+
from univa.models.qwen2p5vl.modeling_univa_qwen2p5vl import UnivaQwen2p5VLForConditionalGeneration
1500+
model = UnivaQwen2p5VLForConditionalGeneration.from_pretrained(
1501+
"${model.id}",
1502+
torch_dtype=torch.bfloat16,
1503+
attn_implementation="flash_attention_2",
1504+
).to("cuda")
1505+
processor = AutoProcessor.from_pretrained("${model.id}")
1506+
`,
1507+
];
1508+
14961509
const mlx_unknown = (model: ModelData): string[] => [
14971510
`# Download the model from the Hub
14981511
pip install huggingface_hub[hf_xet]

packages/tasks/src/model-libraries.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,6 +1041,14 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
10411041
countDownloads: `path_extension:"pt"`,
10421042
snippets: snippets.ultralytics,
10431043
},
1044+
univa: {
1045+
prettyLabel: "univa",
1046+
repoName: "univa",
1047+
repoUrl: "https://github.com/PKU-YuanGroup/UniWorld-V1",
1048+
snippets: snippets.univa,
1049+
filter: true,
1050+
countDownloads: `path:"config.json"`,
1051+
},
10441052
"uni-3dar": {
10451053
prettyLabel: "Uni-3DAR",
10461054
repoName: "Uni-3DAR",

0 commit comments

Comments
 (0)