How are you converting XL models to diffusers?

#1
by GraydientPlatformAPI - opened

I really appreciate the conversions you've made, I've been able to test some models that I wouldn't of otherwise had access to. I'd like to also convert a few to XL but I don't know how. I tried the XL to SD space on here and it ran off for over 30 minutes with no response. Any pointers appreciated!

Hi, the code is very simple to convert regular ckpt to diffusers format:

from diffusers import StableDiffusionXLPipeline
import torch

pipe = StableDiffusionXLPipeline.from_single_file("checkpoint.safetensors",torch_dtype=torch.float16)
import huggingface_hub

huggingface_hub.login(YOU_WRITE_TOKEN)
pipe.push_to_hub("SUPERXL")

Thanks to Kaggle, this can be done for free, as it has 30gb of RAM

firefox_7skf6Aols8.png

femboysLover changed discussion status to closed

Sign up or log in to comment