Instructions to use elismasilva/ltx2.3_video_custom_blocks with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use elismasilva/ltx2.3_video_custom_blocks 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("elismasilva/ltx2.3_video_custom_blocks", 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") - LTX-2
How to use elismasilva/ltx2.3_video_custom_blocks with LTX-2:
# Install the LTX-2 pipelines git clone https://github.com/Lightricks/LTX-2.git cd LTX-2 uv sync --frozen
# Download the weights from this repo, plus the Gemma text encoder hf download elismasilva/ltx2.3_video_custom_blocks --local-dir models/ltx2.3_video_custom_blocks hf download google/gemma-3-12b-it-qat-q4_0-unquantized --local-dir models/gemma-3-12b
# Fast pipeline (distilled model, no distilled LoRA needed) uv run python -m ltx_pipelines.distilled \ --distilled-checkpoint-path models/ltx2.3_video_custom_blocks/<distilled-checkpoint>.safetensors \ --spatial-upsampler-path models/ltx2.3_video_custom_blocks/<spatial-upsampler>.safetensors \ --gemma-root models/gemma-3-12b \ --prompt "A beautiful sunset over the ocean" \ --output-path output.mp4 # For image-to-video, add: --image path/to/image.jpg 0 0.8# HQ pipeline (two-stage, higher quality) uv run python -m ltx_pipelines.ti2vid_two_stages_hq \ --checkpoint-path models/ltx2.3_video_custom_blocks/<checkpoint>.safetensors \ --distilled-lora models/ltx2.3_video_custom_blocks/<distilled-lora>.safetensors 0.8 \ --spatial-upsampler-path models/ltx2.3_video_custom_blocks/<spatial-upsampler>.safetensors \ --gemma-root models/gemma-3-12b \ --prompt "A beautiful sunset over the ocean" \ --output-path output.mp4 # For image-to-video, add: --image path/to/image.jpg 0 0.8 - Notebooks
- Google Colab
- Kaggle
Commit History
25 days ago
-
Expose optional LTX attention dispatch override
9a0dec6
-
Organize user workflows and developer contracts
4c747e3