-
-
Couldn't load subscription status.
- Fork 10.8k
[Misc] Avoid use of deprecated AutoModelForVision2Seq
#25065
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
Conversation
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
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.
Code Review
This pull request correctly replaces the deprecated AutoModelForVision2Seq with AutoModelForImageTextToText across various test configurations in tests/models/multimodal/generation/test_common.py. This change aligns the codebase with the updated transformers library API, ensuring future compatibility and removing deprecation warnings. The modifications are straightforward and have been applied consistently. I find no issues with this change.
…#25065) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
…#25065) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk> Signed-off-by: charlifu <charlifu@amd.com>
…#25065) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk> Signed-off-by: xuebwang-amd <xuebwang@amd.com>
…#25065) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
…#25065) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk> Signed-off-by: xuebwang-amd <xuebwang@amd.com>
Purpose
AutoModelForVision2Seqis now deprecated in Transformers and should be replaced byAutoModelForImageText2TextTest Plan
Test Result
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.