*Latency was measured after the second inference run. The first run of the model can be slower due to the compilation process. Inference was measured on an NVIDIA H100 GPU with 80 GB of memory, using CUDA 12.8.1 and PyTorch 2.8. For 5-second models Flash Attention 3 was used.
Examples:
Results:
Side-by-Side evaluation
Comparison with FLUX.1 dev
Comparison with Qwen-Image
Kandinsky 5.0 Image Editing
Kandinsky 5.0 Image Editing is a line-up of 6B image editing models with the following capabilities:
*Latency was measured after the second inference run. The first run of the model can be slower due to the compilation process. Inference was measured on an NVIDIA H100 GPU with 80 GB of memory, using CUDA 12.8.1 and PyTorch 2.8. For 5-second models Flash Attention 3 was used.
Examples:
image
image
Change this to a cowboy hat.
Turn this into a neon sign hanging
on a brick wall in a cool modern office.
image
image
Swap your sweatshirt for a se-
quined evening dress, add some bright jewelry,
and brighten your lips and eyes. Keep the angle.
python test.py --config ./configs/k5_lite_t2i_sft_hd.yaml --prompt "A dog in a red hat" --width=1280 --height=768
T2I Inference
python
1import torch
2from kandinsky import get_T2I_pipeline
34device_map ={5"dit": torch.device('cuda:0'),6"vae": torch.device('cuda:0'),7"text_embedder": torch.device('cuda:0')8}910pipe = get_T2I_pipeline(device_map, conf_path="configs/k5_lite_t2i_sft_hd.yaml")1112images = pipe(13 seed=42,14 save_path='./test.png',15 text="A cat in a red hat with a label 'HELLO'"16)
I2I Inference
python
1import torch
2from kandinsky import get_I2I_pipeline
34device_map ={5"dit": torch.device('cuda:0'),6"vae": torch.device('cuda:0'),7"text_embedder": torch.device('cuda:0')8}910pipe = get_I2I_pipeline(11 resolution=1024, offload=True,12 device_map=device_map,13)14out = pipe(15"Replace the cat with a husky, leave the rest unchanged",16 image='./assets/cat_in_hat.png'17)18
Please, refer to examples folder for more examples in various notebooks.
Distributed Inference
For a faster inference, we also provide the capability to perform inference in a distributed way:
The attention algorithm can be selected using an option "--attention_engine" of test.py script for 5 second (and less) video generation. For 10-second generation we use sparse attention algorithm NABLA.
Note that currently (19 Oct. 2025) version build from source contains a bug and produces noisy output. A temporary workaround to fix it is decribed here.
python test.py --prompt "A dog in red hat" --attention_engine=flash_attention_3
python test.py --prompt "A dog in red hat" --attention_engine=flash_attention_2
python test.py --prompt "A dog in red hat" --attention_engine=sdpa
python test.py --prompt "A dog in red hat" --attention_engine=sage
By default we use option --attention_engine=auto which enables automatic selection of the most optimal algorithm installed in your system.
Track Leaders: Vladimir Arkhipkin, Vladimir Korviakov, Nikolai Gerasimenko, Denis
Parkhomenko
Project Supervisor: Denis Dimitrov
Citation
@misc{arkhipkin2025kandinsky50familyfoundation,
title={Kandinsky 5.0: A Family of Foundation Models for Image and Video Generation},
author={Vladimir Arkhipkin and Vladimir Korviakov and Nikolai Gerasimenko and Denis Parkhomenko and Viacheslav Vasilev and Alexey Letunovskiy and Nikolai Vaulin and Maria Kovaleva and Ivan Kirillov and Lev Novitskiy and Denis Koposov and Nikita Kiselev and Alexander Varlamov and Dmitrii Mikhailov and Vladimir Polovnikov and Andrey Shutkin and Julia Agafonova and Ilya Vasiliev and Anastasiia Kargapoltseva and Anna Dmitrienko and Anastasia Maltseva and Anna Averchenkova and Olga Kim and Tatiana Nikulina and Denis Dimitrov},
year={2025},
eprint={2511.14993},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2511.14993},
}
@misc{mikhailov2025nablanablaneighborhoodadaptiveblocklevel,
title={$\nabla$NABLA: Neighborhood Adaptive Block-Level Attention},
author={Dmitrii Mikhailov and Aleksey Letunovskiy and Maria Kovaleva and Vladimir Arkhipkin
and Vladimir Korviakov and Vladimir Polovnikov and Viacheslav Vasilev
and Evelina Sidorova and Denis Dimitrov},
year={2025},
eprint={2507.13546},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2507.13546},
}
Acknowledgements
We gratefully acknowledge the open-source projects and research that made Kandinsky 5.0 possible: