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

splite_mode, pipe_id for "RunDiffusion/Juggernaut-X-v10" #4

Open
ChuRuaNh0 opened this issue Jun 24, 2024 · 4 comments
Open

splite_mode, pipe_id for "RunDiffusion/Juggernaut-X-v10" #4

ChuRuaNh0 opened this issue Jun 24, 2024 · 4 comments

Comments

@ChuRuaNh0
Copy link

No description provided.

@ChuRuaNh0
Copy link
Author

Thank for your repo, It's so great, Can you support for RunDiffusion/Juggernaut-X-v10. I appreciate your help, thanks

@czg1225
Copy link
Owner

czg1225 commented Jun 25, 2024

Hi @ChuRuaNh0 ,
RunDiffusion/Juggernaut-X-v10 is supported now. You can try it following the simple usage example:

import torch
from diffusers import StableDiffusionXLPipeline
from src.async_sd import AsyncDiff

pipeline = StableDiffusionXLPipeline.from_pretrained("RunDiffusion/Juggernaut-X-v10", torch_dtype=torch.float16)

async_diff = AsyncDiff(pipeline, model_n=2, stride=1, time_shift=False)

async_diff.reset_state(warm_up=3)
image = pipeline(<prompts>).images[0]
if dist.get_rank() == 0:
  image.save(f"output.jpg")

@ChuRuaNh0
Copy link
Author

@czg1225 I have tried that you changed pipeline config the same sdxl-base-1.0 but it didn't work properly

@czg1225
Copy link
Owner

czg1225 commented Jun 25, 2024

@ChuRuaNh0 , Could you provide more details about your problem? I had no problems accelerating both sdxl-base-1.0 and RunDiffusion/Juggernaut-X-v10

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

2 participants