index out of range in self

#12
by andrewyang17 - opened

Hello,
I received an error saying "index out of range in self" when the input is large,
is there any configuration to overcome this?

instead of --
from transformers import pipeline

use:
from transformers import AutoModelForSeq2SeqLM
summarizer_pipeline = AutoModelForSeq2SeqLM.from_pretrained("philschmid/bart-large-cnn-samsum")

@pdahiya Can you send me the example to resolve this ?

Sign up or log in to comment