File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -1493,6 +1493,19 @@ model = SwarmFormerModel.from_pretrained("${model.id}")
1493
1493
` ,
1494
1494
] ;
1495
1495
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
+
1496
1509
const mlx_unknown = ( model : ModelData ) : string [ ] => [
1497
1510
`# Download the model from the Hub
1498
1511
pip install huggingface_hub[hf_xet]
Original file line number Diff line number Diff line change @@ -1041,6 +1041,14 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
1041
1041
countDownloads : `path_extension:"pt"` ,
1042
1042
snippets : snippets . ultralytics ,
1043
1043
} ,
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
+ } ,
1044
1052
"uni-3dar" : {
1045
1053
prettyLabel : "Uni-3DAR" ,
1046
1054
repoName : "Uni-3DAR" ,
You can’t perform that action at this time.
0 commit comments