Laksh-Jain commited on
Commit
511c3cc
·
verified ·
1 Parent(s): 3145e03

Updated modelling.py - replaced deprecated get_max_length() with get_max_cache_shape() for transformers 4.49+

Browse files

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

Files changed (1) hide show
  1. modeling_phi3.py +0 -0
modeling_phi3.py CHANGED
The diff for this file is too large to render. See raw diff