Downloads · 30 days
0
wangkanai/sdxl-fp16-loras-nsfw
sdxl-fp16-loras-nsfw 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++.
This repository contains a collection of FP16 precision LoRA (Low-Rank Adaptation) adapters for Stable Diffusion XL (SDXL) models, focused on NSFW (Not Safe For Work) content generation.
Downloads · 30 days
0
Access
Public
Updated Oct 14, 2025
Repo size
—
Likes
9
Public
Click a slice to open those files.
.md8.6 KB · 85%
From the Hugging Face model README
This repository contains a collection of FP16 precision LoRA (Low-Rank Adaptation) adapters for Stable Diffusion XL (SDXL) models, focused on NSFW (Not Safe For Work) content generation.
LoRA adapters provide efficient fine-tuning of SDXL models by training only a small subset of parameters, enabling:
Precision: FP16 (Float16) for balance between quality and file size Base Model: Stable Diffusion XL Base 1.0 Content: NSFW-focused LoRA adapters
sdxl-fp16-loras-nsfw/
├── loras/
│ └── sdxl/ # SDXL LoRA adapters (.safetensors)
└── README.md # This file
Status: Repository is currently empty. Model files will be added in .safetensors format.
Expected structure:
loras/sdxl/*.safetensors - Individual LoRA adapter filesfrom 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"
)
pipe.to("cuda")
# Load LoRA weights
lora_path = "E:/huggingface/sdxl-fp16-loras-nsfw/loras/sdxl/example_lora.safetensors"
pipe.load_lora_weights(lora_path)
# Generate image
prompt = "your prompt here"
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")
# Load multiple LoRAs with different strengths
pipe.load_lora_weights(
"E:/huggingface/sdxl-fp16-loras-nsfw/loras/sdxl/style_lora.safetensors",
adapter_name="style"
)
pipe.load_lora_weights(
"E:/huggingface/sdxl-fp16-loras-nsfw/loras/sdxl/character_lora.safetensors",
adapter_name="character"
)
# Set adapter weights
pipe.set_adapters(["style", "character"], adapter_weights=[0.7, 0.8])
# Generate with combined LoRAs
image = pipe(prompt).images[0]
# Enable memory optimizations
pipe.enable_model_cpu_offload()
pipe.enable_vae_slicing()
pipe.enable_attention_slicing()
# Generate with reduced memory footprint
image = pipe(
prompt,
num_inference_steps=25,
guidance_scale=7.5
).images[0]
ComfyUI/models/loras/stable-diffusion-webui/models/Lora/<lora:filename:strength>
beautiful portrait <lora:style_lora:0.8># Aggressive memory optimization
pipe.enable_model_cpu_offload()
pipe.enable_vae_tiling()
pipe.enable_attention_slicing(slice_size=1)
# Clear cache between generations
import gc
gc.collect()
torch.cuda.empty_cache()
This repository follows the OpenRAIL++ License, which permits:
Important Restrictions:
Full license: CreativeML Open RAIL++-M License
This repository contains adapters designed for NSFW (Not Safe For Work) content generation. Users must:
If you use these models in research or production, please cite:
@misc{sdxl-fp16-loras-nsfw,
title={SDXL FP16 LoRA Collection - NSFW},
author={Community Contributors},
year={2025},
publisher={Hugging Face},
howpublished={\url{https://huggingface.co/sdxl-fp16-loras-nsfw}}
}
@article{rombach2022stable,
title={High-Resolution Image Synthesis with Latent Diffusion Models},
author={Rombach, Robin and Blattmann, Andreas and Lorenz, Dominik and Esser, Patrick and Ommer, Bj{\"o}rn},
journal={CVPR},
year={2022}
}
@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}
}
For issues, questions, or contributions:
Repository Status: Empty - Awaiting model file additions
Last Updated: 2025-10-14
README Version: v1.2