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

使用提供的模型权重推理时报模型加载出错 #75

Open
silencewa opened this issue Mar 19, 2024 · 0 comments
Open

使用提供的模型权重推理时报模型加载出错 #75

silencewa opened this issue Mar 19, 2024 · 0 comments

Comments

@silencewa
Copy link

Traceback (most recent call last):
File "web_demo.py", line 154, in
main(args)
File "web_demo.py", line 90, in main
model, model_args = AutoModel.from_pretrained(
File "/root/miniconda3/lib/python3.8/site-packages/sat/model/base_model.py", line 275, in from_pretrained
load_checkpoint(model, args, load_path=model_path, prefix=prefix)
File "/root/miniconda3/lib/python3.8/site-packages/sat/training/model_io.py", line 222, in load_checkpoint
sd = torch.load(checkpoint_name, map_location='cpu')
File "/root/miniconda3/lib/python3.8/site-packages/torch/serialization.py", line 713, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "/root/miniconda3/lib/python3.8/site-packages/torch/serialization.py", line 920, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, 'v'.

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