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
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -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
- Llama new
- 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/custom_nodes/ComfyUI-Easy-Use/py/modules/dit/utils.py from vidfom/Ltx-3: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/vidfom/Ltx-3/resolve/main/ComfyUI/custom_nodes/ComfyUI-Easy-Use/py/modules/dit/utils.py
- Command line
-
hf download hf://vidfom/Ltx-3/ComfyUI/custom_nodes/ComfyUI-Easy-Use/py/modules/dit/utils.py
-
curl -L -o utils.py https://huggingface.co/vidfom/Ltx-3/resolve/main/ComfyUI/custom_nodes/ComfyUI-Easy-Use/py/modules/dit/utils.py
1.1 kB
| import torch | |
| from comfy import model_management | |
| def string_to_dtype(s="none", mode=None): | |
| s = s.lower().strip() | |
| if s in ["default", "as-is"]: | |
| return None | |
| elif s in ["auto", "auto (comfy)"]: | |
| if mode == "vae": | |
| return model_management.vae_device() | |
| elif mode == "text_encoder": | |
| return model_management.text_encoder_dtype() | |
| elif mode == "unet": | |
| return model_management.unet_dtype() | |
| else: | |
| raise NotImplementedError(f"Unknown dtype mode '{mode}'") | |
| elif s in ["none", "auto (hf)", "auto (hf/bnb)"]: | |
| return None | |
| elif s in ["fp32", "float32", "float"]: | |
| return torch.float32 | |
| elif s in ["bf16", "bfloat16"]: | |
| return torch.bfloat16 | |
| elif s in ["fp16", "float16", "half"]: | |
| return torch.float16 | |
| elif "fp8" in s or "float8" in s: | |
| if "e5m2" in s: | |
| return torch.float8_e5m2 | |
| elif "e4m3" in s: | |
| return torch.float8_e4m3fn | |
| else: | |
| raise NotImplementedError(f"Unknown 8bit dtype '{s}'") | |
| elif "bnb" in s: | |
| assert s in ["bnb8bit", "bnb4bit"], f"Unknown bnb mode '{s}'" | |
| return s | |
| elif s is None: | |
| return None | |
| else: | |
| raise NotImplementedError(f"Unknown dtype '{s}'") |