Closed eurkaaaa closed 1 year ago
Can you show the detailed log?
Traceback (most recent call last):
File "run_wiki80.py", line 715, in
https://github.com/thunlp/PELT/blob/7f5097fc69de45d6ac125ce6f9f19f4a06c46eff/RE/run_wiki80.py#L611
I set from_tf=False and use a huggface's BERT pytorch checkpoint
是的,但是如果这样的话,就会出现下面这个报错。
Traceback (most recent call last):
File "run_wiki80.py", line 713, in
需要提前clone huaggface的代码吗
下相应的模型https://huggingface.co/ 比如bert是
mkdir -p bert_models/bert-base-uncased
wget -P bert_models/bert-base-uncased https://huggingface.co/bert-base-uncased/resolve/main/pytorch_model.bin
wget -P bert_models/bert-base-uncased https://huggingface.co/bert-base-uncased/resolve/main/vocab.txt
wget -P bert_models/bert-base-uncased https://huggingface.co/bert-base-uncased/resolve/main/config.json
然后我这里用的是roberta不是bert
hello, AttributeError: module 'transformers' has no attribute 'TFRobertaEntForMarkerSequenceClassification' In wiki_80.py, I have meet this problem