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
fix(helper/lora): fuse into the file the pipeline actually loads (DistilledPipeline blur)
mrbizarro1759154ed040
diff --git a/mlx_warm_helper.py b/mlx_warm_helper.pyindex ea33a0b..b94b7de 100644--- a/mlx_warm_helper.py+++ b/mlx_warm_helper.py@@ -380,14 +380,34 @@ def _install_lora_fusion_patches() -> None:from ltx_core_mlx.utils.memory import aggressive_cleanupfrom ltx_core_mlx.utils.weights import apply_quantization, load_split_safetensors+ distilled_cls = next(+ (c for c in classes if c.__name__ == "DistilledPipeline"), None+ )+def _resolve_tx_path(pipe):- # Dev-based pipelines (two-stage, one-stage, HQ) carry the dev- # transformer filename in `_dev_transformer`. Distilled has no such- # attribute and tries `transformer.safetensors` first, then- # `transformer-distilled.safetensors` (mirrors DistilledPipeline.load).+ # CRITICAL: this must return the SAME file the pipeline's own load()+ # would load — fusion sets self.dit, and the original load() then+ # short-circuits because self.dit is not None. If we fuse into a+ # different file than the pipeline expects to run inference against,+ # we get a base-fine-tune mismatch (e.g. dev weights running through+ # the distilled 8-step sigma schedule = undertrained denoise = blur).+ #+ # DistilledPipeline inherits `_dev_transformer = "transformer-dev..."`+ # from its TI2VidTwoStagesPipeline parent, but its load() actually+ # picks `transformer.safetensors` → `transformer-distilled.safetensors`+ # (see distilled.py). We must match THAT, not the inherited dev name.+ if distilled_cls is not None and isinstance(pipe, distilled_cls):+ p = pipe.model_dir / "transformer.safetensors"+ if not p.exists():+ p = pipe.model_dir / "transformer-distilled.safetensors"+ return p+ # Genuine dev-based pipelines: TI2VidTwoStagesPipeline (non-distilled),+ # TI2VidOneStagePipeline, TI2VidTwoStagesHQPipeline. They all load+ # via `_load_dev_transformer()` which reads `_dev_transformer`.dev_name = getattr(pipe, "_dev_transformer", None)if dev_name:return pipe.model_dir / dev_name+ # Fallback (shouldn't hit): distilled file resolution.p = pipe.model_dir / "transformer.safetensors"if not p.exists():p = pipe.model_dir / "transformer-distilled.safetensors"