RuntimeError: got an unexpected keyword argument 'metaclass'

#15
by Xi12138 - opened

前几日我运行过这个代码,一直是好使的,今天我开电脑重新运行爆了以下的错误,这个是什么原因呢,麻烦各位大佬帮我解决一下,谢谢
错误在 model1 = AutoModelForSeq2SeqLM.from_pretrained(model1_checkpoint) 这一行
image.png

image.png

Hey @Xi12138 , Could you share your environment with us please? You can do so with the following command:

transformers-cli env

Thanks!

oh.my program is running on windows. I can't use "transformers-cli env".
here is my environment:
transformers == 4.33.2
torch == 1.8.1
python == 3.9.18
if not enough, please contract with me!
Thanks!

Hmmm I have not seen that error before, @Rocketknight1 would you have an idea of what may be happening?

I can't figure this one out, and I can't reproduce it either! Maybe just try updating torch and transformers? Also, what is device set to?

Sign up or log in to comment