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

Uniformize kwargs for Pixtral processor #33521

Merged
merged 4 commits into from
Sep 17, 2024

Conversation

yonigozlan
Copy link
Member

@yonigozlan yonigozlan commented Sep 16, 2024

What does this PR do?

Adds uniformized processors kwargs following #31911 for Pixtral

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
    Pull Request section?
  • Was this discussed/approved via a Github issue or the forum? Please add a link
    to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines, and
    here are tips on formatting docstrings.
  • Did you write any new necessary tests?

Who can review?

@amyeroberts @molbap @ArthurZucker

@yonigozlan yonigozlan changed the title add uniformized pixtral and kwargs Uniformize kwargs for Pixtral processor Sep 16, 2024
@yonigozlan yonigozlan mentioned this pull request Sep 16, 2024
40 tasks
@yonigozlan yonigozlan marked this pull request as ready for review September 17, 2024 13:30
Copy link
Collaborator

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

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

Thanks for updating this!

for img in imgs:
if not _is_valid_images_input_for_processor(img):
return False
# If not a list of tuple, we have been given a single image or batched tensor of images
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit

Suggested change
# If not a list of tuple, we have been given a single image or batched tensor of images
# If not a list or tuple, we have been given a single image or batched tensor of images

@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.

@yonigozlan yonigozlan merged commit d8500cd into huggingface:main Sep 17, 2024
24 checks passed
itazap pushed a commit to NielsRogge/transformers that referenced this pull request Sep 20, 2024
* add uniformized pixtral and kwargs

* update doc

* fix _validate_images_text_input_order

* nit
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