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 new
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
| name: Release Webhook | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| send-webhook: | |
| runs-on: ubuntu-latest | |
| env: | |
| DESKTOP_REPO_DISPATCH_TOKEN: ${{ secrets.DESKTOP_REPO_DISPATCH_TOKEN }} | |
| steps: | |
| - name: Send release webhook | |
| env: | |
| WEBHOOK_URL: ${{ secrets.RELEASE_GITHUB_WEBHOOK_URL }} | |
| WEBHOOK_SECRET: ${{ secrets.RELEASE_GITHUB_WEBHOOK_SECRET }} | |
| run: | | |
| # Generate UUID for delivery ID | |
| DELIVERY_ID=$(uuidgen) | |
| HOOK_ID="release-webhook-$(date +%s)" | |
| # Create webhook payload matching GitHub release webhook format | |
| PAYLOAD=$(cat <<EOF | |
| { | |
| "action": "published", | |
| "release": { | |
| "id": ${{ github.event.release.id }}, | |
| "node_id": "${{ github.event.release.node_id }}", | |
| "url": "${{ github.event.release.url }}", | |
| "html_url": "${{ github.event.release.html_url }}", | |
| "assets_url": "${{ github.event.release.assets_url }}", | |
| "upload_url": "${{ github.event.release.upload_url }}", | |
| "tag_name": "${{ github.event.release.tag_name }}", | |
| "target_commitish": "${{ github.event.release.target_commitish }}", | |
| "name": ${{ toJSON(github.event.release.name) }}, | |
| "body": ${{ toJSON(github.event.release.body) }}, | |
| "draft": ${{ github.event.release.draft }}, | |
| "prerelease": ${{ github.event.release.prerelease }}, | |
| "created_at": "${{ github.event.release.created_at }}", | |
| "published_at": "${{ github.event.release.published_at }}", | |
| "author": { | |
| "login": "${{ github.event.release.author.login }}", | |
| "id": ${{ github.event.release.author.id }}, | |
| "node_id": "${{ github.event.release.author.node_id }}", | |
| "avatar_url": "${{ github.event.release.author.avatar_url }}", | |
| "url": "${{ github.event.release.author.url }}", | |
| "html_url": "${{ github.event.release.author.html_url }}", | |
| "type": "${{ github.event.release.author.type }}", | |
| "site_admin": ${{ github.event.release.author.site_admin }} | |
| }, | |
| "tarball_url": "${{ github.event.release.tarball_url }}", | |
| "zipball_url": "${{ github.event.release.zipball_url }}", | |
| "assets": ${{ toJSON(github.event.release.assets) }} | |
| }, | |
| "repository": { | |
| "id": ${{ github.event.repository.id }}, | |
| "node_id": "${{ github.event.repository.node_id }}", | |
| "name": "${{ github.event.repository.name }}", | |
| "full_name": "${{ github.event.repository.full_name }}", | |
| "private": ${{ github.event.repository.private }}, | |
| "owner": { | |
| "login": "${{ github.event.repository.owner.login }}", | |
| "id": ${{ github.event.repository.owner.id }}, | |
| "node_id": "${{ github.event.repository.owner.node_id }}", | |
| "avatar_url": "${{ github.event.repository.owner.avatar_url }}", | |
| "url": "${{ github.event.repository.owner.url }}", | |
| "html_url": "${{ github.event.repository.owner.html_url }}", | |
| "type": "${{ github.event.repository.owner.type }}", | |
| "site_admin": ${{ github.event.repository.owner.site_admin }} | |
| }, | |
| "html_url": "${{ github.event.repository.html_url }}", | |
| "clone_url": "${{ github.event.repository.clone_url }}", | |
| "git_url": "${{ github.event.repository.git_url }}", | |
| "ssh_url": "${{ github.event.repository.ssh_url }}", | |
| "url": "${{ github.event.repository.url }}", | |
| "created_at": "${{ github.event.repository.created_at }}", | |
| "updated_at": "${{ github.event.repository.updated_at }}", | |
| "pushed_at": "${{ github.event.repository.pushed_at }}", | |
| "default_branch": "${{ github.event.repository.default_branch }}", | |
| "fork": ${{ github.event.repository.fork }} | |
| }, | |
| "sender": { | |
| "login": "${{ github.event.sender.login }}", | |
| "id": ${{ github.event.sender.id }}, | |
| "node_id": "${{ github.event.sender.node_id }}", | |
| "avatar_url": "${{ github.event.sender.avatar_url }}", | |
| "url": "${{ github.event.sender.url }}", | |
| "html_url": "${{ github.event.sender.html_url }}", | |
| "type": "${{ github.event.sender.type }}", | |
| "site_admin": ${{ github.event.sender.site_admin }} | |
| } | |
| } | |
| EOF | |
| ) | |
| # Generate HMAC-SHA256 signature | |
| SIGNATURE=$(echo -n "$PAYLOAD" | openssl dgst -sha256 -hmac "$WEBHOOK_SECRET" -hex | cut -d' ' -f2) | |
| # Send webhook with required headers | |
| curl -X POST "$WEBHOOK_URL" \ | |
| -H "Content-Type: application/json" \ | |
| -H "X-GitHub-Event: release" \ | |
| -H "X-GitHub-Delivery: $DELIVERY_ID" \ | |
| -H "X-GitHub-Hook-ID: $HOOK_ID" \ | |
| -H "X-Hub-Signature-256: sha256=$SIGNATURE" \ | |
| -H "User-Agent: GitHub-Actions-Webhook/1.0" \ | |
| -d "$PAYLOAD" \ | |
| --fail --silent --show-error | |
| echo "✅ Release webhook sent successfully" | |
| - name: Send repository dispatch to desktop | |
| env: | |
| DISPATCH_TOKEN: ${{ env.DESKTOP_REPO_DISPATCH_TOKEN }} | |
| RELEASE_TAG: ${{ github.event.release.tag_name }} | |
| RELEASE_URL: ${{ github.event.release.html_url }} | |
| run: | | |
| set -euo pipefail | |
| if [ -z "${DISPATCH_TOKEN:-}" ]; then | |
| echo "::error::DESKTOP_REPO_DISPATCH_TOKEN is required but not set." | |
| exit 1 | |
| fi | |
| PAYLOAD="$(jq -n \ | |
| --arg release_tag "$RELEASE_TAG" \ | |
| --arg release_url "$RELEASE_URL" \ | |
| '{ | |
| event_type: "comfyui_release_published", | |
| client_payload: { | |
| release_tag: $release_tag, | |
| release_url: $release_url | |
| } | |
| }')" | |
| curl -fsSL \ | |
| -X POST \ | |
| -H "Accept: application/vnd.github+json" \ | |
| -H "Content-Type: application/json" \ | |
| -H "Authorization: Bearer ${DISPATCH_TOKEN}" \ | |
| https://api.github.com/repos/Comfy-Org/desktop/dispatches \ | |
| -d "$PAYLOAD" | |
| echo "✅ Dispatched ComfyUI release ${RELEASE_TAG} to Comfy-Org/desktop" | |