chatglm吧 关注:286贴子:453
  • 6回复贴,共1

求助启动出错找不到文件config.json

只看楼主收藏回复

提示如下:
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
请按任意键继续. . .


IP属地:广西1楼2023-09-23 00:24回复
    找到原因了,模型不全,找到并下载所有的模型配置文件就OK了。


    IP属地:广西来自Android客户端2楼2023-09-23 09:37
    收起回复