Update modeling_chatglm.py for transformers 4.49 compatibility

#89

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_chatglm.py to Update modeling_chatglm.py for transformers 4.49 compatibility
zRzRzRzRzRzRzR 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