RuntimeError: got an unexpected keyword argument 'metaclass'

by Xi12138 - opened

错误在 model1 = AutoModelForSeq2SeqLM.from_pretrained(model1_checkpoint) 这一行


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

transformers-cli env

Thanks! 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!

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