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

Current version 4.37.1 only match torch>=1.13.0, not torch > 1.11 #28720

Closed
StrivedTye opened this issue Jan 26, 2024 · 3 comments · Fixed by #28725
Closed

Current version 4.37.1 only match torch>=1.13.0, not torch > 1.11 #28720

StrivedTye opened this issue Jan 26, 2024 · 3 comments · Fixed by #28725

Comments

@StrivedTye
Copy link

when using torch<1.13.0, current version (4.37.1) will report a OSError, because torch.load() in torch==1.12 does not has the keyword of weights_only. This issue occurs in the file modeling_utils, Line 533.

@amyeroberts
Copy link
Collaborator

cc @ydshieh

@ydshieh
Copy link
Collaborator

ydshieh commented Jan 26, 2024

Sorry, indeed, it's my bad

#28506 didn't fix #27282 properly, I will open a PR

@ydshieh
Copy link
Collaborator

ydshieh commented Jan 26, 2024

@StrivedTye Fix is merged. I tried it and it works. Let me know if you have further issue with this. Thanks for reporting the issue.

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

Successfully merging a pull request may close this issue.

3 participants