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

VLMs: even more clean-up #36249

Merged
merged 2 commits into from
Feb 21, 2025
Merged

Conversation

zucchini-nlp
Copy link
Member

@zucchini-nlp zucchini-nlp commented Feb 18, 2025

What does this PR do?

Cleans up some code in VLMs, as we don't really need to override it. It will save us energy of copying a tiny change in prepare_inputs_for_generation across all models

We'll need to prioritize using the super() whenever possible, imo, for future models! Less maintaining cost and less bugs

Ran generation tests + slow test for changed models, all green (except for those failing on main)

@zucchini-nlp zucchini-nlp requested a review from gante February 18, 2025 08:23
@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.

Copy link
Member

@gante gante left a comment

Choose a reason for hiding this comment

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

Love this super() pattern, well done! 💛

@zucchini-nlp zucchini-nlp merged commit 14552cb into huggingface:main Feb 21, 2025
14 checks passed
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