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

New ruleset: torch load models with safetensor #386

Open
thypon opened this issue Oct 5, 2023 · 1 comment
Open

New ruleset: torch load models with safetensor #386

thypon opened this issue Oct 5, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@thypon
Copy link
Member

thypon commented Oct 5, 2023

Code similar to:

        $VAR_TOKENIZER = $TOKENIZER.from_pretrained("...")

Should be marked, the advised fix is the same code plus the use_safetensors=True helper

        $VAR_TOKENIZER = $TOKENIZER.from_pretrained("...", use_safetensors=True)
@thypon thypon added the enhancement New feature or request label Oct 5, 2023
@thypon
Copy link
Member Author

thypon commented Oct 5, 2023

Cc @evq

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

No branches or pull requests

2 participants