Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

elismasilva
/
ltx2.3_video_custom_blocks

Image-to-Video
Diffusers
LTX-2
text-to-video
audio-to-video
modular-diffusers
diffusion
ltx2-video
Model card Files Files and versions
xet
Community

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
ltx2.3_video_custom_blocks / docs
3.58 kB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 2 commits
elismasilva's picture
elismasilva
Expose optional LTX attention dispatch override
9a0dec6 25 days ago
  • developer
    Expose optional LTX attention dispatch override 25 days ago
  • user
    Organize user workflows and developer contracts about 1 month ago
  • README.md
    326 Bytes
    Organize user workflows and developer contracts about 1 month ago