THUDM / VisualGLM-6B

Chinese and English multimodal conversational language model | 多模态中英双语对话语言模型
Apache License 2.0
4.05k stars 414 forks source link

运行finetune代码时,报错没有model_config.json #341

Closed xiongxiaochu closed 5 months ago

xiongxiaochu commented 5 months ago

下载了模型文件,把model_type改成了本地路径,在运行finetune_visualglm.sh时报错 Traceback (most recent call last): File "/media/cfs/chatgpt/visual-glm/VisualGLM-6B/finetune_visualglm.py", line 180, in model, args = FineTuneVisualGLMModel.from_pretrained(model_type, args) File "/opt/conda/lib/python3.9/site-packages/sat/model/base_model.py", line 215, in from_pretrained return cls.from_pretrained_base(name, args=args, home_path=home_path, url=url, prefix=prefix, build_only=build_only, overwrite_args=overwrite_args, **kwargs) File "/opt/conda/lib/python3.9/site-packages/sat/model/base_model.py", line 205, in from_pretrained_base args = update_args_with_file(args, path=os.path.join(model_path, 'model_config.json')) File "/opt/conda/lib/python3.9/site-packages/sat/arguments.py", line 454, in update_args_with_file with open(path, 'r', encoding='utf-8') as f: FileNotFoundError: [Errno 2] No such file or directory: '/home/chatgpt/visual-glm/VisualGLM-6B-model/model_config.json'

但是下载的模型文件中没有model_config.json,只有config.json,请问这个需要如何解决?

然后我是mac,无法在本地安装triton,导致没有办法通过代码下载模型,请问能开源可以用于微调或者运行cli_demo的模型文件吗?