KeyError: 'BertABSAForSequenceClassification'

#1
by yangyang768 - opened

在使用该模型时出现了下面这种这种报错:
KeyError: 'BertABSAForSequenceClassification'
学艺不精,实在是不知道怎么解决了,请问可以帮忙看下问题出在哪里吗?万分感谢!

Tezign org

你好,感谢使用,在加载模型时,需要如下参数from_pretrained(MODEL, trust_remote_code=True)

trek90s changed discussion status to closed

Sign up or log in to comment