Downloads · 30 days
0
wangkanai/sdxl-fp16
sdxl-fp16 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++.
Local repository containing Stable Diffusion XL (SDXL) checkpoint models in FP16 precision for high-quality text-to-image generation.
Downloads · 30 days
0
Access
Public
Updated Oct 28, 2025
Repo size
20.8 GB
Likes
4
Public
Click a slice to open those files.
.safetensors20.8 GB · 100%
From the Hugging Face model README
Local repository containing Stable Diffusion XL (SDXL) checkpoint models in FP16 precision for high-quality text-to-image generation.
This repository contains two SDXL checkpoint models optimized for different use cases:
Both models use FP16 (16-bit floating point) precision, providing a balance between quality and VRAM efficiency.
E:\huggingface\sdxl-fp16\
├── checkpoints/
│ └── sdxl/
│ ├── sdxl-base.safetensors (6.94 GB)
│ └── sdxl-turbo.safetensors (13.88 GB)
├── diffusion_models/
│ └── sdxl/ (empty - reserved)
└── loras/
└── sdxl/ (empty - reserved)
Total Repository Size: ~20.82 GB
| File | Size | Description |
|---|---|---|
sdxl-base.safetensors | 6.94 GB | SDXL 1.0 base checkpoint (FP16) |
sdxl-turbo.safetensors | 13.88 GB | SDXL Turbo checkpoint (FP16) |
from diffusers import DiffusionPipeline
import torch
# Load SDXL base model from local path
pipe = DiffusionPipeline.from_single_file(
"E:/huggingface/sdxl-fp16/checkpoints/sdxl/sdxl-base.safetensors",
torch_dtype=torch.float16
)
pipe.to("cuda")
# Generate image with standard settings
image = pipe(
prompt="a beautiful mountain landscape at sunset, photorealistic, highly detailed",
negative_prompt="blurry, low quality, distorted",
num_inference_steps=50,
guidance_scale=7.5,
width=1024,
height=1024
).images[0]
image.save("output.png")
from diffusers import DiffusionPipeline
import torch
# Load SDXL Turbo for fast inference
pipe = DiffusionPipeline.from_single_file(
"E:/huggingface/sdxl-fp16/checkpoints/sdxl/sdxl-turbo.safetensors",
torch_dtype=torch.float16
)
pipe.to("cuda")
# Generate with minimal steps (1-4 steps)
image = pipe(
prompt="a futuristic cityscape at night, neon lights, cyberpunk",
num_inference_steps=4, # Turbo optimized for 1-4 steps
guidance_scale=0.0, # Turbo works best with guidance_scale=0
width=1024,
height=1024
).images[0]
image.save("turbo_output.png")
import torch
from diffusers import DiffusionPipeline
# Enable memory-efficient attention
pipe = DiffusionPipeline.from_single_file(
"E:/huggingface/sdxl-fp16/checkpoints/sdxl/sdxl-base.safetensors",
torch_dtype=torch.float16
)
# Apply optimizations
pipe.enable_attention_slicing()
pipe.enable_vae_slicing()
pipe.to("cuda")
# Generate with optimized memory usage
image = pipe(
prompt="your prompt here",
num_inference_steps=30
).images[0]
guidance_scale=0.0 for fastest generationpipe.enable_attention_slicing() for memory efficiencypipe.enable_vae_slicing() to reduce VRAM usageLicense: CreativeML Open RAIL++-M License
Stable Diffusion XL models are released under the CreativeML Open RAIL++-M license, which permits commercial use with the following key terms:
Key Restrictions: Cannot be used for illegal activities, generating harmful content, or violating privacy rights. See full license for complete terms.
If you use these models in your research or applications, please cite:
@misc{podell2023sdxl,
title={SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesis},
author={Dustin Podell and Zion English and Kyle Lacey and Andreas Blattmann and Tim Dockhorn and Jonas Müller and Joe Penna and Robin Rombach},
year={2023},
eprint={2307.01952},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
@inproceedings{sauer2023adversarial,
title={Adversarial Diffusion Distillation},
author={Sauer, Axel and Lorenz, Dominik and Blattmann, Andreas and Rombach, Robin},
booktitle={arXiv preprint arXiv:2311.17042},
year={2023}
}
Repository maintained locally | Last updated: 2025-10-28 | Version: v1.4