Skip to content

Instantly share code, notes, and snippets.

@alfredplpl
Created November 10, 2023 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alfredplpl/b2cd2f99adad328ca0059d446820e476 to your computer and use it in GitHub Desktop.
Save alfredplpl/b2cd2f99adad328ca0059d446820e476 to your computer and use it in GitHub Desktop.
# MIT
from diffusers import StableDiffusionXLPipeline
import torch
pipe = StableDiffusionXLPipeline.from_single_file('/path/to/checkpoint.safetensors', torch_dtype=torch.float16)
pipe.save_pretrained('/path/to/diffusers_version')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment