clue-ai / ChatYuan

ChatYuan: Large Language Model for Dialogue in Chinese and English
https://www.clueai.cn
Other
1.9k stars 183 forks source link

离线怎么部署呀,Repo id must be in the form 'repo_name' or 'namespace/repo_name': './ClueAI/ChatYuan-large-v2' #48

Closed cghk002 closed 1 year ago

cghk002 commented 1 year ago

image image

joytianya commented 1 year ago

不要带./

cghk002 commented 1 year ago

不带./会在线下载,我想断网部署

joytianya commented 1 year ago

那你就离线先下载下来到指定目录,指定模型所在的路径

cghk002 commented 1 year ago

已经预先下载了huggingface里的所有文件,如图里的除了chat.py中的所有文件都已经下载到本地了,我使用"./ClueAI/ChatYuan-large-v2"就是想直接运行本地下载好的模型,但是运行以后报错为图二的console

cghk002 commented 1 year ago

已解决,需要使用path='ChatYuan-large-v2'即可,之前是因为config.json中的"_name_or_path": "ClueAI/ChatYuan-large-v2"有点误解我了,运行的时候不需要带前面的ClueAI,附上我的路径结构图 屏幕截图 2023-04-28 171935