Downloads · 30 days
0
wangkanai/sdxl-fp8-loras-nsfw
sdxl-fp8-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++.
Collection of FP8-quantized Low-Rank Adaptation (LoRA) models for Stable Diffusion XL, optimized for NSFW/adult content generation with reduced memory footprint and enhanced performance on consumer hardware.
Downloads · 30 days
0
Access
Public
Updated Oct 28, 2025
Repo size
—
Likes
2
Public
Click a slice to open those files.
.md12.4 KB · 89%
From the Hugging Face model README
Collection of FP8-quantized Low-Rank Adaptation (LoRA) models for Stable Diffusion XL, optimized for NSFW/adult content generation with reduced memory footprint and enhanced performance on consumer hardware.
This repository contains FP8-quantized LoRA adapters for Stable Diffusion XL (SDXL) specialized for NSFW and adult content generation. FP8 quantization reduces memory usage by approximately 50% compared to FP16 while maintaining generation quality, enabling deployment on consumer hardware.
Key Features:
Capabilities:
sdxl-fp8-loras-nsfw/
├── loras/ # LoRA adapter files directory
│ └── sdxl/ # SDXL-specific LoRA adapters (empty)
├── .cache/ # Hugging Face upload cache
│ └── huggingface/
│ ├── .gitignore
│ └── upload/
│ └── README.md.metadata
├── NUL # System file (14 bytes)
└── README.md # This documentation (10.9 KB)
Total Repository Size: ~15 KB (structure only, no model files)
File Structure (when populated):
.safetensors files: FP8-quantized LoRA weight filesCurrent Status: Repository structure initialized and ready for model deployment. The loras/sdxl/ directory is prepared for FP8-quantized SDXL LoRA files.
from diffusers import DiffusionPipeline, StableDiffusionXLPipeline
import torch
# Load SDXL base model
pipe = StableDiffusionXLPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
torch_dtype=torch.float16,
variant="fp16",
use_safetensors=True
).to("cuda")
# Load FP8 LoRA adapter (update with actual model filename when available)
pipe.load_lora_weights(
r"E:\huggingface\sdxl-fp8-loras-nsfw\loras\sdxl",
weight_name="model_name.safetensors"
)
# Set LoRA scale (0.0-1.0, controls strength)
pipe.set_adapters(["lora"], adapter_weights=[0.8])
# Generate image
prompt = "your detailed prompt here"
negative_prompt = "low quality, blurry, distorted"
image = pipe(
prompt=prompt,
negative_prompt=negative_prompt,
num_inference_steps=30,
guidance_scale=7.5,
height=1024,
width=1024
).images[0]
image.save("output.png")
# Load multiple LoRAs for combined effects
pipe.load_lora_weights(r"E:\huggingface\sdxl-fp8-loras-nsfw\loras\sdxl", weight_name="style_lora.safetensors", adapter_name="style")
pipe.load_lora_weights(r"E:\huggingface\sdxl-fp8-loras-nsfw\loras\sdxl", weight_name="character_lora.safetensors", adapter_name="character")
# Set different weights for each LoRA
pipe.set_adapters(["style", "character"], adapter_weights=[0.7, 0.9])
image = pipe(prompt=prompt, **generation_params).images[0]
# Enable memory optimizations for lower VRAM
pipe.enable_model_cpu_offload()
pipe.enable_vae_slicing()
pipe.enable_vae_tiling()
# Generate with reduced memory footprint
image = pipe(
prompt=prompt,
num_inference_steps=25,
height=768,
width=768
).images[0]
ComfyUI/models/loras/stable-diffusion-webui/models/Lora/<lora:model_name:0.8>pipe.enable_model_cpu_offload() for <8GB VRAMpipe.enable_vae_slicing() reduces peak memorypipe.enable_vae_tiling() for large resolutionspipe.enable_attention_slicing() for memory-constrained systemspip install xformers for faster attentionnvidia-smi during generation⚠️ ADULT CONTENT WARNING: This repository contains LoRA models specifically designed for generating NSFW/adult content. Users must:
Ethical Guidelines:
This model collection is released under the OpenRAIL++ license, which:
Full License: See OpenRAIL++ License
Base Model License: Inherits from Stable Diffusion XL (OpenRAIL++)
Key Restrictions:
If you use these models in your research or applications, please cite:
@misc{sdxl-fp8-loras-nsfw,
title={SDXL FP8 LoRAs for NSFW Content Generation},
author={Repository Maintainer},
year={2025},
howpublished={\url{https://huggingface.co/your-username/sdxl-fp8-loras-nsfw}},
note={FP8-quantized LoRA adapters for Stable Diffusion XL}
}
@article{rombach2022high,
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={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
year={2022}
}
@article{podell2023sdxl,
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{\"u}ller, Jonas and Penna, Joe and Rombach, Robin},
journal={arXiv preprint arXiv:2307.01952},
year={2023}
}
loras/sdxl/ subdirectory pathsMaintained by: [Your Name/Organization] Contact: [Contact Information] Last Updated: 2025-10-28