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

tiny-random
/
ltx-2-5

Image-to-Video
Diffusers
Diffusion Single File
LTX-2
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-video
lightricks
comfyui
ltx-2.5
Model card Files Files and versions
xet
Community

Instructions to use tiny-random/ltx-2-5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use tiny-random/ltx-2-5 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("tiny-random/ltx-2-5", 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")
  • Diffusion Single File

    How to use tiny-random/ltx-2-5 with Diffusion Single File:

    # No code snippets available yet for this library.
    
    # To use this model, check the repository files and the library's documentation.
    
    # Want to help? PRs adding snippets are welcome at:
    # https://github.com/huggingface/huggingface.js
  • LTX-2

    How to use tiny-random/ltx-2-5 with LTX-2:

    # Install the LTX-2 pipelines
    git clone https://github.com/Lightricks/LTX-2.git
    cd LTX-2
    uv sync --extra natten
    # Download weights from this repo
    # Substitute filenames from this repo's "Files and versions" if they differ
    hf download tiny-random/ltx-2-5 \
        diffusion_models/<distilled-transformer>.safetensors \
        text_encoders/gemma4-12b-with-proj-ltx-2.5-bf16.safetensors \
        vae/<video-vae>.safetensors \
        vae/<audio-vae>.safetensors \
        latent_upscale_models/<spatial-upsampler>.safetensors \
        latent_upscale_models/<temporal-upsampler>.safetensors \
        --local-dir models/ltx-2-5
    # DFR requires the detailing IC-LoRA (separate repo; strength is fixed at 0.5)
    hf download Lightricks/LTX-2.5-22b-IC-LoRA-Pixel-Spatial-Upscaler --local-dir models/LTX-2.5-22b-IC-LoRA-Pixel-Spatial-Upscaler
    # Distilled LTX-2.5 pipeline (fast)
    uv run python -m ltx_pipelines.distilled \
        --transformer-path models/ltx-2-5/diffusion_models/<distilled-transformer>.safetensors \
        --text-encoder-path models/ltx-2-5/text_encoders/gemma4-12b-with-proj-ltx-2.5-bf16.safetensors \
        --video-vae-path models/ltx-2-5/vae/<video-vae>.safetensors \
        --audio-vae-path models/ltx-2-5/vae/<audio-vae>.safetensors \
        --spatial-upsampler-path models/ltx-2-5/latent_upscale_models/<spatial-upsampler>.safetensors \
        --num-frames 121 \
        --prompt "A beautiful sunset over the ocean" \
        --output-path output.mp4
    # For image-to-video, add: --image path/to/image.jpg 0 0.8
    # DFR pipeline (higher detail fidelity; optional temporal 2x/4x)
    uv run python -m ltx_pipelines.dfr_pipeline \
        --transformer-path models/ltx-2-5/diffusion_models/<distilled-transformer>.safetensors \
        --text-encoder-path models/ltx-2-5/text_encoders/gemma4-12b-with-proj-ltx-2.5-bf16.safetensors \
        --video-vae-path models/ltx-2-5/vae/<video-vae>.safetensors \
        --audio-vae-path models/ltx-2-5/vae/<audio-vae>.safetensors \
        --spatial-upsampler-path models/ltx-2-5/latent_upscale_models/<spatial-upsampler>.safetensors \
        --temporal-upsampler-path models/ltx-2-5/latent_upscale_models/<temporal-upsampler>.safetensors \
        --detailing-lora models/LTX-2.5-22b-IC-LoRA-Pixel-Spatial-Upscaler/ltx-2.5-22b-ic-lora-pixel-spatial-upscaler-x2-1.0.safetensors \
        --spatial-upscalings 1 \
        --temporal-upscalings 1 \
        --height 1088 \
        --width 1920 \
        --num-frames 121 \
        --prompt "A beautiful sunset over the ocean" \
        --output-path output.mp4
    # For 4K: --spatial-upscalings 2 --width 3840 --height 2176
    # For image-to-video, add: --image path/to/image.jpg 0 0.8
  • Notebooks
  • Google Colab
  • Kaggle
ltx-2-5 / vae
2.83 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
yujiepan's picture
yujiepan
Upload folder using huggingface_hub
bbae6ac verified 28 days ago
  • ltx-2.5-audio-vae-bf16.safetensors
    120 kB
    xet
    Upload folder using huggingface_hub 28 days ago
  • ltx-2.5-video-vae-bf16.safetensors
    2.71 MB
    xet
    Upload folder using huggingface_hub 28 days ago