SoftMaskedBert
SoftMaskedBert copied to clipboard
想问一下这个报错怎么解决
404 Client Error: Not Found for url: https://huggingface.co//model/chinese-bert-wwm-ext/resolve/main/config.json Traceback (most recent call last): File "H:\Anaconda\envs\softmasked\lib\site-packages\transformers\configuration_utils.py", line 512, in get_config_dict resolved_config_file = cached_path( File "H:\Anaconda\envs\softmasked\lib\site-packages\transformers\file_utils.py", line 1370, in cached_path output_path = get_from_cache( File "H:\Anaconda\envs\softmasked\lib\site-packages\transformers\file_utils.py", line 1541, in get_from_cache r.raise_for_status() File "H:\Anaconda\envs\softmasked\lib\site-packages\requests\models.py", line 960, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://huggingface.co//model/chinese-bert-wwm-ext/resolve/main/config.json
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "F:/0:学习资料/0:研究生/0:纠正错误/SoftMaskedBert-main/model/train.py", line 252, in
-
'/model/chinese-bert-wwm-ext' is a correct model identifier listed on 'https://huggingface.co/hfl'
-
or '/model/chinese-bert-wwm-ext' is the correct path to a directory containing a config.json file
我锁定不到要修改的位置
似乎是预训练模型名字不对的问题(可能是改了), 去huggingface官网里找个自己需要的模型替换就行
不知道解决了没有,同样遇到这个问题
不知道解决了没有,同样遇到这个问题 最佳的解决思路就是, 去transformer官网找个确定有的模型, 然后挂VPN, 代码检测不到本地模型文件的时候会自动下载