求助启动出错找不到文件config.json
chatglm吧
全部回复
仅看楼主
level 12
九天石 楼主
提示如下:
OSError: D:\ChatGLM2-6B does not appear to have a file named config.json. Checkout 'https://huggingface.co/D:\ChatGLM2-6B/None' for available files.
求助大佬怎么解决。
I7 9700 16G内存 4060Ti 16G显存
运行全部信息如下:
D:\ChatGLM2-6B>cd chatglm
D:\ChatGLM2-6B\chatglm>python.exe ../web_demo.py
Traceback (most recent call last):
File "D:\ChatGLM2-6B\web_demo.py", line 5, in <module>
tokenizer = AutoTokenizer.from_pretrained("D:\ChatGLM2-6B", trust_remote_code=True)
File "D:\ChatGLM2-6B\chatglm\lib\site-packages\transformers\models\auto\tokenization_auto.py", line 658, in from_pretrained
config = AutoConfig.from_pretrained(
File "D:\ChatGLM2-6B\chatglm\lib\site-packages\transformers\models\auto\configuration_auto.py", line 944, in from_pretrained
config_dict, unused_kwargs = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
File "D:\ChatGLM2-6B\chatglm\lib\site-packages\transformers\configuration_utils.py", line 574, in get_config_dict
config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
File "D:\ChatGLM2-6B\chatglm\lib\site-packages\transformers\configuration_utils.py", line 629, in _get_config_dict
resolved_config_file = cached_file(
File "D:\ChatGLM2-6B\chatglm\lib\site-packages\transformers\utils\hub.py", line 388, in cached_file
raise EnvironmentError(
OSError: D:\ChatGLM2-6B does not appear to have a file named config.json. Checkout 'https://huggingface.co/D:\ChatGLM2-6B/None' for available files.
D:\ChatGLM2-6B\chatglm>pause
请按任意键继续. . .
2023年09月22日 16点09分 1
level 12
九天石 楼主
找到原因了,模型不全,找到并下载所有的模型配置文件就OK了。
2023年09月23日 01点09分 2
有下载地址吗?我清华网盘下载的也是报这个错
2023年10月25日 01点10分
@隆隆2018 下载地址我没有记…搜索本地部署方法,找里面的模型下载那一步的地址,打开有包含这个文件的全下载放到本地。
2023年10月25日 15点10分
@隆隆2018 清华网盘下载的,是个巨坑!我也是下载的这个,肯定有问题,跑不起来的,还是下载最新的去吧
2023年11月05日 15点11分
@隆隆2018 https://hf-mirror.com/THUDM/chatglm3-6b/tree/main 你们说的清华网盘地址发一个给我
2023年11月29日 09点11分
1