Downloads · 30 days
9
7% of all-time downloads
imgailab/sdxl-torch-int8
sdxl-torch-int8 is a text-to-image model from imgailab. 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 is a INT8 pytorch version of stabilityai/stable-diffusion-xl-base-1.0.
Downloads · 30 days
9
7% of all-time downloads
All-time downloads
128
Public
Repo size
4.2 GB
Likes
0
Public
Click a slice to open those files.
.bin4 GB · 96%
From the Hugging Face model README
This is a INT8 pytorch version of stabilityai/stable-diffusion-xl-base-1.0.
# PyTorch INT8 quantized model
from diffusers import StableDiffusionXLPipeline
import torch
# Load INT8 quantized model
pipe = StableDiffusionXLPipeline.from_pretrained(
"Mitchins/sdxl-torch-int8",
torch_dtype=torch.qint8,
use_safetensors=True
)
# For CPU inference
pipe = pipe.to("cpu")
# Generate image
image = pipe("A beautiful landscape", num_inference_steps=20).images[0]
image.save("output.png")
| Backend | Quantization | Memory | Speed (CPU) | Speed (GPU) | Quality |
|---|---|---|---|---|---|
| PyTorch | INT8 | ~3.2GB | Good | Fast | Slightly Reduced |
@misc{sdxl-pytorch-int8,
title = {Stable Diffusion XL PyTorch INT8}
author = {ImageAI Server Contributors}
year = {2024}
publisher = {HuggingFace}
url = {https://huggingface.co/Mitchins/sdxl-torch-int8}
}
Converted using ImageAI Server Model Converter v1.0