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.

1.5 KB
Raw Blame
#!/usr/bin/env bash
# Music engine (YuE2) install: its licence must be accepted first (4.19.8).
#
#   bash scripts/pinokio/music_licence_gate.sh        (from the app root)
#
# YuE2's weights are CC BY-NC 4.0 plus an individual-creator permission
# (LICENSES/YuE2-MODEL_LICENSE.txt). The panel shows that licence and stores
# the acceptance (model_licences.py writes state/licence-yue2-<version>.accepted);
# the in-panel installer asks first (HTTP 451 -> the licence screen), and this
# step does the same for the Pinokio sidebar's "Install the music engine".
# Cached weights do not replace explicit acceptance of the current licence.
# The version must equal model_licences.LICENCES["yue2"]["version"].
APP_ROOT="$(pwd)"
YUE2_LICENCE_VERSION="2026-09-16"
STATE="${LTX_STATE_DIR:-$APP_ROOT/state}"
case "$STATE" in /*) ;; *) STATE="$APP_ROOT/$STATE" ;; esac
MODELS="${LTX_MUSIC_MODELS:-$APP_ROOT/mlx_models/yue2}"
case "$MODELS" in /*) ;; *) MODELS="$APP_ROOT/$MODELS" ;; esac
# Use the same read-only pair validation as the panel. Prefer its runtime.
PYTHON="$APP_ROOT/ltx-2-mlx/env/bin/python"
[ -x "$PYTHON" ] || PYTHON=python3
if "$PYTHON" "$APP_ROOT/model_licences.py" "$STATE" yue2 "$YUE2_LICENCE_VERSION" >/dev/null 2>&1; then
  echo "YuE2 licence: accepted in Phosphene."
  exit 0
fi
echo "FATAL error: Open Phosphene, go to Audio - Compose, click Install music engine and tick I accept on the YuE2 licence (non-commercial use only). That installs it; or run this again after accepting."
exit 1