Instructions to use vidfom/Ltx-3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use vidfom/Ltx-3 with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf vidfom/Ltx-3:UD-Q4_K_XL # Run inference directly in the terminal: llama cli -hf vidfom/Ltx-3:UD-Q4_K_XL
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf vidfom/Ltx-3:UD-Q4_K_XL # Run inference directly in the terminal: llama cli -hf vidfom/Ltx-3:UD-Q4_K_XL
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf vidfom/Ltx-3:UD-Q4_K_XL # Run inference directly in the terminal: ./llama-cli -hf vidfom/Ltx-3:UD-Q4_K_XL
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf vidfom/Ltx-3:UD-Q4_K_XL # Run inference directly in the terminal: ./build/bin/llama-cli -hf vidfom/Ltx-3:UD-Q4_K_XL
Use Docker
docker model run hf.co/vidfom/Ltx-3:UD-Q4_K_XL
- LM Studio
- Jan
- Ollama
How to use vidfom/Ltx-3 with Ollama:
ollama run hf.co/vidfom/Ltx-3:UD-Q4_K_XL
- Unsloth Desktop
- Docker Model Runner
How to use vidfom/Ltx-3 with Docker Model Runner:
docker model run hf.co/vidfom/Ltx-3:UD-Q4_K_XL
- Lemonade
How to use vidfom/Ltx-3 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull vidfom/Ltx-3:UD-Q4_K_XL
Run and chat with the model
lemonade run user.Ltx-3-UD-Q4_K_XL
List all available models
lemonade list
- Atomic Chat
Download ComfyUI/comfy/diffusers_load.py from vidfom/Ltx-3: direct link, hf CLI and curl.
- Browser
- Download file 1.44 kB
-
https://huggingface.co/vidfom/Ltx-3/resolve/main/ComfyUI/comfy/diffusers_load.py
- Command line
-
hf download hf://vidfom/Ltx-3/ComfyUI/comfy/diffusers_load.py
-
curl -L -o diffusers_load.py https://huggingface.co/vidfom/Ltx-3/resolve/main/ComfyUI/comfy/diffusers_load.py
1.44 kB
| import os | |
| import comfy.sd | |
| def first_file(path, filenames): | |
| for f in filenames: | |
| p = os.path.join(path, f) | |
| if os.path.exists(p): | |
| return p | |
| return None | |
| def load_diffusers(model_path, output_vae=True, output_clip=True, embedding_directory=None): | |
| diffusion_model_names = ["diffusion_pytorch_model.fp16.safetensors", "diffusion_pytorch_model.safetensors", "diffusion_pytorch_model.fp16.bin", "diffusion_pytorch_model.bin"] | |
| unet_path = first_file(os.path.join(model_path, "unet"), diffusion_model_names) | |
| vae_path = first_file(os.path.join(model_path, "vae"), diffusion_model_names) | |
| text_encoder_model_names = ["model.fp16.safetensors", "model.safetensors", "pytorch_model.fp16.bin", "pytorch_model.bin"] | |
| text_encoder1_path = first_file(os.path.join(model_path, "text_encoder"), text_encoder_model_names) | |
| text_encoder2_path = first_file(os.path.join(model_path, "text_encoder_2"), text_encoder_model_names) | |
| text_encoder_paths = [text_encoder1_path] | |
| if text_encoder2_path is not None: | |
| text_encoder_paths.append(text_encoder2_path) | |
| unet = comfy.sd.load_diffusion_model(unet_path) | |
| clip = None | |
| if output_clip: | |
| clip = comfy.sd.load_clip(text_encoder_paths, embedding_directory=embedding_directory) | |
| vae = None | |
| if output_vae: | |
| sd = comfy.utils.load_torch_file(vae_path) | |
| vae = comfy.sd.VAE(sd=sd) | |
| return (unet, clip, vae) | |