Skip to content

Conversation

@ZeroBomb
Copy link

Per issue 274, fastsdcpu cannot load SDXL models from safetensor files. I reviewed the code and saw that the reason for this was the lack of a diffusers "from_single_file" method for SDXL.

The diffusers library now has this method, so I used it.

I am not familiar enough with safetensor files to do anything more sophisticated than "if the model has xl in the name, use the XL pipeline" but if anyone has an actual smart way of differentiating SDXL from SD1.5, feel free to use that instead.

Also, the SDXL pipeline does not appear to support whatever safety_checker parameters you were passing to the StableDiffusion pipeline, so I had to remove it.

@rupeshs
Copy link
Owner

rupeshs commented Jun 28, 2025

@ZeroBomb Thanks for the PR Have you tested it? Please share the model details

@ZeroBomb
Copy link
Author

I'm using it right now with the Juggernaut XL Lightning version from civitai.

I just realized I forgot to copy over the StableDiffusionXLPipeline import, I'll see if I can get that in now.

@monstruosoft
Copy link
Contributor

Does LCM-LoRA mode work with Illustrious based models? I've been trying to make some tests with no success. LCM-LoRA seems to work with SDXL based models but not with Illustrious (haven't tried Pony models), which is weird since I thought the base model was essentially the same SDXL.

@ZeroBomb
Copy link
Author

ZeroBomb commented Jul 20, 2025

I've had mixed results with illustrious models. On the one hand, they definitely work and can generate images. On the other hand, they tend to require more tweaks to the generation settings than the UI allows, so the outputs are low quality (they look a little bit like if I picked the wrong VAE in ComfyUI).

One thing I've done is commented out the "set guidance scale to 1" line so that I can run the base models with higher CFG guidance values, which helps a lot with the Illustrious models I've tried.

guidance_scale = 1.0

@monstruosoft
Copy link
Contributor

Interesting, gonna have to give it a try.

@rupeshs
Copy link
Owner

rupeshs commented Aug 17, 2025

@ZeroBomb @monstruosoft Does this PR works? It didn't work for me. Please confirm.Thank you!

@monstruosoft
Copy link
Contributor

I thought this PR was for LCM-LoRA mode, then I realized it was for LCM SDXL models, which I don't have any.
However, I've been working on a similar PR for LCM-LoRA and I was just waiting for my previous PR to be accepted so I might post a new PR soon.

@rupeshs
Copy link
Owner

rupeshs commented Aug 17, 2025

I thought this PR was for LCM-LoRA mode, then I realized it was for LCM SDXL models, which I don't have any. However, I've been working on a similar PR for LCM-LoRA and I was just waiting for my previous PR to be accepted so I might post a new PR soon.

Ok, thank you

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.

3 participants