将Tensorflow检查点转换为拥抱的面孔

时间:2020-11-02 17:50:45

标签: tensorflow bert-language-model huggingface-transformers

我正在将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' 对象没有属性“偏见”

0 个答案:

没有答案