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

weights_only=True for all the occurences of torch.load #391

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Joao-L-S-Almeida
Copy link
Member

@Joao-L-S-Almeida Joao-L-S-Almeida commented Jan 30, 2025

It will avoid PyTorch warnings and make the loading process more secure, since it won't load possible malicious code hidden in the checkpoints.

@Joao-L-S-Almeida Joao-L-S-Almeida linked an issue Jan 30, 2025 that may be closed by this pull request
@Joao-L-S-Almeida Joao-L-S-Almeida marked this pull request as ready for review January 30, 2025 15:32
@Joao-L-S-Almeida Joao-L-S-Almeida self-assigned this Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Loading weights using option weights_only=True.
1 participant