Skip to content

Add univa to models #1526

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add univa to models #1526

wants to merge 2 commits into from

Conversation

merveenoyan
Copy link
Contributor

@Vaibhavs10 @linoytsaban as discussed

@@ -1027,6 +1027,14 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
countDownloads: `path_extension:"pt"`,
snippets: snippets.ultralytics,
},
"univa": {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"univa": {
univa: {

Copy link
Member

@Vaibhavs10 Vaibhavs10 left a comment

Choose a reason for hiding this comment

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

LGTM! requires the tag to be merged on the hub before merge: https://huggingface.co/LanguageBind/UniWorld-V1/blob/main/README.md?code=true#L3

@@ -1408,6 +1408,17 @@ model = SwarmFormerModel.from_pretrained("${model.id}")
`,
];

export const univa = (model: ModelData): string[] => [
`from univa.models.qwen2p5vl.modeling_univa_qwen2p5vl import UnivaQwen2p5VLForConditionalGeneration
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
`from univa.models.qwen2p5vl.modeling_univa_qwen2p5vl import UnivaQwen2p5VLForConditionalGeneration
`# Follow installation instructions at https://github.com/PKU-YuanGroup/UniWorld-V1
from univa.models.qwen2p5vl.modeling_univa_qwen2p5vl import UnivaQwen2p5VLForConditionalGeneration

Comment on lines +1030 to +1032
"univa": {
prettyLabel: "univa",
repoName: "univa",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"univa": {
prettyLabel: "univa",
repoName: "univa",
"uniworld": {
prettyLabel: "UniWorld",
repoName: "UniWorld",

Shouldn't the library be named UniWorld instead to follow the repo naming convention? I feel it would be more natural that way

@@ -1027,6 +1027,14 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
countDownloads: `path_extension:"pt"`,
snippets: snippets.ultralytics,
},
"univa": {
Copy link
Contributor

Choose a reason for hiding this comment

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

as mentioned by @Vaibhavs10 let's get the model listed under https://huggingface.co/models?other=uniworld (or https://huggingface.co/models?other=univa) before shipping this PR

repoUrl: "https://github.com/PKU-YuanGroup/UniWorld-V1",
snippets: snippets.univa,
filter: true,
countDownloads: `path_extension:"safetensors"`,
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like the repo already have a config.json file so would be good to keep the counting on that file (if loaded at each .from_pretrained). This is the default rule if we don't set one.

Problem with counting path_extension:"safetensors" is that it's non-canonical + will count 17 downloads each time a user downloads the repo (given the 17 shards). (taken from files section)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants