Kandinsky ImageSR 2.0 baked transformer
The unmodified transformer from Kandinsky ImageSR 2.0, revision 124c46dec91d01085e2f13cb791bb8ca04ff5722. This is an image-super-resolution diffusion transformer; the VAE, tiling, preprocessing and scheduler are separate. The checkpoint includes precomputed zero-text cross-attention and visual modulation tables for 26 timesteps. Preserve these tables and source config; do not treat it as an unconditioned, generic DiT.
The included wheel is the unmodified kandinsky_image_sr-1.1.1 runtime distributed by the upstream GGUF repository at revision a7404c7cee2ea0d3dc216dd181102543dc906f5c; its SHA-256 is a2612f105f81d3eda5b1b1de3550bc2862e07a51309a6ab9e2043339757eb18d. Its bundled MIT license is included. The upstream model card declares MIT for the transformer; the separate VAE is Apache-2.0 and available at gatilin/kandinsky-imagesr2-vae.
Usage
Install the included wheel and its dependencies, then:
from kandinsky_image_sr import KandinskyImageSRBakedTransformer3DModel
model = KandinskyImageSRBakedTransformer3DModel.from_pretrained("gatilin/kandinsky-imagesr2-transformer")
Full forward requires 128×128 latent tiles and BF16 CUDA autocast for this baked-modulation checkpoint. Use the original pipeline for tile preparation, image conditioning, supported timesteps and VAE conventions. Loading the full checkpoint requires substantial memory.
Validation and provenance
All 707 checkpoint tensor names and shapes matched the official baked-transformer architecture. Transformer blocks 0 and 49 were individually loaded strictly with their baked buffers and evaluated on synthetic 2×2 token inputs with rotary positions on CPU FP32. Full 50-block inference, real image super-resolution, CUDA numerical behavior and task quality have not been tested. See validation.json.
The complete original file was obtained from a pinned official ModelScope mirror and its SHA-256 matched pinned Hugging Face LFS metadata: ec04f8d456b197bb0281d0ea7bb263f096d4ba3899233fa5c2ff8aceea8796af. See extraction.json.