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
Y1.026 gate model upscaler for release
Salo0b8848a214ca
diff --git a/README.md b/README.mdindex ad8d978..f5d1b96 100644--- a/README.md+++ b/README.md@@ -113,10 +113,9 @@ Exported/upscaled files use the same **Output format** setting as nativerenders. Standard stays compact (`yuv420p` / CRF 18); Video production stayslossless (`yuv444p` / CRF 0).-Install tries to fetch the official LTX 2.3 latent x2 upscaler (~1 GB) as an-optional asset, and the Models dialog / Pinokio menu can resume it later. The-current lightweight export path uses ffmpeg so it works even before that model-is present.+The public export path uses ffmpeg Lanczos. The experimental LTX latent x2+upscaler can be enabled for lab testing with `LTX_ENABLE_MODEL_UPSCALE=1`, but+it is hidden by default because its doubled-latent peak can pressure 64 GB Macs.Standard T2V/I2V also has an opt-in **Speed** control:diff --git a/install.js b/install.jsindex d6d7d67..342fcb9 100644--- a/install.js+++ b/install.js@@ -212,24 +212,6 @@ module.exports = {}},- // ---- Optional official LTX spatial upscaler (~1 GB) ------------------- // The dev panel's first lightweight upscale path uses ffmpeg Lanczos- // (already bundled, no model needed). Still grab the official LTX latent- // upscaler opportunistically so model-backed upscale experiments are one- // click away. If Hugging Face hiccups here, don't fail the base install:- // the Pinokio menu exposes "Download LTX upscaler" to resume later.- {- method: "shell.run",- params: {- venv: "env",- path: "ltx-2-mlx",- env: { HF_HUB_ENABLE_HF_TRANSFER: "1" },- message: [- "hf download dgrauet/ltx-2.3-mlx-q8 spatial_upscaler_x2_v1_1.safetensors --local-dir ../mlx_models/ltx-2.3-mlx-q8 || true"- ]- }- },-// ---- Done -------------------------------------------------------------{method: "notify",diff --git a/mlx_ltx_panel.py b/mlx_ltx_panel.pyindex 897ee1c..9939540 100644--- a/mlx_ltx_panel.py+++ b/mlx_ltx_panel.py@@ -85,6 +85,7 @@ QUEUE_FILE = STATE_DIR / "panel_queue.json"HIDDEN_FILE = STATE_DIR / "panel_hidden.json"HELPER_IDLE_TIMEOUT = int(os.environ.get("LTX_HELPER_IDLE_TIMEOUT", "1800"))HELPER_LOW_MEMORY = os.environ.get("LTX_HELPER_LOW_MEMORY", "true")+MODEL_UPSCALE_ENABLED = os.environ.get("LTX_ENABLE_MODEL_UPSCALE", "").strip().lower() in ("1", "true", "yes", "on")FPS = 24# ---- Profile (production vs dev) ---------------------------------------------@@ -2186,6 +2187,7 @@ class WarmHelper:env["LTX_GEMMA"] = str(GEMMA)env["LTX_IDLE_TIMEOUT"] = str(HELPER_IDLE_TIMEOUT)env["LTX_LOW_MEMORY"] = HELPER_LOW_MEMORY+ env["LTX_ENABLE_MODEL_UPSCALE"] = "1" if MODEL_UPSCALE_ENABLED else "0"# Output codec env vars sourced from panel settings. The patched# ffmpeg call inside ltx_core_mlx reads these at job time, so# they need to be in the helper's env at spawn. When the user@@ -2510,7 +2512,11 @@ def make_job(form: dict[str, list[str]] | dict[str, str], *,"quality": quality, # quick / balanced / standard / high"accel": f("accel", "off"), # off / boost / turbo"upscale": upscale, # off / fit_720p / x2- "upscale_method": f("upscale_method", "lanczos"), # lanczos / model+ "upscale_method": (+ "model"+ if MODEL_UPSCALE_ENABLED and f("upscale_method", "lanczos") == "model"+ else "lanczos"+ ), # lanczos / model (model is lab-only; see LTX_ENABLE_MODEL_UPSCALE)# LoRAs the user has enabled for this job. The UI submits a# JSON-encoded array via the `loras` form field; we parse +# validate here so the worker / helper layers receive a clean@@ -3645,7 +3651,6 @@ class Handler(BaseHTTPRequestHandler):) or ""deps_signals = ("install.js", "update.js", "pinokio.js", "download_q8.js",- "download_upscaler.js","patch_ltx_codec.py", "required_files.json","requirements.txt", "pyproject.toml", "setup.py",)@@ -3900,6 +3905,7 @@ def page() -> str:"default_audio": str(AUDIO_DEFAULT),"fps": FPS, "model": MODEL_ID,"profile": PROFILE,+ "model_upscale_enabled": MODEL_UPSCALE_ENABLED,# Hardware-aware time estimates for the Quality pills. The pill HTML# ships with the Comfortable-tier defaults; on boot we rewrite the# subtext using the active tier's quality_times. Compact users see@@ -5732,8 +5738,9 @@ HTML = r"""<!doctype html>= ffmpeg Lanczos resize, no detail recovery, near-instant.Sharp = LTX 2.3 latent upscaler (~1 GB model), invents realdetail in latent space before VAE decode, ~30-60s slower.- Sharp is auto-disabled on tiers without enough RAM, and- falls back to Fast at runtime if the model file is missing. -->+ Sharp is lab-only behind LTX_ENABLE_MODEL_UPSCALE=1 after a+ release-test freeze showed the latent x2 peak can pressure+ 64 GB Macs too hard. Public builds use Fast by default. --><div class="cz-control" id="upscaleMethodRow" style="display:none;"><div class="cz-label">Method<span class="cz-label-hint">how the upscale is done</span>@@ -6090,6 +6097,7 @@ Third prompt."></textarea>const BOOT = __BOOTSTRAP__;const ASPECTS = BOOT.aspects;const FPS = BOOT.fps;+const MODEL_UPSCALE_ENABLED = !!BOOT.model_upscale_enabled;// Apply tier-aware time estimates to the Quality pill subtitles. The HTML// ships with the Comfortable-tier (M4 Studio 64 GB) numbers as defaults;@@ -6208,13 +6216,13 @@ function setUpscale(u) {// actually being applied. When toggled to "off", revert method to Fast// so a later toggle back to fit_720p starts from the safe default.const methodRow = document.getElementById('upscaleMethodRow');- if (methodRow) methodRow.style.display = (v === 'off') ? 'none' : '';- if (v === 'off') setUpscaleMethod('lanczos');+ if (methodRow) methodRow.style.display = (v === 'off' || !MODEL_UPSCALE_ENABLED) ? 'none' : '';+ if (v === 'off' || !MODEL_UPSCALE_ENABLED) setUpscaleMethod('lanczos');updateCustomizeSummary();updateDerived();}function setUpscaleMethod(m) {- const v = ['lanczos', 'model'].includes(m) ? m : 'lanczos';+ const v = (MODEL_UPSCALE_ENABLED && m === 'model') ? 'model' : 'lanczos';document.getElementById('upscale_method').value = v;document.querySelectorAll('#upscaleMethodGroup .pill-btn').forEach(b => b.classList.toggle('active', b.dataset.method === v));updateCustomizeSummary();@@ -7393,7 +7401,7 @@ function updateModelsCard(s) {card.style.display = '';card.classList.add('state-downloading');icon.textContent = '↓';- const labelByKey = { q4: 'Q4 base model', gemma: 'Gemma text encoder', q8: 'Q8 high-quality model', ltx_upscaler: 'LTX spatial upscaler' };+ const labelByKey = { q4: 'Q4 base model', gemma: 'Gemma text encoder', q8: 'Q8 high-quality model' };title.textContent = `Downloading ${labelByKey[dl.key] || dl.repo_id}`;const elapsed = Math.max(0, Math.round((Date.now()/1000) - (dl.started_ts || 0)));sub.textContent = `${elapsed}s elapsed · resumable if interrupted`;diff --git a/mlx_warm_helper.py b/mlx_warm_helper.pyindex 7b02dfd..aab3db7 100644--- a/mlx_warm_helper.py+++ b/mlx_warm_helper.py@@ -32,6 +32,7 @@ MODEL_ID = os.environ.get("LTX_MODEL", "dgrauet/ltx-2.3-mlx-q4")GEMMA_PATH = os.environ.get("LTX_GEMMA", "mlx-community/gemma-3-12b-it-4bit")IDLE_TIMEOUT = int(os.environ.get("LTX_IDLE_TIMEOUT", "1800"))LOW_MEMORY = os.environ.get("LTX_LOW_MEMORY", "true").lower() in ("true", "1", "yes")+MODEL_UPSCALE_ENABLED = os.environ.get("LTX_ENABLE_MODEL_UPSCALE", "").lower() in ("1", "true", "yes", "on")_real_stdout = sys.stdout_emit_lock = threading.Lock()@@ -500,8 +501,9 @@ def cover_crop_to_size(src_path: str, w: int, h: int) -> str:# Optional model-based ×2 upscale that runs on the video latent BEFORE the VAE# decode, giving real detail recovery instead of the ffmpeg Lanczos resize that# the panel's lightweight export path uses. The model file is a 1 GB-# safetensors that ships in mlx_models/ltx-2.3-mlx-q8/ (downloaded by-# install.js, retryable via Pinokio's "Download LTX upscaler" menu item).+# safetensors under mlx_models/ltx-2.3-mlx-q8/. This path is intentionally+# disabled in public builds unless LTX_ENABLE_MODEL_UPSCALE=1 because the+# doubled latent + VAE decode peak can freeze 64 GB Macs under pressure.# We hand-roll the loader rather than instantiating the HQ pipeline because# we only want the upsampler — not the Q8 dev transformer that costs ~25 GB._UPSCALER_CACHE = None@@ -961,12 +963,16 @@ for line in sys.__stdin__:upscale_method = (p.get("upscale_method") or "lanczos").strip().lower()upscale_target = (p.get("upscale") or "off").strip().lower()use_model_upscale = (- upscale_method == "model"+ MODEL_UPSCALE_ENABLED+ and upscale_method == "model"and upscale_target in ("fit_720p", "x2")and upscaler_available())- if upscale_method == "model" and upscale_target in ("fit_720p", "x2") and not upscaler_available():- emit({"event": "log", "line": "Sharper upscale requested but model weights missing — falling back to Lanczos."})+ if upscale_method == "model" and upscale_target in ("fit_720p", "x2"):+ if not MODEL_UPSCALE_ENABLED:+ emit({"event": "log", "line": "Sharper upscale is lab-only in this build — falling back to Lanczos."})+ elif not upscaler_available():+ emit({"event": "log", "line": "Sharper upscale requested but model weights missing — falling back to Lanczos."})if use_model_upscale:emit({"event": "log", "line": f"step:generate mode={mode} {kwargs['width']}x{kwargs['height']} {kwargs['num_frames']}f steps={kwargs['num_steps']} accel={accel_mode} upscale=model"})diff --git a/pinokio.js b/pinokio.jsindex d92afee..4ba51d5 100644--- a/pinokio.js+++ b/pinokio.js@@ -9,7 +9,6 @@// env_ready — venv + ltx-2-mlx clone exist (install.js step 1-3)// base_models_ready — Q4 + Gemma fully on disk (install.js step 4-5)// q8_ready — optional Q8 bundle fully on disk (download_q8.js)-// upscaler_ready — optional official LTX x2 latent upscaler (~1 GB)//// Anything less than `env_ready && base_models_ready` means the user can't// Start — we surface a Resume Install affordance instead of Start. This is@@ -85,11 +84,9 @@ module.exports = {const repos = required.repos || []const baseRepos = repos.filter(r => r.kind === "base")const q8Repo = repos.find(r => r.key === "q8")- const upscalerRepo = repos.find(r => r.key === "ltx_upscaler")const base_ready = baseRepos.length > 0 && baseRepos.every(r => repoComplete(installRoot, r, minBytes))const q8_ready = q8Repo ? repoComplete(installRoot, q8Repo, minBytes) : false- const upscaler_ready = upscalerRepo ? repoComplete(installRoot, upscalerRepo, minBytes) : false// User-content folders persist across Reset (which only removes the venv).// Keep their shortcuts visible whenever they exist on disk so users can@@ -104,7 +101,6 @@ module.exports = {update: info.running("update.js"),reset: info.running("reset.js"),q8download: info.running("download_q8.js"),- upscalerdownload: info.running("download_upscaler.js"),}// Running states first — show what's in progress, hide everything else.@@ -112,7 +108,6 @@ module.exports = {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 (~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// folders if a previous install left files behind.@@ -163,9 +158,6 @@ module.exports = {if (!q8_ready) {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" })- }baseMenu.push({ icon: "fa-solid fa-rotate", text: "Update", href: "update.js" },{ icon: "fa-regular fa-circle-xmark", text: "Reset", href: "reset.js" },diff --git a/required_files.json b/required_files.jsonindex ca31080..50ffaea 100644--- a/required_files.json+++ b/required_files.json@@ -74,18 +74,6 @@"vocoder.safetensors","spatial_upscaler_x2_v1_1.safetensors"]- },- {- "key": "ltx_upscaler",- "kind": "optional",- "name": "LTX 2.3 — Spatial upscaler x2",- "blurb": "Optional. Official LTX latent x2 upscaler (~1 GB) for model-backed upscale experiments.",- "repo_id": "dgrauet/ltx-2.3-mlx-q8",- "local_dir": "mlx_models/ltx-2.3-mlx-q8",- "size_gb": 1,- "files": [- "spatial_upscaler_x2_v1_1.safetensors"- ]}],