Downloads · 30 days
3
4% of all-time downloads
humbleakh/stable-diffusion-4bit-chain-of-zoom
stable-diffusion-4bit-chain-of-zoom is a machine learning model from humbleakh. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
4-bit quantized Stable Diffusion components optimized for super-resolution
Downloads · 30 days
3
4% of all-time downloads
All-time downloads
71
Public
Repo size
—
Likes
0
Public
Click a slice to open those files.
.md2.8 KB · 62%
From the Hugging Face model README
4-bit quantized Stable Diffusion components optimized for super-resolution
This model is part of the Chain-of-Zoom 4-bit Quantized Pipeline - a memory-optimized version of the original Chain-of-Zoom super-resolution framework.
# Install required packages
pip install transformers accelerate bitsandbytes torch
# Load quantized model
from transformers import BitsAndBytesConfig
import torch
# 4-bit quantization config
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_use_double_quant=True,
bnb_4bit_compute_dtype=torch.bfloat16
)
# Model-specific loading code here
# (See complete notebook for detailed usage)
@misc{chain-of-zoom-4bit-diffusion,
title={Chain-of-Zoom 4-bit Quantized Stable Diffusion 4-bit Quantized for Chain-of-Zoom},
author={humbleakh},
year={2024},
publisher={Hugging Face},
url={https://huggingface.co/humbleakh/stable-diffusion-4bit-chain-of-zoom}
}
Apache 2.0 - See original model licenses for specific components.