ChatGLM-6B icon indicating copy to clipboard operation
ChatGLM-6B copied to clipboard

fixed cannot launch api.py

Open zerodegress opened this issue 3 years ago • 1 comments

修复了api.py启动不了的问题 单纯的改了下大小写 #218

zerodegress avatar Mar 24 '23 07:03 zerodegress

还需要修改模型名称,修改完毕以后,我在本地运行成功了。 将

model = AutoModel.from_pretrained("THUDM/chatglm_6b", trust_remote_code=True).half().cuda()

修改为

model = AutoModel.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True).half().cuda()

xwdreamer avatar Mar 24 '23 07:03 xwdreamer