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.
Python ai-filmmakingai-videoai-video-generatorapple-siliconhailuoimage-to-videolip-synclocal-ailora-trainingltx-2ltx-2-5ltx-videomacosminimax-h3mlxmusic-generationoffline-aipinokiotext-to-videovideo-generation
release(v4.12.2): the morning's field reports — no beats prefill, Q8 build validated in a fresh process (#78), three fleet refusals, errors ranked by installs
mrbizarro377b9a96c0bc
diff --git a/README.md b/README.mdindex 8d3f9ac..c6f0377 100644--- a/README.md+++ b/README.md@@ -19,7 +19,7 @@</p>-> **Current release: v4.12.1.** A One Shot with no beats written is a One Shot of the prompt, sustained for the whole take (it used to render the hold sentence, a clip about nothing). Includes 4.12.0: a One Shot with a talking character keeps the voice on the mouth across the joins, every spoken part is measured and retaken, the joined clip no longer drifts its sound, and two characters can talk (`docs/LTX_DIALOGUE.md`). Full notes on the [releases page](https://github.com/mrbizarro/Phosphene/releases).+> **Current release: v4.12.2.** The morning's field reports: a One Shot with only a prompt is the prompt for the whole take (the beats box no longer half-fills itself), the H3 compact-engine build validates in a fresh process and marks itself built only after that (36 GB Macs, #78), more than 8 distilled steps is refused up front, a missing ffmpeg is named before an H3 render, a moved LoRA file is named as a missing file, and the stats page ranks errors by installs and shows failures per version. Includes 4.12.x: the talking one shot. Full notes on the [releases page](https://github.com/mrbizarro/Phosphene/releases).## Overviewdiff --git a/VERSION b/VERSIONindex 53cf85e..f1cd7de 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-4.12.1+4.12.2diff --git a/docs/STATE.md b/docs/STATE.mdindex 32f61c4..7e037b3 100644--- a/docs/STATE.md+++ b/docs/STATE.md@@ -173,6 +173,19 @@> shitty on the faces" — and the two-character experiment (bizarrotrn +> eltrumpo at one table, Q8 Pro, camera lock) is the first render on this code.+> **🚀 2026-09-08 — v4.12.2 ships: the morning's field reports.** The beats box no+> longer prefills from the prompt (one written beat + five holds was the half-state+> behind the field report); `h3_build_q8.sh` validates the Q8 pack in a fresh+> process and writes `.built_ok` only after (#78: SIGKILL during the quantizer's own+> in-process `load_dit` on a 36 GB Mac, marker already written, retry said "already+> built"); `steps > 8` on the distilled schedule is refused up front (fleet: "cannot+> thin a 9-point schedule up to 16 steps" on 4.11.1); the H3 runner pre-flights+> ffmpeg; a LoRA path HF rejects as an id is "LoRA file not found"; the fleet+> `top_errors` tile ranks by installs (one 4.9.3 install with a broken model dir+> was 438 of the week's failures) and a `failures_by_version` tile shows each+> version's failure share. Validated LIVE on a scratch panel with the browser+> (One Shot: prompt → 30 s → Generate → six beats of the prompt in the queued job).+> **🚀 2026-09-08 — v4.12.1 ships: a One Shot with no beats is the prompt.** A first-day> field report: a long prompt, an empty beats box, and every window rendered the> hold sentence ("Nothing new begins…") — a 30 s clip about nothing, on H3 too.diff --git a/mlx_ltx_panel.py b/mlx_ltx_panel.pyindex 3100bbf..029d3bf 100644--- a/mlx_ltx_panel.py+++ b/mlx_ltx_panel.py@@ -13331,10 +13331,23 @@ _USAGE_FLEET_QUERIES = {"SELECT event, count() AS c FROM events ""WHERE event IN ('render_completed', 'render_failed') ""AND timestamp > now() - INTERVAL 14 DAY GROUP BY event",+ # By INSTALLS first, then by events. Ordered by events alone the tile was+ # owned by one 4.9.3 install with a broken model dir retrying 438 times in+ # a week (160 + 121 + 72 events of three signatures, one distinct_id each)+ # while the errors many people hit sat below the fold (2026-09-08)."top_errors":- "SELECT properties['error_signature'] AS sig, count() AS c FROM events "+ "SELECT properties['error_signature'] AS sig, count() AS c, "+ "count(DISTINCT distinct_id) AS people FROM events ""WHERE event = 'render_failed' AND timestamp > now() - INTERVAL 7 DAY "- "GROUP BY sig ORDER BY c DESC LIMIT 5",+ "GROUP BY sig ORDER BY people DESC, c DESC LIMIT 8",+ # Failure rate per version, so a release that fails more than the one before+ # it is visible the day it ships, and a storm from one install reads as one.+ "failures_by_version":+ "SELECT properties['version'] AS v, countIf(event = 'render_failed') AS failed, "+ "countIf(event = 'render_completed') AS ok, count(DISTINCT distinct_id) AS people "+ "FROM events "+ "WHERE event IN ('render_failed', 'render_completed') "+ "AND timestamp > now() - INTERVAL 7 DAY GROUP BY v ORDER BY failed DESC LIMIT 12",# Refusals are a SEPARATE event, which is why none of the queries above# needed an `error_class != 'refused'` clause bolted on. That was the# deciding argument for a new event name over a new class: an exclusion@@ -13518,9 +13531,16 @@ def _usage_fleet_report() -> dict | None:for r in (res.get("boots_by_day") or [])if isinstance(r, (list, tuple)) and len(r) >= 2],"engines": engines,- "top_errors": [{"signature": str(r[0] or "unknown error"), "count": int(r[1])}+ "top_errors": [{"signature": str(r[0] or "unknown error"), "count": int(r[1]),+ "people": int(r[2]) if len(r) > 2 and r[2] is not None else None}for r in (res.get("top_errors") or [])if isinstance(r, (list, tuple)) and len(r) >= 2],+ "failures_by_version": [{"version": str(r[0] or "unknown"), "failed": int(r[1] or 0),+ "ok": int(r[2] or 0), "people": int(r[3] or 0),+ "count": int(r[1] or 0),+ "pct": round(100.0 * int(r[1] or 0) / max(1, int(r[1] or 0) + int(r[2] or 0)), 1)}+ for r in (res.get("failures_by_version") or [])+ if isinstance(r, (list, tuple)) and len(r) >= 4],"top_refusals": refusals,"versions": [{"version": str(r[0] or "unknown"), "count": int(r[1])}for r in (res.get("versions") or [])@@ -23162,6 +23182,17 @@ def run_h3_job_inner(job: dict) -> None:helper respawns lazily on the next LTX job (WarmHelper._ensure), so thiscosts one cold start and nothing else."""+ # ffmpeg pre-flight. The runner pipes raw RGB into `ffmpeg` from PATH and+ # the panel prepends its own ffmpeg dir — but when none of the ladder's+ # candidates exists that dir is the last-resort guess, and the render dies+ # after the whole denoise with "ffmpeg not found on PATH; use save_frames()+ # instead" (fleet, 4.11.1). Say it before spending the minutes.+ if not Path(FFMPEG).is_file():+ raise RuntimeError(+ f"ffmpeg is not installed where Phosphene looks for it ({FFMPEG}). Pinokio "+ "ships it at ~/pinokio/bin/ffmpeg-env/bin/ffmpeg — reinstall Phosphene from "+ "the Pinokio sidebar, or set LTX_FFMPEG to your ffmpeg binary.")+p = job["params"]mode = (p.get("mode") or "t2v").strip().lower()paths = h3_paths()@@ -24499,6 +24530,17 @@ def run_job_inner(job: dict) -> None:"renders, or pick Quality=Quick for a faster smaller-resolution render at ""the same 8 steps.")+ # ...and MORE than 8 is not a quality knob either: the distilled sigma table+ # has 9 points, so the helper dies minutes in with "cannot thin a 9-point+ # schedule (8 steps) up to 16 steps" (fleet, 4.11.1: i2v at 9 and 16 steps).+ # Refuse here, at no cost, and say where more steps actually live.+ if mode not in ("extend", "keyframe", "a2v", "restore", "ingredients", "control", "upscale") and not ltx_quality_uses_hq(quality) and int(p.get("steps", 8)) > 8:+ raise RuntimeError(+ f"steps={p.get('steps')} is above the 8-step distilled schedule: the Q4 "+ "distilled model has a fixed 9-point sigma table and cannot take more "+ "steps. Use steps=8 here, or pick Quality=High for the two-stage "+ "pipeline, which is where more steps buy quality."+ )if p["stop_comfy"]:kill_comfy()diff --git a/mlx_warm_helper.py b/mlx_warm_helper.pyindex 50996ae..f681d59 100644--- a/mlx_warm_helper.py+++ b/mlx_warm_helper.py@@ -638,6 +638,16 @@ def _resolve_lora_path(path: str) -> str:) from exctry:repo_dir = snapshot_download(repo_id=p, allow_patterns=["*.safetensors"])+ except (ValueError, OSError) as exc:+ # huggingface_hub's HFValidationError is a ValueError: "Repo id must be+ # in the form 'repo_name' or 'namespace/repo_name'". A user never typed+ # an id — the value is a LoRA path that no longer resolves (moved,+ # renamed, a relative path with a space). Name the file, not the rule.+ if type(exc).__name__ in ("HFValidationError",) or "Repo id must be" in str(exc):+ raise FileNotFoundError(+ f"LoRA file not found: {p} — it is not on disk and it is not a Hugging Face "+ f"repo id. It was probably moved or deleted after it was picked; pick it again.") from exc+ raiseexcept GatedRepoError as exc:# Most Lightricks LoRAs are gated — they require accepting a# license on the model page AND an HF token authenticated withdiff --git a/panel_assets/stats.html b/panel_assets/stats.htmlindex 543e891..ccefbf0 100644--- a/panel_assets/stats.html+++ b/panel_assets/stats.html@@ -753,6 +753,7 @@white-space: normal; word-break: break-word;}.dist-row.is-err .fill { background: rgba(248, 81, 73, 0.14); }+ .dist-row .n small.sub { font-size: 11px; font-weight: 400; color: var(--faint); margin-left: 4px; }.dist-row .n {font-family: var(--ph-font-mono); font-variant-numeric: tabular-nums;font-weight: 700; color: var(--muted); font-size: 11px;@@ -992,6 +993,10 @@<h3>Refused <span class="count-pill" id="usage-refusals-count">0</span></h3><ul class="dist-list" id="usage-refusals"></ul></div>+ <div class="dist-col">+ <h3>Failures by version <span class="hint">last 7 days · failed renders, share of that version's renders, installs that hit one</span></h3>+ <ul class="dist-list" id="usage-failures-by-version"></ul>+ </div><div class="dist-col"><h3>Versions</h3><ul class="dist-list" id="usage-versions"></ul>@@ -2559,10 +2564,11 @@const label = r[nameKey];const shown = (label === null || label === undefined || label === '')? 'unknown' : String(label);+ const sub = (opts && typeof opts.sub === 'function') ? (opts.sub(r) || '') : '';return `<li class="dist-row${cls}"><span class="fill" style="width:${pct}%"></span><span class="name" title="${escapeAttr(shown)}">${escapeHtml(shown)}</span>- <span class="n">${fmt(r.count)}</span>+ <span class="n">${fmt(r.count)}${sub ? `<small class="sub"> ${escapeHtml(sub)}</small>` : ''}</span></li>`;}).join('');}@@ -2647,7 +2653,13 @@const errs = Array.isArray(u.top_errors) ? u.top_errors : [];const errCount = $('#usage-errors-count');if (errCount) errCount.textContent = fmt(errs.reduce((a, r) => a + (Number(r.count) || 0), 0));- paintDist('#usage-errors', errs, 'signature', { err: true });+ // Ranked by installs, not events: one install retrying a broken model dir+ // 400 times a week is one problem, not the fleet's biggest.+ paintDist('#usage-errors', errs, 'signature', { err: true,+ sub: r => (r.people === null || r.people === undefined) ? '' : `· ${fmt(r.people)} install${Number(r.people) === 1 ? '' : 's'}` });+ const fbv = Array.isArray(u.failures_by_version) ? u.failures_by_version : [];+ paintDist('#usage-failures-by-version', fbv, 'version', { err: true,+ sub: r => `failed · ${r.pct}% of ${fmt((Number(r.failed) || 0) + (Number(r.ok) || 0))} · ${fmt(r.people)} install${Number(r.people) === 1 ? '' : 's'}` });const refs2 = Array.isArray(u.top_refusals) ? u.top_refusals : [];const refCount = $('#usage-refusals-count');if (refCount) refCount.textContent = fmt(refs2.reduce((a, r) => a + (Number(r.count) || 0), 0));diff --git a/scripts/pinokio/h3_build_q8.sh b/scripts/pinokio/h3_build_q8.shindex 78e6cee..a1d4019 100644--- a/scripts/pinokio/h3_build_q8.sh+++ b/scripts/pinokio/h3_build_q8.sh@@ -15,8 +15,9 @@# the pack there and this script used to build it somewhere else# entirely, so the build "succeeded" and the engine stayed bf16.#-# SEMANTICS: unchanged — one shell, no `set -e`, exit code from the last-# command. Idempotent: the pack's own quant_config.json gates the re-run.+# SEMANTICS: one shell, no `set -e`, exit code from the last command.+# Idempotent: `.built_ok` (written after a fresh-process validation) plus the+# shards the index names gate the re-run — see the block above the build.## WHY IT MATTERS: the Q8 pack halves the render peak (25.63 vs 42.8 GiB# measured), which is what puts H3 in reach of a 36 GB Mac at all — and the@@ -84,9 +85,59 @@ SRC="$LAYOUT/$DIT_REL"# The default's weights must be installable wherever the default applies;# 22 GB of disk and ~5 min is the price of the halving the release notes# promised. Idempotent via the pack's own quant_config.json, as before.-if [ -f "$PACK/quant_config.json" ]; then+# VALIDATE IN A FRESH PROCESS, AND MARK ONLY AFTER. quantize_stream.py writes+# quant_config.json and THEN validates by loading the whole Q8 tree in the same+# process that still holds the mmap-backed bf16 source and the quantization+# intermediates — on a 36 GB Mac macOS SIGKILLs it right there, after every+# shard is on disk and valid (#78: "Killed: 9 … quantize_stream.py", while a+# clean `load_dit()` of the same pack takes 3.6 s). And because the marker+# was already written, the retry said "already built" over a pack that never+# reported success. So: the marker is `.built_ok`, written by THIS script only+# after `load_dit()` succeeds in its own process; a pack with shards but no+# marker is validated (never rebuilt) before it is trusted; a pack whose index+# names a shard that is missing is rebuilt.+pack_shards_present() {+ # every shard the index names exists and is non-empty+ [ -f "$PACK/model.safetensors.index.json" ] || return 1+ .venv/bin/python - "$PACK" <<'PY'+import json, os, sys+pack = sys.argv[1]+idx = json.load(open(os.path.join(pack, "model.safetensors.index.json")))+names = sorted(set(idx.get("weight_map", {}).values()))+ok = bool(names) and all(os.path.getsize(os.path.join(pack, n)) > 0 for n in names if os.path.exists(os.path.join(pack, n))) \+ and all(os.path.exists(os.path.join(pack, n)) for n in names)+sys.exit(0 if ok else 1)+PY+}+validate_pack_fresh() {+ # load_dit() in a process that holds nothing else — the validation the+ # quantizer's own process could not survive on the 36 GB floor+ echo '=== Validating the Q8 engine in a fresh process ==='+ .venv/bin/python - "$PACK" <<'PY'+import sys, time+from minimax_h3_mlx.load import load_dit+t0 = time.time()+load_dit(sys.argv[1], verbose=False)+print(f"LOAD OK - pack valid ({time.time() - t0:.1f}s)", flush=True)+PY+}+if [ -f "$PACK/.built_ok" ] && pack_shards_present; thenecho 'Q8 engine already built - skipping'else- echo '=== Building the reduced-RAM Q8 engine (~5 min, one time) ==='- .venv/bin/python scripts/quantize_stream.py --src "$SRC" --out "$PACK"+ if [ -f "$PACK/quant_config.json" ] && pack_shards_present; then+ echo 'Q8 engine shards are on disk but were never validated - validating instead of rebuilding'+ else+ echo '=== Building the reduced-RAM Q8 engine (~5 min, one time) ==='+ rm -f "$PACK/.built_ok"+ .venv/bin/python scripts/quantize_stream.py --src "$SRC" --out "$PACK"+ echo "quantizer exit $? (a kill during its own final validation is recovered below)"+ fi+ if pack_shards_present && validate_pack_fresh; then+ : > "$PACK/.built_ok"+ echo 'Q8 engine built and validated'+ else+ rm -f "$PACK/quant_config.json" "$PACK/.built_ok"+ echo 'WARN: the Q8 pack did not validate - it will be rebuilt on the next Install / Update'+ exit 1+ fifidiff --git a/test_h3_q8_default_buildable.py b/test_h3_q8_default_buildable.pyindex b9f3ea9..24aecf6 100644--- a/test_h3_q8_default_buildable.py+++ b/test_h3_q8_default_buildable.py@@ -59,3 +59,28 @@ class TheFallbackIsLoud(unittest.TestCase):if __name__ == "__main__":unittest.main()+++class TheMarkerMeansValidated(unittest.TestCase):+ """#78: on a 36 GB Mac the quantizer is SIGKILLed during its own in-process+ validation after writing a valid pack, and the old marker (quant_config.json,+ written before that validation) made the retry say "already built"."""+ def setUp(self):+ self.src = BUILD_SH.read_text()++ def test_validation_runs_in_its_own_process(self):+ self.assertIn("validate_pack_fresh", self.src)+ self.assertIn("load_dit(sys.argv[1]", self.src)++ def test_marker_written_only_after_validation(self):+ self.assertIn('.built_ok', self.src)+ # the marker is created inside the branch that follows a successful validation+ self.assertRegex(self.src, r'validate_pack_fresh; then\s*\n\s*: > "\$PACK/\.built_ok"')++ def test_idempotence_checks_the_shards_not_just_the_config(self):+ self.assertIn("pack_shards_present", self.src)+ self.assertIn("model.safetensors.index.json", self.src)+ self.assertRegex(self.src, r'\[ -f "\$PACK/\.built_ok" \] && pack_shards_present')++ def test_a_pack_that_fails_validation_is_rebuilt_next_time(self):+ self.assertIn('rm -f "$PACK/quant_config.json" "$PACK/.built_ok"', self.src)diff --git a/webapp/js/characters.js b/webapp/js/characters.jsindex 03ac589..7792a0a 100644--- a/webapp/js/characters.js+++ b/webapp/js/characters.js@@ -2629,8 +2629,13 @@ function setTakeSeconds(s, beats) {});const ta = document.getElementById('beats_text');if (s && ta) {+ // Only an explicit list (Load Params, the Storyboard) fills the box.+ // It used to prefill from the prompt on its own, which put ONE written+ // beat and five blank holds in front of a user who had only typed a+ // prompt — half a shot of prompt, half of hold. An empty box now means+ // "the prompt carries the whole shot" (make_job), and the Split button+ // is the deliberate way to start from the prompt's sentences.if (Array.isArray(beats)) ta.value = beats.join('\n');- else if (!ta.value.trim()) ta.value = takePrefill(s);beatsInput();takeRefresh();} else {@@ -2642,8 +2647,7 @@ function setTakeSeconds(s, beats) {if (typeof updateCustomizeSummary === 'function') updateCustomizeSummary();if (typeof updateDerived === 'function') updateDerived();}-// The first beats come from the prompt itself, one sentence each, so the box-// is never empty — the user edits, they do not start from nothing.+// The prompt's sentences, one per beat — the Split button's starting point.function takePrefill(s) {const prompt = (document.getElementById('prompt') || {}).value || '';const n = Math.max(1, Math.round(s / 5));