Update modeling_minicpm.py for compatibility with transformers 4.49

#4

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

Hi,

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

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

Sign up or log in to comment