pushanshan2

Results 2 comments of pushanshan2

你好,请问如何解决的 我也是第一次配置的时候,在执行demo.py时报错: File "/data/zhangxueyi/jmx/ChatGLM2-6B/web_demo.py", line 6, in model = AutoModel.from_pretrained("chatglm2-6b", trust_remote_code=True).cuda() File "/data/zhangxueyi/miniconda3/envs/llama_10/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 456, in from_pretrained config, kwargs = AutoConfig.from_pretrained( File "/data/zhangxueyi/miniconda3/envs/llama_10/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 944, in from_pretrained config_dict, unused_kwargs =...

> 日志里说`/home/3090-server/personal/bsc/ChatGLM/ChatGLM-6B/models`目录下没有`config.json`。 > > 可以尝试把[Hugging Face的仓库](https://huggingface.co/THUDM/chatglm-6b)clone下来,并在代码中指向仓库所在的目录,确保目录下有`config.json`。 你好,请问怎么在代码中指向仓库所在的目录哇