Make model compatible with Transformers v4.49.0

#40
by hmellor HF Staff - opened

Updates deprecated class which was removed in v4.49.0

@tc-mb is this something you can take a look at?

OpenBMB org

Thank you, we will process it ASAP.

I ran into the same error and was able to fix it by manually updating the import statements as described in this PR.
Tested with transformers==4.51.3and python 3.12.9 using the vision-only example and it's working successfully now.

tc-mb changed pull request status to merged

Sign up or log in to comment