Local & Offline
~8 min readUpdated: November 2026

Kandinsky ImageSR 2.0: Single-Weight x2/x4 Diffusion Super-Resolution

Kandinsky ImageSR 2.0 Single-Step x2 and x4 Super-Resolution Architecture in Smoke Monkey

Kandinsky ImageSR 2.0 is an MIT-licensed 4.53B-parameter image super-resolution bundle built on the Kandinsky 5 transformer and FLUX.1-schnell VAE. A single checkpoint handles both x2 and x4 upscaling in one denoising step by replacing the text encoder and 50 cross-attention layers with compact per-timestep Safetensors conditioning tables.

Technical Review: Smoke Monkey Core Architecture Team
Tested on Node.js 18+ & BunTypeScript 5.x
Quick Answer & Executive Definition

Kandinsky ImageSR 2.0: Single-Weight x2/x4 Diffusion Super-Resolution: Kandinsky ImageSR 2.0 is an MIT-licensed 4.53B-parameter image super-resolution bundle built on the Kandinsky 5 transformer and FLUX.1-schnell VAE. A single checkpoint handles both x2 and x4 upscaling in one denoising step by replacing the text encoder and 50 cross-attention layers with compact per-timestep Safetensors conditioning tables. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.

Key Architectural Takeaways
Quick Implementation Examplekandinsky-imagesr-agent.ts
kandinsky-imagesr-agent.tstypescript
import { createAgent } from "@smoke-monkey/harness";
const superResAgent = createAgent({
agentId: "kandinsky-imagesr-upscaler",
provider: "ollama",
model: "qwen2.5-coder:14b",
workspacePath: process.cwd(),
permissions: {
read_file: "allow",
write_file: "allow",
run_command: "ask",
},
});
async function runTiledUpscalePipeline() {
const result = await superResAgent.run(
"Verify CUDA torch 2.13+ and diffusers >= 0.41, then execute " +
"KandinskyImageSRPipeline on assets/input.png with upscale_factor=4, " +
"one_step_t=0.244, dtype=bfloat16, and verify output resolution is 4x."
);
console.log("[ImageSR Agent] Summary:", result.summary);
}
runTiledUpscalePipeline().catch(console.error);
Video Guides

Watch: Related Video Guides

Can you enhance that? Single Image Super Resolution - Katarzyna Kańska

What is Single Image Super Resolution | Course of Development | Head First

What Is Kandinsky ImageSR 2.0? Architecture & Zero-Text Conditioning

Kandinsky ImageSR 2.0 is an MIT-licensed diffusion super-resolution model built on the Kandinsky 5 transformer (4.53B total parameters: 3.93B BF16 and 0.60B F32) paired with the Apache-2.0 FLUX.1-schnell VAE. Unlike multi-step text-guided upscalers, a single weight set performs both x2 and x4 upscaling in one forward step by replacing the text tower and all 50 cross-attention layers with pre-baked per-timestep Safetensors tables.

Removing the text encoder cuts VRAM overhead and eliminates prompt-drift artifacts during restoration. At inference time, the pipeline dispatches a calibrated one-step noise schedule (one_step_t defaults to 0.15 for x2 and 0.244 for x4) backed by 18 validated creativity levels (0..8 per scale factor) stored inside the repository config.

For large images, KandinskyImageSRPipeline decomposes the target canvas into 1024-pixel output tiles, runs tiled transformer denoising, and blends tile seams using boundary-aware Hanning windows. Small or non-square inputs are replicate-padded before encoding and cropped back to the exact target dimensions.

NVIDIA H100 Latency Benchmarks & Calibrated Creativity Ranges

Measured on an NVIDIA H100 80GB SXM running torch 2.13.0 (CUDA 12.9) in bfloat16 with tile_batch_size=1 and Diffusers 0.41+, median latency scales linearly with the 1024-pixel tile grid (five timed calls after two warm-up iterations):

Input ResolutionUpscale FactorOutput ResolutionTile GridMedian Time / Image
1K (1024 x 1024)x22K (2048 x 2048)3 x 32.78 s
1K (1024 x 1024)x44K (4096 x 4096)5 x 57.80 s
2K (2048 x 2048)x24K (4096 x 4096)5 x 57.84 s
2K (2048 x 2048)x48K (8192 x 8192)11 x 1137.5 s
4K (4096 x 4096)x28K (8192 x 8192)11 x 1137.7 s

Notice that 1K-to-4K (x4) and 2K-to-4K (x2) both evaluate a 5 x 5 tile grid and finish within 40 ms of each other (7.80 s vs 7.84 s), confirming that single-step DiT tile execution dominates total runtime rather than input encoding. Calibrated creativity ranges map t across 0.07-0.30 for x2 and 0.17-0.38 for x4; arbitrary uncalibrated one_step_t values are rejected because pre-baked cross-attention conditioning tables exist only for the 18 supported timesteps.

Reproducible Installation, Diffusers Inference & Verification Commands

Install PyTorch for your CUDA driver alongside the kandinsky-image-sr package (which depends on diffusers >= 0.41), then execute single-image upscaling or run the repository benchmark script:

bash
# 1. Install PyTorch CUDA wheels and kandinsky-image-sr
pip install torch --index-url https://download.pytorch.org/whl/cu128
pip install git+https://github.com/kandinskylab/kandinsky-image-sr.git

# 2. Clone and run the official H100/local reproduction benchmark
git clone https://github.com/kandinskylab/kandinsky-image-sr.git && cd kandinsky-image-sr
CUDA_VISIBLE_DEVICES=0 python scripts/test.py --image photo.jpg --backend native

In Python, load directly from Hugging Face via from_pretrained in torch.bfloat16:

python
import torch
from kandinsky_image_sr import KandinskyImageSRPipeline

pipe = KandinskyImageSRPipeline.from_pretrained(
    "kandinskylab/Kandinsky-ImageSR-2.0",
    dtype=torch.bfloat16,
).to("cuda")

result = pipe(
    "input.png",
    upscale_factor=4,
    one_step_t=0.244,
)
result.images[0].save("output_4k.png")

Automating Batch Asset Pipelines in Smoke Monkey Harness

Media pipelines and multimodal agents often receive low-resolution screenshots, product renders, or extracted PDF figures that degrade downstream OCR and VLM reasoning. Inside Smoke Monkey Harness, an agent can pre-screen image dimensions and invoke KandinskyImageSRPipeline only when source width falls below a configured pixel floor.

Because kandinsky_image_sr exposes deterministic creativity steps (0..8), agents can score sharpness via Laplacian variance or BRISQUE and step one_step_t down toward 0.07 (x2) or 0.17 (x4) for text-heavy UI screenshots where hallucinated micro-texture is undesirable, while keeping 0.244 for photorealistic assets.

Match Timestep Choice to Asset Type

Use lower creativity values (t=0.07-0.15 for x2, t=0.17-0.244 for x4) on UI diagrams and technical schematics to preserve crisp edge geometry without synthetic texture drift.

Google Search Questions & Answers

Frequently Asked Questions

Q:How does Kandinsky ImageSR 2.0 eliminate the text encoder?

Kandinsky ImageSR 2.0 replaces the full text encoder tower and all 50 cross-attention layers of the Kandinsky 5 transformer with small pre-baked per-timestep Safetensors conditioning tables, cutting VRAM usage and guaranteeing deterministic zero-text super-resolution.

Q:Can one Kandinsky ImageSR 2.0 checkpoint run both x2 and x4 upscaling?

Yes. A single 4.53B-parameter checkpoint handles both x2 (default one_step_t=0.15) and x4 (default one_step_t=0.244) upscaling via the upscale_factor parameter in KandinskyImageSRPipeline.

Q:How fast is Kandinsky ImageSR 2.0 at 4K and 8K resolution?

On an NVIDIA H100 80GB SXM in bfloat16 with tile_batch_size=1, upscaling 1K to 2K (x2, 3x3 tiles) takes 2.78 seconds, 1K to 4K (x4, 5x5 tiles) takes 7.80 seconds, and 2K to 8K (x4, 11x11 tiles) takes 37.5 seconds.

Q:Why can I not pass an arbitrary raw one_step_t value?

Because cross-attention conditioning is pre-baked per timestep in Safetensors tables, the pipeline only accepts the scale defaults (0.15 or 0.244) and the 18 calibrated creativity presets (levels 0..8 across x2 and x4) defined in the model configuration.

Q:What license governs Kandinsky ImageSR 2.0 for commercial use?

The Kandinsky 5 super-resolution transformer and pipeline code are licensed under MIT, and the bundled image VAE originates from the Apache-2.0 black-forest-labs/FLUX.1-schnell release.

Related Alternatives & Comparisons

Related Architecture Guides

View all guides

Build with Smoke Monkey Harness

Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.

npm install smoke-monkey-harness