Updated modelling.py - replaced deprecated get_max_length() with get_max_cache_shape() for transformers 4.49+
#41
by
Laksh-Jain
- opened
The method get_max_length of 'DynamicCache' is deprecated and has been removed in transformer 4.49.
The method here has been replaced with get_max_cache_shape()
Similar issue addressed in deepseek V2 lite - https://huggingface.co/deepseek-ai/DeepSeek-V2-Lite/commit/faea2faa9ec002397d20e90dae777c4252022f3a