fix bug 'DynamicCache' object has no attribute 'get_max_length' , updata modeling_phi3.py

#39

fix bug max_cache_length = past_key_values.get_max_length()
AttributeError: 'DynamicCache' object has no attribute 'get_max_length'. Did you mean: 'get_seq_length'?

i am also facing the same challenge here, I am new to generative AI, how can i solve this problem

Considering this is still not fixed, I have forked the repo here to fix the issue: https://huggingface.co/Lexius/Phi-3.5-mini-instruct

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

Sign up or log in to comment