UER-py icon indicating copy to clipboard operation
UER-py copied to clipboard

convert_bert_from_uer_to_huggingface script does not generate config.json file

Open chenweiyj opened this issue 3 years ago • 1 comments

I use convert_bert_from_uer_to_huggingface to convert pre-trained model bin file to huggingface model bin file. But it does not generate a directory which can be used in transformers. When loading it, it prints errors with config file not found.

So how to generate config file for huggingface model?

chenweiyj avatar Jul 04 '22 05:07 chenweiyj

The config file cannot be automatically generated. You can modify it based on the config file we uploaded. https://huggingface.co/uer/chinese_roberta_L-12_H-768/blob/main/config.json

hhou435 avatar Jul 15 '22 09:07 hhou435