CoolFace
Modelpublic

imgailab/sdxl-torch-int8

sourceHugging Faceopenrailupdated 1y agoView on Hugging Face
0likes2downloads
Model Card

Stable Diffusion XL - PyTorch INT8

This is a INT8 pytorch version of stabilityai/stable-diffusion-xl-base-1.0.

Model Details

  • Model Type: Stable Diffusion XL
  • Parameters: 3.5B
  • Backend: PyTorch
  • Quantization: INT8
  • Memory Usage: ~3.2GB
  • Conversion Date: 2025-08-09

Usage

PyTorch INT8

python


# 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")

Performance

BackendQuantizationMemorySpeed (CPU)Speed (GPU)Quality
PyTorchINT8~3.2GBGoodFastSlightly Reduced

Limitations

  • INT8 quantization may slightly reduce image quality
  • Best suited for CPU inference or memory-constrained environments

Citation

bibtex
@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