Image-to-Video
Diffusers
text-to-video
video-to-video
image-text-to-video
audio-to-video
text-to-audio
video-to-audio
audio-to-audio
text-to-audio-video
image-to-audio-video
image-text-to-audio-video
ltx-2
ltx-2-3
ltx-video
ltxv
lightricks
Instructions to use ibyteohdear/ltx-2-packages with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ibyteohdear/ltx-2-packages 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("ibyteohdear/ltx-2-packages", 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
| """CuTe DSL kernels for the DiffVAE decoder. | |
| Two kernels sharing one attention half (``fna_attn_core.attention_tile``): | |
| - :func:`~ltx_kernels.vae.block_fna_dsl.run_block_fna_dsl` -- the whole stage-5 | |
| ``DiffusionNABlock`` in one launch, with no full-volume Q/K/V. | |
| - :func:`~ltx_kernels.vae.na_attn_dsl.run_na_attention` -- standalone 3D neighborhood | |
| attention for the deterministic stages, a drop-in for ``natten.na3d``. | |
| Both need datacenter Blackwell (sm_100 / sm_103) or Jetson Thor (sm_110): they | |
| are built on ``tcgen05`` UMMA and Tensor Memory, which consumer Blackwell, Hopper | |
| and Ada do not have. Each launcher enforces that itself; ``block_fna_available`` / | |
| ``na_attn_available`` let a caller ask first and pick another path. | |
| """ | |
| from ltx_kernels.vae.block_fna_dsl import ( | |
| OUT_SLACK_ROWS, | |
| block_fna_available, | |
| fna_supported, | |
| pack_fused_ctx_weights, | |
| run_block_fna_dsl, | |
| ) | |
| from ltx_kernels.vae.na_attn_dsl import ( | |
| na_attn_available, | |
| na_supported, | |
| run_na_attention, | |
| run_na_attention_bound, | |
| ) | |
| from ltx_kernels.vae.softmax_bound import softmax_row_bound | |
| __all__ = [ | |
| "OUT_SLACK_ROWS", | |
| "block_fna_available", | |
| "fna_supported", | |
| "na_attn_available", | |
| "na_supported", | |
| "pack_fused_ctx_weights", | |
| "run_block_fna_dsl", | |
| "run_na_attention", | |
| "run_na_attention_bound", | |
| "softmax_row_bound", | |
| ] | |