-
Notifications
You must be signed in to change notification settings - Fork 220
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Wang, Yi A <[email protected]>
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") |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and then, I will add llava/llava_next to https://github.com/huggingface/optimum-habana/blob/main/examples/image-to-text/run_pipeline.py#L324 as well
What does this PR do?
Fixes # (1699)
Before submitting