Instructions to use fal/LTX-2-FlashPack with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use fal/LTX-2-FlashPack with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("fal/LTX-2-FlashPack", 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
| { | |
| "_class_name": "Vocoder", | |
| "_diffusers_version": "0.37.0", | |
| "output_sample_rate": 24000, | |
| "resblock": "1", | |
| "resblock_dilation_sizes": [ | |
| [ | |
| 1, | |
| 3, | |
| 5 | |
| ], | |
| [ | |
| 1, | |
| 3, | |
| 5 | |
| ], | |
| [ | |
| 1, | |
| 3, | |
| 5 | |
| ] | |
| ], | |
| "resblock_kernel_sizes": [ | |
| 3, | |
| 7, | |
| 11 | |
| ], | |
| "stereo": true, | |
| "upsample_initial_channel": 1024, | |
| "upsample_kernel_sizes": [ | |
| 16, | |
| 15, | |
| 8, | |
| 4, | |
| 4 | |
| ], | |
| "upsample_rates": [ | |
| 6, | |
| 5, | |
| 2, | |
| 2, | |
| 2 | |
| ] | |
| } | |