Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何加载本地模型 #63

Open
px2020zjut opened this issue Jul 23, 2023 · 0 comments
Open

如何加载本地模型 #63

px2020zjut opened this issue Jul 23, 2023 · 0 comments

Comments

@px2020zjut
Copy link

操作环境:WIN10+VSCODE
我已经把模型下载到本地文件夹preweight,然后采用如下函数测试,系统报错
config = AutoConfig.from_pretrained(pretrained_model_name_or_path='./preweight/',trust_remote_code=True)

Exception has occurred: FileNotFoundError
[Errno 2] No such file or directory: "C:\Users\Ad'min\AppData\Local\Temp\tmpwfgqi39a/./preweight/configuration_chatglm.py"
File "F:\ChatGLM-6B-main\ptuning\transbert.py", line 12, in
config = AutoConfig.from_pretrained(pretrained_model_name_or_path='./preweight/',trust_remote_code=True) # E.g. config (or model) was saved using save_pretrained('./test/saved_model/')
FileNotFoundError: [Errno 2] No such file or directory: "C:\Users\Ad'min\AppData\Local\Temp\tmpwfgqi39a/./preweight/configuration_chatglm.py"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant