AttributeError: 'DynamicCache' object has no attribute 'get_max_length'

#23
by sbo0110 - opened

Hi,

Just working to get familiar with your models. Thanks for the awesome work.

Previously, I've gotten "NuExtract-tiny-v1.5" working locally.

Then, I went to try and run "NuExtract-v1.5". I ran the code as detailed on the huggingface page (just copy pasted into a Jupyter Labs environment) to get it working and received the following error:

AttributeError: 'DynamicCache' object has no attribute 'get_max_length'

Torch version: 2.5.1 and Transformers version: 4.52.4

I feel like this is something stupid that I've done but I can't work it out right now, anyone able to help?

sbo0110 changed discussion title from Error to AttributeError: 'DynamicCache' object has no attribute 'get_max_length'

Just use:
pip install transformers==4.47.0

Sign up or log in to comment