Skip to content

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
Contributor

@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