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

Do not trigger autoconversion if local_files_only #31004

Merged
merged 1 commit into from
May 24, 2024

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented May 24, 2024

See slack thread (internal).

Since #29846 (cc @LysandreJik) if pytorch weights are loaded and safetensors ones don't exist, we trigger an autoconversion of the weights. This should not impact user's experience. This PR disable the autoconversion call if local_files_only=True is passed.

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Lucain!

@ArthurZucker ArthurZucker merged commit 03935d3 into main May 24, 2024
2 of 6 checks passed
@ArthurZucker ArthurZucker deleted the fix-local-files-only-autoconversion branch May 24, 2024 09:01
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

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 this pull request may close these issues.

None yet

4 participants