Instructions to use phobos36/sdxl-lightning-4step-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use phobos36/sdxl-lightning-4step-lora with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("phobos36/sdxl-lightning-4step-lora") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
SDXL-Lightning 4-step LoRA (unmodified mirror)
This repository contains exactly one adapter checkpoint, copied without changes from ByteDance/SDXL-Lightning. It is a LoRA adapter, not a standalone image-generation model.
- Upstream revision:
c9a24f48e1c025556787b0c58dd67a091ece2e44. - File:
sdxl_lightning_4step_lora.safetensors. - Size:
393854592bytes. - SHA-256:
bf56cf2657efb15e465d81402ed481d1e11c4677e4bcce1bc11fe71ad8506b79. - Base model:
stabilityai/stable-diffusion-xl-base-1.0.
Copyright (c) 2024 Bytedance Inc. Copyright (c) 2023 Stability AI. The original CreativeML Open RAIL++-M license and its restrictions are preserved in LICENSE.md. This mirror is not an official ByteDance repository.
Loading
Attach this repository as a LoRA to an SDXL pipeline. For Diffusers:
pipe.load_lora_weights(
"YOUR_USERNAME/sdxl-lightning-4step-lora",
weight_name="sdxl_lightning_4step_lora.safetensors",
)
pipe.fuse_lora()
Use 4 inference steps, guidance_scale=0, and EulerDiscreteScheduler with timestep_spacing="trailing" and prediction_type="epsilon". Keep the upstream base-model and adapter license terms.
- Downloads last month
- 16
Model tree for phobos36/sdxl-lightning-4step-lora
Base model
stabilityai/stable-diffusion-xl-base-1.0