Downloads · 30 days
0
wangkanai/sdxl-fp16-loras
sdxl-fp16-loras is a text-to-image model from wangkanai. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as openrail++.
A curated collection of Low-Rank Adaptation (LoRA) models for Stable Diffusion XL in FP16 precision format. LoRAs enable efficient fine-tuning and style transfer with minimal storage requirements compared to full mode…
Downloads · 30 days
0
Access
Public
Updated Oct 28, 2025
Repo size
—
Likes
2
Public
Click a slice to open those files.
.md9.2 KB · 86%
From the Hugging Face model README
A curated collection of Low-Rank Adaptation (LoRA) models for Stable Diffusion XL in FP16 precision format. LoRAs enable efficient fine-tuning and style transfer with minimal storage requirements compared to full model fine-tunes.
This repository contains LoRA adapters for Stable Diffusion XL (SDXL) that can be applied on top of the base SDXL model to achieve specific artistic styles, concepts, or improvements. LoRAs use low-rank matrix decomposition to efficiently capture style and concept information in small files (typically 10-200 MB vs 6+ GB for full models).
sdxl-fp16-loras/
├── README.md # This file
└── loras/
└── sdxl/ # SDXL LoRA files (to be added)
Repository Status: Empty / Ready for population
This repository is structured and ready to receive SDXL LoRA files. LoRA models should be placed in the loras/sdxl/ directory.
Expected File Types:
.safetensors - Primary LoRA format (recommended).pt / .pth - PyTorch format (legacy)Typical LoRA Sizes: 10 MB - 200 MB per file
from diffusers import DiffusionPipeline
import torch
# Load base SDXL model
pipe = DiffusionPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
torch_dtype=torch.float16,
variant="fp16",
use_safetensors=True
)
pipe.to("cuda")
# Load LoRA weights
pipe.load_lora_weights("E:/huggingface/sdxl-fp16-loras/loras/sdxl/example_lora.safetensors")
# Generate image with LoRA applied
prompt = "a beautiful landscape with mountains and a lake"
image = pipe(
prompt=prompt,
num_inference_steps=30,
guidance_scale=7.5,
cross_attention_kwargs={"scale": 0.8} # LoRA strength (0.0-1.0)
).images[0]
image.save("output.png")
from diffusers import DiffusionPipeline
import torch
pipe = DiffusionPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
torch_dtype=torch.float16,
variant="fp16"
).to("cuda")
# Load multiple LoRAs with different strengths
pipe.load_lora_weights(
"E:/huggingface/sdxl-fp16-loras/loras/sdxl/style_lora.safetensors",
adapter_name="style"
)
pipe.load_lora_weights(
"E:/huggingface/sdxl-fp16-loras/loras/sdxl/detail_lora.safetensors",
adapter_name="detail"
)
# Set adapter weights
pipe.set_adapters(["style", "detail"], adapter_weights=[0.8, 0.6])
# Generate with combined LoRAs
image = pipe(prompt="your prompt here").images[0]
models/loras/ directorystable-diffusion-webui/models/Lora/ directory<lora:filename:strength>
beautiful landscape <lora:style_lora:0.8>torch.compile() for faster inference (PyTorch 2.0+)enable_model_cpu_offload() for low VRAM systemsWhen adding new LoRA files:
loras/sdxl/ directorystyle_name_v1.safetensorsRepository License: OpenRAIL++
This repository follows the OpenRAIL++ license, which is the standard license for Stable Diffusion XL models. Individual LoRA files may have additional licensing terms specified by their creators.
Important: Always verify the license of individual LoRA models before use, especially for commercial applications. Some LoRAs may have additional restrictions or requirements.
If using SDXL and LoRA models in research or publications:
@misc{sdxl2023,
title={SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesis},
author={Podell, Dustin and English, Zion and Lacey, Kyle and Blattmann, Andreas and Dockhorn, Tim and Müller, Jonas and Penna, Joe and Rombach, Robin},
year={2023}
}
@article{hu2021lora,
title={LoRA: Low-Rank Adaptation of Large Language Models},
author={Hu, Edward J and Shen, Yelong and Wallis, Phillip and Allen-Zhu, Zeyuan and Li, Yuanzhi and Wang, Shean and Wang, Lu and Chen, Weizhu},
journal={arXiv preprint arXiv:2106.09685},
year={2021}
}
Repository Maintained By: Local Collection Last Updated: 2025-10-28 Status: Active - Ready for LoRA additions