MRC_Competition_Dureader
MRC_Competition_Dureader copied to clipboard
确少配置文件config.json
OSError: Can't load '../init_model//roberta_wwm_ext/config.json'. Make sure that:
-
'../init_model//roberta_wwm_ext/config.json' is a correct model identifier listed on 'https://huggingface.co/models'
-
or '../init_model//roberta_wwm_ext/config.json' is the correct path to a directory containing a 'config.json' file
请问您解决了吗?我也遇到了类似问题,谢谢!
你这个路径文件错了吧?
下载好模型文件后,在main文件下新建init_model文件夹,将下载后的模型文件放在init_model文件夹下,修改train_bert.sh的第二行export pretrain_dir=../init_model/ 为export pretrain_dir=./init_model/ ,出错的原因是路径前面多了一个点,导致程序找不到文件位置。