Error: cannot import name 'LongT5ForConditionalGeneration' from 'transformers'

#1
by EnesDS - opened

Thanks for such a promising model. The lack of a transformers model that can read long text was a huge gap in the field imo.

Here is my issue: when I try to install the model, it gives an error:
'''
cannot import name 'LongT5ForConditionalGeneration' from 'transformers'
'''
It loads the tokenizer but can't load the model.

image.png

Hi, the issue is that LongT5 model will be included in 4.20 release, and thus is not available in the current release. But you can use this model when you install transformers from source, i.e.:

git clone https://github.com/huggingface/transformers.git
cd transformers
python -m pip install -e .

Thank you!

Stancld changed discussion status to closed

Sign up or log in to comment