dbiir / UER-py

Open Source Pre-training Model Framework in PyTorch & Pre-trained Model Zoo
https://github.com/dbiir/UER-py/wiki
Apache License 2.0
3.01k stars 525 forks source link

convert_bert_from_uer_to_huggingface script does not generate config.json file #329

Open chenweiyj opened 2 years ago

chenweiyj commented 2 years ago

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?

hhou435 commented 2 years ago

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