Liadrinz / transformers-copy-mechanism

Overwrite huggingface BART and GPT with copy mechanism
19 stars 1 forks source link

AttributeError: 'Seq2SeqModelOutput' object has no attribute 'cross_attentions' #1

Closed 453001323 closed 1 year ago

453001323 commented 1 year ago

你好,我在运行您的程序时出现报错:AttributeError: 'Seq2SeqModelOutput' object has no attribute 'cross_attentions' ,请问这个如何解决?

Liadrinz commented 1 year ago

应该是transformers版本的问题,请问你用的transformers是什么版本的,我的是4.24.0