Instructions to use kandinskylab/Kandinsky-ImageSR-2.0-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use kandinskylab/Kandinsky-ImageSR-2.0-GGUF with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("kandinskylab/Kandinsky-ImageSR-2.0-GGUF", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Kandinsky ImageSR 2.0 GGUF
Q8_0 transformer weights for native-resolution enhancement (×1) and ×2/×4
upscaling. This repository provides the matching configuration and
Apache-2.0 FLUX.1-schnell VAE for the ImageSR loader. The GGUF weights use
the kandinsky-imagesr architecture. The transformer takes 3.95 GiB on disk.
Original model · INT8 ConvRot · Gradio demo · ComfyUI node
For video upscaling, see Kandinsky 6.0 Video Super-Resolution. Demo · Model · GitHub
Run inference
Install PyTorch for your CUDA version, then install the ImageSR runtime.
pip install "kandinsky-image-sr[gguf] @ https://huggingface.co/kandinskylab/Kandinsky-ImageSR-2.0-GGUF/resolve/main/python/kandinsky_image_sr-1.1.1-py3-none-any.whl"
from huggingface_hub import hf_hub_download
from kandinsky_image_sr.quantization import load_quantized_pipeline
repo = "kandinskylab/Kandinsky-ImageSR-2.0-GGUF"
weights = hf_hub_download(repo, "Kandinsky-ImageSR-2.0-x1-Q8_0.gguf")
pipe = load_quantized_pipeline(repo, weights, "cuda")
pipe("input.png", upscale_factor=1, creativity=4).images[0].save("output.png")
Creativity ranges from 0 to 8 at all three scales, with level 4 as the default.
The ×1 default uses t = 0.05.
Use with ComfyUI
Search for Kandinsky ImageSR 2.0 in ComfyUI Manager or run
comfy node registry-install kandinsky-imagesr. Restart ComfyUI and download the
GGUF file from this repository. In Load Kandinsky ImageSR 2.0, set
model to kandinskylab/Kandinsky-ImageSR-2.0-GGUF and
transformer_weights to the local GGUF file. Open the workflow in
examples/ or see the ComfyUI setup guide.
H100 inference time
Median of three warmed runs on H100 80 GB with a 1024 × 1024 input,
25% overlap, and one tile per call. Measurements used t = 0.025 at ×1 and
Creativity 4 at ×2 and ×4, with compiled DiT blocks, a compiled VAE decoder,
and FlashAttention-3. Timing excludes PNG export.
| Scale | Output | GGUF Q8_0 compiled |
|---|---|---|
| ×1 | 1024 × 1024 | 0.178 s |
| ×2 | 2048 × 2048 | 1.52 s |
| ×4 | 4096 × 4096 | 4.25 s |
The compiled ×4 run peaked at 5.92 GiB of PyTorch VRAM.
- Downloads last month
- 14,098
8-bit
Model tree for kandinskylab/Kandinsky-ImageSR-2.0-GGUF
Base model
kandinskylab/Kandinsky-ImageSR-2.0