Open michaelxu1107 opened 2 years ago
Hello, you can convert the model format to huggingface using this script. Well, I also suggest you apply the offered code.
hello, thanks for reply, but when I use script show above to convert model, it shows error below
$ python convert_bert_from_uer_to_huggingface.py --input_model_path "./sdcup_base_model.bin-50000" --output_model_path "./pytorch_model.bin"
Traceback (most recent call last):
File "/home/smart_qa/sdcup/convert_bert_from_uer_to_huggingface.py", line 82, in
You can print the key names of the loaded model, maybe you need alignment the key names.
can sdcup models be called by transformers interface? such as TapasForQuestionAnswering, thanks