Update modeling_phi3_v.py for compatibility with transformers 4.49

#37

After updating transformers to version 4.49, the following error occurs: AttributeError: 'DynamicCache' object has no attribute 'get_max_length'.

Hi,

@nguyenbh , could someone from the team please review and merge this PR?

+1 on getting this merged

This needs to be merged. @haipingwu could you please merge it? Thank you!

Considering this is still not merged, I have created a fork of the repository and fixed the issue: https://huggingface.co/Lexius/Phi-3.5-vision-instruct

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment