This repository holds an INT8 ConvRot version of kandinskylab/Kandinsky-6.0-VSR-2.0-distilled2steps-Diffusers. The folder layout, the configuration files and the scheduler are the same as in the original. Only the weight files are different.
| Component | Original (bf16) | This repository | Quantized tensors |
|---|---|---|---|
transformer/diffusion_pytorch_model.safetensors |
3.19 GB | 1.96 GB | 192 |
vae/diffusion_pytorch_model.safetensors |
6.96 GB | 2.46 GB | 59 |
latent_upscaler/diffusion_pytorch_model.safetensors |
7.31 GB | 4.13 GB | 76 |
The converter uses one INT8 scale for each output row. Before the quantization, a Hadamard rotation with group size 256 spreads the outlier values. The converter used no calibration data.
These tensors stay in the original data type: norms, embeddings, biases, modulation layers, and each layer with a relative error above 0.02. The file quantization_report.json lists every layer.
kandinsky6-sr. Use ComfyUI Manager (search for kandinsky6-sr), or follow the install steps in its README.ComfyUI/custom_nodes/.git clone https://github.com/anr2me/kandinsky6-sr-int8-convrot.gitComfyUI/models/diffusion_models/. Use this command: hf download anr2me/Kandinsky-6.0-VSR-2.0-distilled2steps-INT8-ConvRot --local-dir ComfyUI/models/diffusion_models/Kandinsky-6.0-VSR-2.0-distilled2steps-INT8-ConvRotLoad Diffusion Model for the transformer.Kandinsky6 SR VAE Loader (INT8 ConvRot) and Kandinsky6 SR Latent Upscaler Loader (INT8 ConvRot) for the other two models.NOTE: Do not use the folder name Kandinsky-6.0-VSR-2.0-distilled2steps-Diffusers. The official node pack uses this name for the original bf16 files. Do not select the INT8 files in the official VAE and latent upscaler loaders. They fail. The node repository has the folder layout and more details.
Use a Diffusers version that includes Kandinsky6SRPipeline. Install accelerate.
import sys, torch
from huggingface_hub import snapshot_download
root = snapshot_download("anr2me/Kandinsky-6.0-VSR-2.0-distilled2steps-INT8-ConvRot")
sys.path.insert(0, root)
from convrot_int8_loader import load_pipeline
pipe = load_pipeline(root, dtype=torch.bfloat16)
pipe.enable_model_cpu_offload()
The loader converts the weights to bf16 during the load. This saves disk space and download time. It does not save video memory.
int8_tensorwise format. Only the nodes of the node repository and the included loader can read it.latent_upscaler/diffusion_pytorch_model.safetensors 3.8 GiBvae/diffusion_pytorch_model.safetensors 2.3 GiBtransformer/diffusion_pytorch_model.safetensors 1.8 GiB