Instructions to use vidfom/Ltx-3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use vidfom/Ltx-3 with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="vidfom/Ltx-3", filename="ComfyUI/models/text_encoders/gemma-3-12b-it-qat-UD-Q4_K_XL.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use vidfom/Ltx-3 with llama.cpp:
Install from brew
brew install llama.cpp # 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
Install from WinGet (Windows)
winget install llama.cpp # 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
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 Studio
How to use vidfom/Ltx-3 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for vidfom/Ltx-3 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for vidfom/Ltx-3 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for vidfom/Ltx-3 to start chatting
- 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
| from pydantic import BaseModel, Field, field_validator | |
| from pydantic_settings import BaseSettings, SettingsConfigDict | |
| from typing import List, Optional | |
| # IMPORTANT: The type definitions specified in pyproject.toml for custom nodes | |
| # must remain synchronized with the corresponding files in the https://github.com/Comfy-Org/comfy-cli/blob/main/comfy_cli/registry/types.py. | |
| # Any changes to one must be reflected in the other to maintain consistency. | |
| class NodeVersion(BaseModel): | |
| changelog: str | |
| dependencies: List[str] | |
| deprecated: bool | |
| id: str | |
| version: str | |
| download_url: str | |
| class Node(BaseModel): | |
| id: str | |
| name: str | |
| description: str | |
| author: Optional[str] = None | |
| license: Optional[str] = None | |
| icon: Optional[str] = None | |
| repository: Optional[str] = None | |
| tags: List[str] = Field(default_factory=list) | |
| latest_version: Optional[NodeVersion] = None | |
| class PublishNodeVersionResponse(BaseModel): | |
| node_version: NodeVersion | |
| signedUrl: str | |
| class URLs(BaseModel): | |
| homepage: str = Field(default="", alias="Homepage") | |
| documentation: str = Field(default="", alias="Documentation") | |
| repository: str = Field(default="", alias="Repository") | |
| issues: str = Field(default="", alias="Issues") | |
| class Model(BaseModel): | |
| location: str | |
| model_url: str | |
| class ComfyConfig(BaseModel): | |
| publisher_id: str = Field(default="", alias="PublisherId") | |
| display_name: str = Field(default="", alias="DisplayName") | |
| icon: str = Field(default="", alias="Icon") | |
| models: List[Model] = Field(default_factory=list, alias="Models") | |
| includes: List[str] = Field(default_factory=list) | |
| web: Optional[str] = None | |
| banner_url: str = "" | |
| class License(BaseModel): | |
| file: str = "" | |
| text: str = "" | |
| class ProjectConfig(BaseModel): | |
| name: str = "" | |
| description: str = "" | |
| version: str = "1.0.0" | |
| requires_python: str = Field(default=">= 3.9", alias="requires-python") | |
| dependencies: List[str] = Field(default_factory=list) | |
| license: License = Field(default_factory=License) | |
| urls: URLs = Field(default_factory=URLs) | |
| supported_os: List[str] = Field(default_factory=list) | |
| supported_accelerators: List[str] = Field(default_factory=list) | |
| supported_comfyui_version: str = "" | |
| supported_comfyui_frontend_version: str = "" | |
| def validate_license(cls, v): | |
| if isinstance(v, str): | |
| return License(text=v) | |
| elif isinstance(v, dict): | |
| return License(**v) | |
| elif isinstance(v, License): | |
| return v | |
| else: | |
| return License() | |
| class PyProjectConfig(BaseModel): | |
| project: ProjectConfig = Field(default_factory=ProjectConfig) | |
| tool_comfy: ComfyConfig = Field(default_factory=ComfyConfig) | |
| class PyProjectSettings(BaseSettings): | |
| project: dict = Field(default_factory=dict) | |
| tool: dict = Field(default_factory=dict) | |
| model_config = SettingsConfigDict(extra='allow') | |