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

Flax: Ignore PyTorch, ONNX files when they coexist with Flax weights #5237

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

pcuenca
Copy link
Member

@pcuenca pcuenca commented Sep 29, 2023

The following will download safetensors and onnx files:

from diffusers.pipelines import FlaxStableDiffusionXLPipeline
_ = FlaxStableDiffusionXLPipeline.from_pretrained(
    "stabilityai/stable-diffusion-xl-base-1.0",
    revision="refs/pr/95",
)

Ideally we should bring over some of the logic we've been adding to pipeline_utils.py, but this PR does the trick for now.

@patrickvonplaten
Copy link
Contributor

Thanks, noticed that too

@patrickvonplaten patrickvonplaten merged commit 0c7cb9a into main Oct 2, 2023
11 of 13 checks passed
@patrickvonplaten patrickvonplaten deleted the flax-ignore-patterns branch October 2, 2023 10:17
rchuzh99 pushed a commit to rchuzh99/diffusers that referenced this pull request Oct 4, 2023
…uggingface#5237)

Ignore PyTorch, ONNX files when they coexist with Flax weights
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
…uggingface#5237)

Ignore PyTorch, ONNX files when they coexist with Flax weights
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
…uggingface#5237)

Ignore PyTorch, ONNX files when they coexist with Flax weights
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.

2 participants