Instructions to use radna/LTX-Video-Minimal with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use radna/LTX-Video-Minimal with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image, export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("radna/LTX-Video-Minimal", dtype=torch.bfloat16, device_map="cuda") pipe.to("cuda") prompt = "A man with short gray hair plays a red electric guitar." image = load_image( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png" ) output = pipe(image=image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Notebooks
- Google Colab
- Kaggle
| { | |
| "_class_name": "Transformer3DModel", | |
| "_diffusers_version": "0.25.1", | |
| "_name_or_path": "PixArt-alpha/PixArt-XL-2-256x256", | |
| "activation_fn": "gelu-approximate", | |
| "attention_bias": true, | |
| "attention_head_dim": 64, | |
| "attention_type": "default", | |
| "caption_channels": 4096, | |
| "cross_attention_dim": 2048, | |
| "double_self_attention": false, | |
| "dropout": 0.0, | |
| "in_channels": 128, | |
| "norm_elementwise_affine": false, | |
| "norm_eps": 1e-06, | |
| "norm_num_groups": 32, | |
| "num_attention_heads": 32, | |
| "num_embeds_ada_norm": 1000, | |
| "num_layers": 28, | |
| "num_vector_embeds": null, | |
| "only_cross_attention": false, | |
| "out_channels": 128, | |
| "project_to_2d_pos": true, | |
| "upcast_attention": false, | |
| "use_linear_projection": false, | |
| "qk_norm": "rms_norm", | |
| "standardization_norm": "rms_norm", | |
| "positional_embedding_type": "rope", | |
| "positional_embedding_theta": 10000.0, | |
| "positional_embedding_max_pos": [20, 2048, 2048], | |
| "timestep_scale_multiplier": 1000 | |
| } | |