This repository holds an INT8 ConvRot version of kandinskylab/Kandinsky-6.0-VSR-2.0-distilled2steps-Diffusers.
Each model is one file, in the folder layout of ComfyUI/models/. The config of each model is in the file header.
| Component | Original (bf16) | This repository | Quantized tensors |
|---|---|---|---|
diffusion_models/Kandinsky6_VSR_2.0_distilled2steps_int8_convrot.safetensors |
3.19 GB | 1.96 GB | 192 |
vae/Kandinsky6_VSR_2.0_KVAE_int8_convrot.safetensors |
6.96 GB | 2.46 GB | 59 |
upscale_models/Kandinsky6_VSR_2.0_LatentUpscaler_int8_convrot.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.
| File in this repository | Put it in |
|---|---|
diffusion_models/Kandinsky6_VSR_2.0_distilled2steps_int8_convrot.safetensors |
ComfyUI/models/diffusion_models/ |
vae/Kandinsky6_VSR_2.0_KVAE_int8_convrot.safetensors |
ComfyUI/models/vae/ |
upscale_models/Kandinsky6_VSR_2.0_LatentUpscaler_int8_convrot.safetensors |
ComfyUI/models/upscale_models/ |
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/. Use this command: hf download anr2me/Kandinsky-6.0-VSR-2.0-distilled2steps-INT8-ConvRot-Repackaged --include "diffusion_models/*" "vae/*" "upscale_models/*" --local-dir ComfyUI/modelsLoad Diffusion Model for the transformer.Kandinsky6 SR VAE Loader (INT8 ConvRot) and Kandinsky6 SR Latent Upscaler Loader (INT8 ConvRot) for the other two models.The official nodes alone cannot read these files. They need a folder with a config.json, and they cannot read INT8 weights. The nodes of the node repository read the files in this repository, and they do not need a patch of the official nodes.
Each file has its config in the safetensors header, under the key kandinsky6.component_config. This is the same key as in shadwosii/Kandinsky-6.0. The transformer file also has the key kandinsky6.scheduler_config. This second key is an addition of this repository. It holds the sampler settings that the official pack needs after the transformer load.
An external file next to a model file always has priority over the embedded config. The name is <file-name>.json. For the scheduler of the transformer, the name is <file-name>.scheduler.json. Use an external file to repair a bad embedded config. The node repository has the details.
int8_tensorwise format. Only the nodes of the node repository and the included loader can read it.upscale_models/Kandinsky6_VSR_2.0_LatentUpscaler_int8_convrot.safetensors 3.8 GiBvae/Kandinsky6_VSR_2.0_KVAE_int8_convrot.safetensors 2.3 GiBdiffusion_models/Kandinsky6_VSR_2.0_distilled2steps_int8_convrot.safetensors 1.8 GiBkandinskylab/Kandinsky-6.0-VSR-2.0-distilled2steps-Diffusers