prior_pipeline = KandinskyPriorPipeline.from_pretrained("kandinsky-community/kandinsky-2-1-prior", torch_dtype=torch.float16, use_safetensors=True).to("cuda")
pipeline = KandinskyImg2ImgPipeline.from_pretrained("kandinsky-community/kandinsky-2-1", torch_dtype=torch.float16, use_safetensors=True).to("cuda")
```  
</hfoption>
<hfoption id="Kandinsky 2.2">  
```py
import torch
from diffusers import KandinskyV22Img2ImgPipeline, KandinskyPriorPipeline