Skip to content
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

add padding to input for mllama/paligemma/idefices2 #1671

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sywangyi
Copy link
Collaborator

@sywangyi sywangyi commented Dec 27, 2024

What does this PR do?

Fixes # (1699)

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

@sywangyi sywangyi requested a review from regisss as a code owner December 27, 2024 06:43
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@@ -211,7 +234,7 @@ def main():
]

if model_type in ["llava", "idefics2", "llava_next", "mllama", "paligemma"]:
processor = AutoProcessor.from_pretrained(args.model_name_or_path)
processor = AutoProcessor.from_pretrained(args.model_name_or_path, padding_side="left")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this "padding_slide=left" common to the other "llava" and "llava_next" as well?
Title mentions only "mllama/paligemma/idefices2", but this option is set for all.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes. but we need #1674 this fix for llava/llava_next first

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@libinta libinta added the run-test Run CI for PRs from external contributors label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-test Run CI for PRs from external contributors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants