Update modeling_phi3.py for compatibility with transformers 4.49

#13

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

sylwia-kuros changed pull request title from Update modeling_minicpm.py for compatibility with transformers 4.49 to Update modeling_phi3.py for compatibility with transformers 4.49

Hi,

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

nguyenbh changed pull request status to merged
Your need to confirm your account before you can post a new comment.

Sign up or log in to comment