Skip to content

Free, open-source AI video generator for Mac. Run LTX-2.5 and MiniMax H3 (Hailuo) locally on Apple Silicon: text-to-video and image-to-video with sound, lip-sync, character LoRA training, songs from lyrics (YuE2) and image editing (Qwen-Image-Edit). One-click install via Pinokio. Offline: no cloud, no API key, no NVIDIA GPU.

Y1.024 filter hf downloads — Q8 25 GB → 37 GB (was actually 82), Q4 → 20 GB

Salo7166815b57f9
diff --git a/README.md b/README.md
index 5dfddc8..ad8d978 100644
--- a/README.md
+++ b/README.md
@@ -97,8 +97,8 @@ and step count change.
|---|---|---|---|
| **Quick** | Q4 distilled | 640×480 · ~2 min | Fast sanity checks. 4:3 native output. |
| **Balanced** | Q4 distilled + Lanczos export | 1024×576 → 1280×720 · ~4–5 min | Default. Standard 16:9 delivery without cropping; good first bet for faster HD-looking clips. |
-| **Standard** | Q4 distilled | 1280×704 · ~7 min | The daily driver. Q4 weights (~25 GB on disk). |
-| **High** | Q8 two-stage + TeaCache | 1280×704 · ~12 min | Sharper detail, fewer artifacts on faces and text. Optional Q8 download (~25 GB extra). Required for FFLF. |
+| **Standard** | Q4 distilled | 1280×704 · ~7 min | The daily driver. Q4 weights (~20 GB on disk). |
+| **High** | Q8 two-stage + TeaCache | 1280×704 · ~12 min | Sharper detail, fewer artifacts on faces and text. Optional Q8 download (~37 GB extra). Required for FFLF. |
The **Export** control can also run a lightweight ffmpeg Lanczos pass after
generation:
@@ -169,19 +169,19 @@ jobs that fall out of the OOM killer.
at the locked versions
- Applies the codec + memory-overlap patches (idempotent, fails
loud on upstream drift)
- - Downloads Q4 model (~25 GB) + Gemma encoder (~7.5 GB) via `hf
- download` — resumable
+ - Downloads Q4 model (~20 GB) + Gemma encoder (~7.5 GB) via `hf
+ download` — resumable, filtered to only the files the panel loads
4. Click **Start** → **Open Panel** → http://127.0.0.1:8198
For the High quality tier (Q8 two-stage + TeaCache), download the Q8
model afterward via the **Download Q8** button in the panel sidebar
-(one-time, ~25 GB extra).
+(one-time, ~37 GB extra).
### Faster downloads (recommended for Q8)
Hugging Face throttles unauthenticated downloads. With a token,
downloads run **~10× faster** — particularly relevant for the optional
-25 GB Q8 model.
+37 GB Q8 model.
Two options, no terminal required for either:
diff --git a/VERSION b/VERSION
index f017d33..f1cabf9 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-Y1.023
+Y1.024
diff --git a/download_q8.js b/download_q8.js
index 7e4df43..cc4b2d8 100644
--- a/download_q8.js
+++ b/download_q8.js
@@ -1,12 +1,24 @@
module.exports = {
// On-demand Q8 download for the High quality tier.
- // ~25 GB, resumable. The panel auto-detects when it lands and unlocks
+ // ~37 GB, resumable. The panel auto-detects when it lands and unlocks
// the High pill in the Quality picker.
+ //
+ // Y1.024: this used to be advertised as ~25 GB but actually pulled
+ // ~82 GB — dgrauet's Q8 repo hosts THREE transformer variants
+ // (transformer-dev, transformer-distilled, transformer-distilled-1.1),
+ // TWO distilled-LoRA variants (-384 and -384-1.1), the x1.5 spatial
+ // upscaler we don't wire, and the temporal upscaler we don't wire.
+ // `hf download` with no filter grabs all of them. Reported by
+ // @ContentForAll as "download stalls past 50 GB" — there was no stall;
+ // the bundle really was ~82 GB and we were lying about the size.
+ // The --include allowlist below pulls only the 8 files the panel
+ // loads at runtime; total ~37 GB. Keep in sync with
+ // required_files.json → repos[q8].download_include.
run: [
{
method: "notify",
params: {
- html: "<b>Downloading Q8 model (~25 GB)…</b><br>This is the High quality tier (Q8 two-stage HQ + TeaCache and FFLF keyframing). Resumable if interrupted."
+ html: "<b>Downloading Q8 model (~37 GB)…</b><br>This is the High quality tier (Q8 two-stage HQ + TeaCache and FFLF keyframing). Resumable if interrupted."
}
},
{
@@ -14,12 +26,12 @@ module.exports = {
params: {
venv: "ltx-2-mlx/env",
// Y1.022: HF_HUB_ENABLE_HF_TRANSFER=1 turns on the Rust downloader
- // (~5-10× faster on the 25 GB Q8 bundle). hf_transfer is added by
+ // (~5-10× faster on the 37 GB Q8 bundle). hf_transfer is added by
// install.js / update.js. Falls back to plain Python downloader
// with a warning if the package isn't on disk for any reason.
env: { HF_HUB_ENABLE_HF_TRANSFER: "1" },
message: [
- "hf download dgrauet/ltx-2.3-mlx-q8 --local-dir mlx_models/ltx-2.3-mlx-q8"
+ "hf download dgrauet/ltx-2.3-mlx-q8 --local-dir mlx_models/ltx-2.3-mlx-q8 --include '*.json' --include 'transformer-dev.safetensors' --include 'connector.safetensors' --include 'ltx-2.3-22b-distilled-lora-384.safetensors' --include 'vae_decoder.safetensors' --include 'vae_encoder.safetensors' --include 'audio_vae.safetensors' --include 'vocoder.safetensors' --include 'spatial_upscaler_x2_v1_1.safetensors'"
]
}
},
diff --git a/install.js b/install.js
index 1253021..d6d7d67 100644
--- a/install.js
+++ b/install.js
@@ -167,23 +167,30 @@ module.exports = {
}
},
- // ---- Download Q4 LTX 2.3 (~25 GB, resumable) --------------------------
+ // ---- Download Q4 LTX 2.3 (~20 GB, resumable) --------------------------
// `hf download` is the v1+ name (huggingface_hub deprecated `huggingface-cli`).
// Resume + verify is built-in; --local-dir avoids the HF cache store so
// the panel can point at the path directly with no symlink chase.
// On Resume Install with base files already complete, this is a fast
// verify pass (~seconds) — `hf` checks each file's hash and skips.
+ //
+ // Y1.024: explicit --include allowlist. dgrauet's Q4 repo hosts multiple
+ // transformer variants (transformer-distilled, -distilled-1.1, -dev),
+ // duplicate distilled LoRAs (-384, -384-1.1), and the x1.5/temporal
+ // upscalers we don't use. Without filters `hf download` grabs the full
+ // 56 GB tree; the panel only needs ~20 GB. Keep this list in sync with
+ // required_files.json → repos[q4].download_include.
{
method: "shell.run",
params: {
venv: "env",
path: "ltx-2-mlx",
// Y1.022: HF_HUB_ENABLE_HF_TRANSFER=1 enables the Rust accelerator,
- // ~5-10× faster on 25 GB. Falls back gracefully if hf_transfer
+ // ~5-10× faster on 20 GB. Falls back gracefully if hf_transfer
// isn't yet on disk (warning + plain Python downloader).
env: { HF_HUB_ENABLE_HF_TRANSFER: "1" },
message: [
- "hf download dgrauet/ltx-2.3-mlx-q4 --local-dir ../mlx_models/ltx-2.3-mlx-q4"
+ "hf download dgrauet/ltx-2.3-mlx-q4 --local-dir ../mlx_models/ltx-2.3-mlx-q4 --include '*.json' --include 'transformer-distilled.safetensors' --include 'connector.safetensors' --include 'vae_decoder.safetensors' --include 'vae_encoder.safetensors' --include 'audio_vae.safetensors' --include 'vocoder.safetensors'"
]
}
},
diff --git a/mlx_ltx_panel.py b/mlx_ltx_panel.py
index 91715b5..897ee1c 100644
--- a/mlx_ltx_panel.py
+++ b/mlx_ltx_panel.py
@@ -1196,6 +1196,19 @@ def _download_thread(repo: dict) -> None:
target = ROOT / repo["local_dir"]
target.mkdir(parents=True, exist_ok=True)
cmd = [str(HF_BIN), "download", repo_id, "--local-dir", str(target)]
+ # Y1.024 — apply --include filter when the repo entry declares one. Without
+ # it `hf download` grabs every file in the upstream repo. dgrauet's LTX
+ # repos host duplicate transformer variants (-distilled, -distilled-1.1,
+ # -dev), duplicate distilled LoRAs, and unused upscalers — turning a
+ # declared 25 GB Q8 into 82 GB on disk and a 25 GB Q4 into 56 GB.
+ # `download_include` is the explicit allowlist of patterns we ship to
+ # the user; everything else stays on the Hub. See required_files.json
+ # for the comment block on this.
+ include_patterns = repo.get("download_include") or []
+ for pat in include_patterns:
+ cmd.extend(["--include", pat])
+ if include_patterns:
+ push(f"[hf] filtering {repo_id} download to {len(include_patterns)} pattern(s) — only the files the panel actually loads.")
push(f"[hf] {repo_id} → {target} (~{repo.get('size_gb','?')} GB) — resumable")
# Build the env once. HF_HUB_ENABLE_HF_TRANSFER=1 turns on the Rust
@@ -6796,7 +6809,7 @@ async function poll() {
const left = (s.q8_missing || []).length;
genBtn.title = left > 0 && left < 6
? `Keyframe (FFLF) needs Q8 — ${left} file(s) still downloading.`
- : 'Keyframe (FFLF) needs the Q8 model. Click "Download Q8 (~25 GB)" in Pinokio.';
+ : 'Keyframe (FFLF) needs the Q8 model. Click "Download Q8 (~37 GB)" in Pinokio.';
genBtn.textContent = 'Generate · Q8 required';
} else if (genBtn.disabled && genBtn.textContent.startsWith('Generate · Q8')) {
// Restore — only do so if WE were the ones who disabled it, otherwise
@@ -7400,11 +7413,11 @@ function updateModelsCard(s) {
icon.textContent = '⚠';
title.textContent = 'Base models needed before you can render';
const missing = (s.base_missing || []).length;
- sub.innerHTML = `Q4 (~25 GB) and Gemma (~6 GB) are required. Click below — downloads resume if interrupted.${
+ sub.innerHTML = `Q4 (~20 GB) and Gemma (~6 GB) are required. Click below — downloads resume if interrupted.${
missing ? ` <span style="color:var(--muted)">(${missing} files left)</span>` : ''
}`;
actions.innerHTML = (s.hf_available ?? true)
- ? `<button onclick="startDownload('q4')">Download Q4 (25 GB)</button>`
+ ? `<button onclick="startDownload('q4')">Download Q4 (20 GB)</button>`
: `<button disabled title="hf binary not found — reinstall via Pinokio">hf missing</button>`;
return;
}
@@ -7427,11 +7440,11 @@ function updateModelsCard(s) {
: 'High quality needs the Q8 model';
title.textContent = reason;
const missing = (s.q8_missing || []).length;
- sub.innerHTML = `Q8 (~25 GB) is a separate one-time download. Resumable.${
+ sub.innerHTML = `Q8 (~37 GB) is a separate one-time download. Resumable.${
missing && missing < 8 ? ` <span style="color:var(--muted)">(${missing} files left — partial install detected)</span>` : ''
}`;
actions.innerHTML = (s.hf_available ?? true)
- ? `<button onclick="startDownload('q8')">Download Q8 (25 GB)</button>`
+ ? `<button onclick="startDownload('q8')">Download Q8 (37 GB)</button>`
: `<button disabled>hf missing</button>`;
return;
}
diff --git a/pinokio.js b/pinokio.js
index f7cba8c..d92afee 100644
--- a/pinokio.js
+++ b/pinokio.js
@@ -111,7 +111,7 @@ module.exports = {
if (running.install) return [{ default: true, icon: "fa-solid fa-plug", text: "Installing", href: "install.js" }]
if (running.update) return [{ default: true, icon: "fa-solid fa-rotate", text: "Updating", href: "update.js" }]
if (running.reset) return [{ default: true, icon: "fa-solid fa-eraser", text: "Resetting", href: "reset.js" }]
- if (running.q8download) return [{ default: true, icon: "fa-solid fa-download", text: "Downloading Q8 (~25 GB)", href: "download_q8.js" }]
+ if (running.q8download) return [{ default: true, icon: "fa-solid fa-download", text: "Downloading Q8 (~37 GB)", href: "download_q8.js" }]
if (running.upscalerdownload) return [{ default: true, icon: "fa-solid fa-download", text: "Downloading upscaler (~1 GB)", href: "download_upscaler.js" }]
// No env at all → fresh install path. Recovery shortcuts to user content
@@ -161,7 +161,7 @@ module.exports = {
{ icon: "fa-solid fa-image", text: "Uploads", href: "panel_uploads?fs=true" },
]
if (!q8_ready) {
- baseMenu.push({ icon: "fa-solid fa-download", text: "Download Q8 (~25 GB) — High quality + FFLF", href: "download_q8.js" })
+ baseMenu.push({ icon: "fa-solid fa-download", text: "Download Q8 (~37 GB) — High quality + FFLF", href: "download_q8.js" })
}
if (!upscaler_ready) {
baseMenu.push({ icon: "fa-solid fa-download", text: "Download LTX upscaler (~1 GB) — optional", href: "download_upscaler.js" })
diff --git a/required_files.json b/required_files.json
index 6998d57..ca31080 100644
--- a/required_files.json
+++ b/required_files.json
@@ -1,6 +1,8 @@
{
"_comment": "Single source of truth for what counts as a complete install. Read by pinokio.js (sidebar menu), mlx_ltx_panel.py (/status, /models, run-time job validation), and consumed indirectly by install.js + download_q8.js (whose `hf download` calls land files at the local_dir paths listed below). When the upstream model layout changes, edit ONE file.",
+ "_download_include_comment": "Y1.024 — `download_include` is the list of patterns passed as `--include` flags to `hf download`. Without it `hf download` grabs every file in the repo, which on dgrauet's LTX repos means duplicate transformer variants (transformer-distilled.safetensors AND transformer-distilled-1.1.safetensors AND transformer-dev.safetensors), duplicate distilled LoRAs (-384 and -384-1.1), the temporal upscaler we don't wire, and the x1.5 spatial upscaler we don't use — turning a declared 25 GB Q8 download into 82 GB on disk (and a 25 GB Q4 into 56 GB). With `download_include` we pull only what the panel actually loads. Pattern syntax: huggingface_hub fnmatch globs — bare filenames and wildcards both work. We pass `*.json` to keep all sidecar configs (split_model.json etc.) which are tiny and required at runtime.",
+
"repos": [
{
"key": "q4",
@@ -9,7 +11,7 @@
"blurb": "Required. Drives Standard / Draft renders.",
"repo_id": "dgrauet/ltx-2.3-mlx-q4",
"local_dir": "mlx_models/ltx-2.3-mlx-q4",
- "size_gb": 25,
+ "size_gb": 20,
"files": [
"transformer-distilled.safetensors",
"connector.safetensors",
@@ -17,6 +19,15 @@
"vae_encoder.safetensors",
"audio_vae.safetensors",
"vocoder.safetensors"
+ ],
+ "download_include": [
+ "*.json",
+ "transformer-distilled.safetensors",
+ "connector.safetensors",
+ "vae_decoder.safetensors",
+ "vae_encoder.safetensors",
+ "audio_vae.safetensors",
+ "vocoder.safetensors"
]
},
{
@@ -41,7 +52,7 @@
"blurb": "Optional. Unlocks High quality and keyframe (FFLF) interpolation.",
"repo_id": "dgrauet/ltx-2.3-mlx-q8",
"local_dir": "mlx_models/ltx-2.3-mlx-q8",
- "size_gb": 25,
+ "size_gb": 37,
"files": [
"connector.safetensors",
"transformer-dev.safetensors",
@@ -51,6 +62,17 @@
"audio_vae.safetensors",
"vocoder.safetensors",
"spatial_upscaler_x2_v1_1.safetensors"
+ ],
+ "download_include": [
+ "*.json",
+ "transformer-dev.safetensors",
+ "connector.safetensors",
+ "ltx-2.3-22b-distilled-lora-384.safetensors",
+ "vae_decoder.safetensors",
+ "vae_encoder.safetensors",
+ "audio_vae.safetensors",
+ "vocoder.safetensors",
+ "spatial_upscaler_x2_v1_1.safetensors"
]
},
{
diff --git a/update.js b/update.js
index eadac73..62991e8 100644
--- a/update.js
+++ b/update.js
@@ -94,6 +94,40 @@ module.exports = {
{
method: "shell.run",
params: { message: "./ltx-2-mlx/env/bin/python3.11 patch_ltx_codec.py" }
+ },
+ // Y1.024: reclaim disk on existing installs by deleting model files
+ // we never load. dgrauet's LTX repos host duplicate transformer
+ // variants and unused upscalers; pre-Y1.024 `hf download` grabbed
+ // everything (Q4 → 56 GB instead of 20, Q8 → 82 GB instead of 37).
+ // New installs use --include filters so the bloat never lands. This
+ // step trims existing bloated installs. `rm -f` is silently a no-op
+ // if the file is already absent.
+ //
+ // Q4 trim: ~36 GB freed (transformer-distilled-1.1, transformer-dev,
+ // distilled-lora-384-1.1, x1.5 upscaler, temporal upscaler)
+ // Q8 trim: ~45 GB freed (transformer-distilled, transformer-distilled-1.1,
+ // distilled-lora-384-1.1, x1.5 upscaler, temporal upscaler)
+ //
+ // Files chosen are those the panel never references at runtime —
+ // see required_files.json for the canonical list of what we DO load.
+ {
+ method: "shell.run",
+ params: {
+ message: [
+ "echo 'Y1.024: trimming unused model variants from mlx_models/ (saves up to ~80 GB on bloated pre-Y1.024 installs)…'",
+ "rm -f mlx_models/ltx-2.3-mlx-q4/transformer-distilled-1.1.safetensors",
+ "rm -f mlx_models/ltx-2.3-mlx-q4/transformer-dev.safetensors",
+ "rm -f mlx_models/ltx-2.3-mlx-q4/ltx-2.3-22b-distilled-lora-384-1.1.safetensors",
+ "rm -f mlx_models/ltx-2.3-mlx-q4/spatial_upscaler_x1_5_v1_0.safetensors",
+ "rm -f mlx_models/ltx-2.3-mlx-q4/temporal_upscaler_x2_v1_0.safetensors",
+ "rm -f mlx_models/ltx-2.3-mlx-q8/transformer-distilled.safetensors",
+ "rm -f mlx_models/ltx-2.3-mlx-q8/transformer-distilled-1.1.safetensors",
+ "rm -f mlx_models/ltx-2.3-mlx-q8/ltx-2.3-22b-distilled-lora-384-1.1.safetensors",
+ "rm -f mlx_models/ltx-2.3-mlx-q8/spatial_upscaler_x1_5_v1_0.safetensors",
+ "rm -f mlx_models/ltx-2.3-mlx-q8/temporal_upscaler_x2_v1_0.safetensors",
+ "echo 'Y1.024: trim done.'"
+ ]
+ }
}
]
}