我正在将BERT Tensorflow模型转换为拥抱的脸:
transformers-cli convert \
--model_type bert \
--tf_checkpoint C:\Users\sacl\Panasonic-AI\POC\pretraining\content\PatentBERT\model.ckpt-181172 \
--config C:\Users\sacl\Panasonic-AI\POC\pretraining\content\PatentBERT\bert_config.json \
--pytorch_dump_output C:\Users\sacl\Panasonic-AI\POC\pretraining\content\PatentBERT\pytorch_model.bin
我收到此错误:
torch.nn.modules.module.ModuleAttributeError:'BertForPreTraining' 对象没有属性“偏见”