Skip to content

fix a regression in is_safetensors_compatible - #9234

Merged
DN6 merged 1 commit into
mainfrom
fix-safetensors-check
Aug 21, 2024
Merged

fix a regression in is_safetensors_compatible#9234
DN6 merged 1 commit into
mainfrom
fix-safetensors-check

Conversation

@yiyixuxu

@yiyixuxuyiyixuxu commented Aug 21, 2024

Copy link
Copy Markdown
Collaborator

we cannot run this script anymore because the repo contains additional folders like vae_decoder etc (discovered when I try to run the testing script from this PR #8990)

importtorchfromdiffusersimportAutoPipelineForImage2Imagepipe=AutoPipelineForImage2Image.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
variant="fp16",
use_safetensors=True,
torch_dtype=torch.float16,
)

fixing here

@yiyixuxu
yiyixuxu requested a review from DN6August 21, 2024 03:28
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

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.

DN6
DN6 approved these changes Aug 21, 2024

@DN6DN6 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Great catch 💪🏽 thanks for fixing 🙏🏽

@DN6
DN6 merged commit 214372a into mainAug 21, 2024
@yiyixuxu
yiyixuxu deleted the fix-safetensors-check branch August 21, 2024 17:21
sayakpaul pushed a commit that referenced this pull request Dec 23, 2024
Sign up for freeto 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.

3 participants

@yiyixuxu@HuggingFaceDocBuilderDev@DN6