Instructions to use kandinskylab/Kandinsky-5.0-T2V-Lite-sft-5s-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use kandinskylab/Kandinsky-5.0-T2V-Lite-sft-5s-Diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("kandinskylab/Kandinsky-5.0-T2V-Lite-sft-5s-Diffusers", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Update README.md
#4
by leffff - opened
README.md
CHANGED
|
@@ -43,7 +43,7 @@ from diffusers.utils import export_to_video
|
|
| 43 |
# Load the pipeline
|
| 44 |
pipe = Kandinsky5T2VPipeline.from_pretrained(
|
| 45 |
"ai-forever/Kandinsky-5.0-T2V-Lite-sft-5s-Diffusers",
|
| 46 |
-
torch_dtype=torch.
|
| 47 |
)
|
| 48 |
pipe = pipe.to("cuda")
|
| 49 |
|
|
@@ -73,25 +73,25 @@ from diffusers import Kandinsky5T2VPipeline
|
|
| 73 |
# SFT 5s model (highest quality)
|
| 74 |
pipe_sft = Kandinsky5T2VPipeline.from_pretrained(
|
| 75 |
"ai-forever/Kandinsky-5.0-T2V-Lite-sft-5s-Diffusers",
|
| 76 |
-
torch_dtype=torch.
|
| 77 |
)
|
| 78 |
|
| 79 |
# Distilled 16-step model (fastest)
|
| 80 |
pipe_distill = Kandinsky5T2VPipeline.from_pretrained(
|
| 81 |
"ai-forever/Kandinsky-5.0-T2V-Lite-distilled16steps-5s-Diffusers",
|
| 82 |
-
torch_dtype=torch.
|
| 83 |
)
|
| 84 |
|
| 85 |
# No-CFG model (balanced speed/quality)
|
| 86 |
pipe_nocfg = Kandinsky5T2VPipeline.from_pretrained(
|
| 87 |
"ai-forever/Kandinsky-5.0-T2V-Lite-nocfg-5s-Diffusers",
|
| 88 |
-
torch_dtype=torch.
|
| 89 |
)
|
| 90 |
|
| 91 |
# Pretrain model (most diverse)
|
| 92 |
pipe_pretrain = Kandinsky5T2VPipeline.from_pretrained(
|
| 93 |
"ai-forever/Kandinsky-5.0-T2V-Lite-pretrain-5s-Diffusers",
|
| 94 |
-
torch_dtype=torch.
|
| 95 |
)
|
| 96 |
```
|
| 97 |
|
|
|
|
| 43 |
# Load the pipeline
|
| 44 |
pipe = Kandinsky5T2VPipeline.from_pretrained(
|
| 45 |
"ai-forever/Kandinsky-5.0-T2V-Lite-sft-5s-Diffusers",
|
| 46 |
+
torch_dtype=torch.bfloat16
|
| 47 |
)
|
| 48 |
pipe = pipe.to("cuda")
|
| 49 |
|
|
|
|
| 73 |
# SFT 5s model (highest quality)
|
| 74 |
pipe_sft = Kandinsky5T2VPipeline.from_pretrained(
|
| 75 |
"ai-forever/Kandinsky-5.0-T2V-Lite-sft-5s-Diffusers",
|
| 76 |
+
torch_dtype=torch.bfloat16
|
| 77 |
)
|
| 78 |
|
| 79 |
# Distilled 16-step model (fastest)
|
| 80 |
pipe_distill = Kandinsky5T2VPipeline.from_pretrained(
|
| 81 |
"ai-forever/Kandinsky-5.0-T2V-Lite-distilled16steps-5s-Diffusers",
|
| 82 |
+
torch_dtype=torch.bfloat16
|
| 83 |
)
|
| 84 |
|
| 85 |
# No-CFG model (balanced speed/quality)
|
| 86 |
pipe_nocfg = Kandinsky5T2VPipeline.from_pretrained(
|
| 87 |
"ai-forever/Kandinsky-5.0-T2V-Lite-nocfg-5s-Diffusers",
|
| 88 |
+
torch_dtype=torch.bfloat16
|
| 89 |
)
|
| 90 |
|
| 91 |
# Pretrain model (most diverse)
|
| 92 |
pipe_pretrain = Kandinsky5T2VPipeline.from_pretrained(
|
| 93 |
"ai-forever/Kandinsky-5.0-T2V-Lite-pretrain-5s-Diffusers",
|
| 94 |
+
torch_dtype=torch.bfloat16
|
| 95 |
)
|
| 96 |
```
|
| 97 |
|