Instructions to use modest-mouse/ltx-ugc-bundle with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LTX-2
How to use modest-mouse/ltx-ugc-bundle 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 modest-mouse/ltx-ugc-bundle --local-dir models/ltx-ugc-bundle 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/ltx-ugc-bundle/<distilled-checkpoint>.safetensors \ --spatial-upsampler-path models/ltx-ugc-bundle/<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/ltx-ugc-bundle/<checkpoint>.safetensors \ --distilled-lora models/ltx-ugc-bundle/<distilled-lora>.safetensors 0.8 \ --spatial-upsampler-path models/ltx-ugc-bundle/<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
Download custom_nodes/ComfyUI-Easy-Use/py/modules/dit/config.py from modest-mouse/ltx-ugc-bundle: direct link, hf CLI and curl.
- Browser
- Download file 2.5 kB
-
https://huggingface.co/modest-mouse/ltx-ugc-bundle/resolve/main/custom_nodes/ComfyUI-Easy-Use/py/modules/dit/config.py
- Command line
-
hf download hf://modest-mouse/ltx-ugc-bundle/custom_nodes/ComfyUI-Easy-Use/py/modules/dit/config.py
-
curl -L -o config.py https://huggingface.co/modest-mouse/ltx-ugc-bundle/resolve/main/custom_nodes/ComfyUI-Easy-Use/py/modules/dit/config.py
2.5 kB
| """ | |
| List of all DiT model types / settings | |
| """ | |
| sampling_settings = { | |
| "beta_schedule" : "sqrt_linear", | |
| "linear_start" : 0.0001, | |
| "linear_end" : 0.02, | |
| "timesteps" : 1000, | |
| } | |
| dit_conf = { | |
| "XL/2": { # DiT_XL_2 | |
| "unet_config": { | |
| "depth" : 28, | |
| "num_heads" : 16, | |
| "patch_size" : 2, | |
| "hidden_size" : 1152, | |
| }, | |
| "sampling_settings" : sampling_settings, | |
| }, | |
| "XL/4": { # DiT_XL_4 | |
| "unet_config": { | |
| "depth" : 28, | |
| "num_heads" : 16, | |
| "patch_size" : 4, | |
| "hidden_size" : 1152, | |
| }, | |
| "sampling_settings" : sampling_settings, | |
| }, | |
| "XL/8": { # DiT_XL_8 | |
| "unet_config": { | |
| "depth" : 28, | |
| "num_heads" : 16, | |
| "patch_size" : 8, | |
| "hidden_size" : 1152, | |
| }, | |
| "sampling_settings" : sampling_settings, | |
| }, | |
| "L/2": { # DiT_L_2 | |
| "unet_config": { | |
| "depth" : 24, | |
| "num_heads" : 16, | |
| "patch_size" : 2, | |
| "hidden_size" : 1024, | |
| }, | |
| "sampling_settings" : sampling_settings, | |
| }, | |
| "L/4": { # DiT_L_4 | |
| "unet_config": { | |
| "depth" : 24, | |
| "num_heads" : 16, | |
| "patch_size" : 4, | |
| "hidden_size" : 1024, | |
| }, | |
| "sampling_settings" : sampling_settings, | |
| }, | |
| "L/8": { # DiT_L_8 | |
| "unet_config": { | |
| "depth" : 24, | |
| "num_heads" : 16, | |
| "patch_size" : 8, | |
| "hidden_size" : 1024, | |
| }, | |
| "sampling_settings" : sampling_settings, | |
| }, | |
| "B/2": { # DiT_B_2 | |
| "unet_config": { | |
| "depth" : 12, | |
| "num_heads" : 12, | |
| "patch_size" : 2, | |
| "hidden_size" : 768, | |
| }, | |
| "sampling_settings" : sampling_settings, | |
| }, | |
| "B/4": { # DiT_B_4 | |
| "unet_config": { | |
| "depth" : 12, | |
| "num_heads" : 12, | |
| "patch_size" : 4, | |
| "hidden_size" : 768, | |
| }, | |
| "sampling_settings" : sampling_settings, | |
| }, | |
| "B/8": { # DiT_B_8 | |
| "unet_config": { | |
| "depth" : 12, | |
| "num_heads" : 12, | |
| "patch_size" : 8, | |
| "hidden_size" : 768, | |
| }, | |
| "sampling_settings" : sampling_settings, | |
| }, | |
| "S/2": { # DiT_S_2 | |
| "unet_config": { | |
| "depth" : 12, | |
| "num_heads" : 6, | |
| "patch_size" : 2, | |
| "hidden_size" : 384, | |
| }, | |
| "sampling_settings" : sampling_settings, | |
| }, | |
| "S/4": { # DiT_S_4 | |
| "unet_config": { | |
| "depth" : 12, | |
| "num_heads" : 6, | |
| "patch_size" : 4, | |
| "hidden_size" : 384, | |
| }, | |
| "sampling_settings" : sampling_settings, | |
| }, | |
| "S/8": { # DiT_S_8 | |
| "unet_config": { | |
| "depth" : 12, | |
| "num_heads" : 6, | |
| "patch_size" : 8, | |
| "hidden_size" : 384, | |
| }, | |
| "sampling_settings" : sampling_settings, | |
| }, | |
| } |