KeyError: ('torch._utils', '_rebuild_parameter') when convert CodeShell-7B-Chat-int4 #4255
workmanihcj
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
when use convert.py convert CodeShell-7B-Chat-int4\pytorch_model.bin output below error, please help me find reason,thanks!
(base) D:\llama_tools>Python convert.py models/CodeShell-7B-Chat-int4/
Loading model file models\CodeShell-7B-Chat-int4\pytorch_model.bin
Traceback (most recent call last):
File "D:\llama_tools\convert.py", line 1229, in
main()
File "D:\llama_tools\convert.py", line 1162, in main
model_plus = load_some_model(args.model)
File "D:\llama_tools\convert.py", line 1077, in load_some_model
models_plus.append(lazy_load_file(path))
File "D:\llama_tools\convert.py", line 751, in lazy_load_file
return lazy_load_torch_file(fp, path)
File "D:\llama_tools\convert.py", line 707, in lazy_load_torch_file
model = unpickler.load()
File "D:\llama_tools\convert.py", line 696, in find_class
return self.CLASSES[(module, name)]
KeyError: ('torch._utils', '_rebuild_parameter')
Beta Was this translation helpful? Give feedback.
All reactions