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

Load DDUF file with Diffusers using mmap #10448

Open
adhikjoshi opened this issue Jan 4, 2025 · 0 comments
Open

Load DDUF file with Diffusers using mmap #10448

adhikjoshi opened this issue Jan 4, 2025 · 0 comments

Comments

@adhikjoshi
Copy link

adhikjoshi commented Jan 4, 2025

DDUF support for diffusers is there and DDUF support mmap.

But diffusers example doesn't use or support mmap,

How can I load DDUF file to diffusers with mmap?

from diffusers import DiffusionPipeline
import torch

pipe = DiffusionPipeline.from_pretrained(
    "DDUF/FLUX.1-dev-DDUF", dduf_file="FLUX.1-dev.dduf", torch_dtype=torch.bfloat16
).to("cuda")
image = pipe(
    "photo a cat holding a sign that says Diffusers", num_inference_steps=50, guidance_scale=3.5
).images[0]
image.save("cat.png")
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

No branches or pull requests

1 participant