Downloads · 30 days
5
5% of all-time downloads
imgailab/sd15-torch-int8
sd15-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 runwayml/stable-diffusion-v1-5.
Downloads · 30 days
5
5% of all-time downloads
All-time downloads
96
Public
Repo size
2.6 GB
Likes
0
Public
Click a slice to open those files.
.bin2.4 GB · 93%
From the Hugging Face model README
This is a INT8 pytorch version of runwayml/stable-diffusion-v1-5.
# PyTorch INT8 quantized model
from diffusers import StableDiffusionPipeline
import torch
# Load INT8 quantized model
pipe = StableDiffusionPipeline.from_pretrained(
"Mitchins/sd15-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 | ~1.0GB | Good | Fast | Slightly Reduced |
@misc{sd15-pytorch-int8,
title = {Stable Diffusion 1.5 PyTorch INT8}
author = {ImageAI Server Contributors}
year = {2024}
publisher = {HuggingFace}
url = {https://huggingface.co/Mitchins/sd15-torch-int8}
}
Converted using ImageAI Server Model Converter v1.0