This is a randomly initialized tiny model based on kandinskylab/Kandinsky-ImageSR-2.0 for testing and debugging.

Feature Source This repo
Checkpoint tensor elements 4.04B BF16, 5.97M F32 6.18M BF16, 31.62K F32
Safetensors weight files 8.10 GB (2 files) 12.52 MB (2 files)
Transformer width / FFN width / blocks 2560 / 10240 / 50 128 / 512 / 4
Attention heads / head dimension 20 / 128 4 / 32
3D RoPE axis dimensions 32 / 48 / 48 8 / 12 / 12
Time embedding width 512 64
Baked one-step timesteps 26 Same
Visual / latent channels 16 Same
Baked latent / tile size / overlap 128 / 1024 / 0.25 Same
Upscale factors / default timesteps 1, 2, 4 / 0.05, 0.15, 0.244 Same
VAE stages / downsampling 4 / 8x Same
VAE stage widths / residual blocks 128 / 256 / 512 / 512 / 2 32 / 64 / 128 / 128 / 2
Transformer precision BF16 with FP32 time/modulation tables Same
VAE precision BF16 Same
Text conditioning None: zero-text outputs baked into tables Same
Inputs / output Image β†’ super-resolved image at x1, x2 or x4 Same
File path Size
transformer/diffusion_pytorch_model.safetensors 1.9MB
vae/diffusion_pytorch_model.safetensors 10.6MB

Example usage

Diffusers super-resolution (βœ… verified)

The pipeline is prompt-free: zero-text cross-attention, timestep embeddings and per-block modulation are baked into the checkpoint. Install the external pipeline package first: pip install --no-deps https://huggingface.co/kandinskylab/Kandinsky-ImageSR-2.0-GGUF/resolve/main/python/kandinsky_image_sr-1.1.1-py3-none-any.whl (the wheel pins huggingface-hub<2 in metadata but only imports Diffusers primitives). The baked transformer requires BF16 CUDA autocast, one tile per forward and a 128x128 latent, so a CUDA GPU is required.

def run_diffusers(model_id: str):
    import torch
    from PIL import Image
    from kandinsky_image_sr import KandinskyImageSRPipeline

    pipe = KandinskyImageSRPipeline.from_pretrained(model_id, dtype=torch.bfloat16).to("cuda")
    image = Image.new("RGB", (64, 64), color=(128, 160, 192))
    for factor in (1, 2, 4):
        output = pipe(image, upscale_factor=factor, creativity=4).images[0]
        output.save(f"kandinsky-imagesr-x{factor}.png")
        print(f"x{factor}", output.size)
    print(pipe.transformer)


if __name__ == "__main__":
    run_diffusers(model_id="tiny-random/kandinsky-imagesr-2.0")

Creating this repo

Change log

  • 2026-11-30: Initial tiny BF16 Kandinsky-ImageSR 2.0 with baked text conditioning.

This repo is generated by DeepSeek-V4.1-Flash.

Downloads last month
14
Safetensors
Model size
917k params
Tensor type
F32
Β·
BF16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for tiny-random/kandinsky-imagesr-2.0

Finetuned
(11)
this model

Collection including tiny-random/kandinsky-imagesr-2.0