Instructions to use smthem/ltx-2-19b-dev-diffusers-test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use smthem/ltx-2-19b-dev-diffusers-test with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("smthem/ltx-2-19b-dev-diffusers-test", 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
| license: mit | |
| # Example | |
|  | |
| Use newest diffuser ltx-2 PR,convert ltx2 to diffusers models. | |
| A test models ,need newest pipelines | |
| need this PR [https://github.com/huggingface/diffusers/pull/12915 ](https://github.com/huggingface/diffusers/pull/12915) | |
| ``` | |
| python scripts/ltx2_test_full_pipeline.py \ | |
| --model_id Lightricks/LTX-2 \ | |
| --revision refs/pr/3 \ | |
| --cpu_offload | |
| ``` | |
| ``` | |
| python scripts/ltx2_test_full_pipeline_i2v.py \ | |
| --model_id /path/to/diffusers/model/ \ | |
| --image_path https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/astronaut.jpg \ | |
| --cpu_offload | |
| ``` |