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}")
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+
14961509const mlx_unknown = ( model : ModelData ) : string [ ] => [
14971510 `# Download the model from the Hub
14981511pip 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 = {
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" ,
You can’t perform that action at this time.
0 commit comments