diff --git a/mseries/assistant/mseries-assistd.service b/mseries/assistant/mseries-assistd.service index 6240adf1..eb29ed4c 100644 --- a/mseries/assistant/mseries-assistd.service +++ b/mseries/assistant/mseries-assistd.service @@ -8,8 +8,9 @@ PartOf=graphical-session.target Environment=OMARCHY_MLX_SYSTEM_PREFIX=%h/.local/share/mlx-omarchy Environment=VK_DRIVER_FILES=%h/.local/share/mlx-omarchy/vulkan/honeykrisp_icd.aarch64.json Environment=HF_HUB_OFFLINE=1 TRANSFORMERS_OFFLINE=1 HF_HUB_DISABLE_TELEMETRY=1 -# Vulkan submission budget: 20k measured 7% faster suggestions and 13% faster speech-to-text than the default (PR #648 value). -Environment=MLX_OMARCHY_BATCH_WORK=20000 +# Vulkan submission budget. The M1 Pro (G13S) is uncalibrated upstream and falls back to 5000. +# 120k: LFM3-1.7B 22.6 -> 27.5 tok/s on Honeykrisp 9323171c12, output identical, MLX gate PASS. +Environment=MLX_OMARCHY_BATCH_WORK=120000 Environment=MSERIES_ASSIST_IDLE=600 ExecStart=%h/.local/share/mseries-ai/lfm3-audio-venv/bin/python -I %h/.local/libexec/mseries-assistant/assistd.py Nice=5 diff --git a/mseries/local-ai/install.sh b/mseries/local-ai/install.sh index 7e8272b9..6fd9d802 100755 --- a/mseries/local-ai/install.sh +++ b/mseries/local-ai/install.sh @@ -53,7 +53,9 @@ checkout() { } checkout coreglass coreglass 25603cbf1f95fd2819b11d914afec58997ef1b8b checkout omarchy-mlx omarchy-mlx 33630f9c1eeefe5fc985a28bed0585432c2c014e -checkout mesa-mlx-compute mesa-1 7faf04c065c5376d2d58a1e5b33a60118109c99e +# 9323171c12 (2026-10-25): identical MLX gate results to 7faf04c065 and faster decode on the +# M1 Pro (Qwen 2B +36%, Qwen 4B +24%, LFM3 +48% at defaults); see ENGINE-SCOREBOARD.md. +checkout mesa-mlx-compute mesa-1 9323171c12c5aa6055f1031ea26c16c247191987 if git -C "$work/coreglass" apply --check "$script_dir/coreglass-local.patch" 2>/dev/null; then git -C "$work/coreglass" apply "$script_dir/coreglass-local.patch" else diff --git a/mseries/local-ai/model-worker.py b/mseries/local-ai/model-worker.py index 22a72e18..2080c775 100644 --- a/mseries/local-ai/model-worker.py +++ b/mseries/local-ai/model-worker.py @@ -46,6 +46,10 @@ def main(): env['OMARCHY_MLX_SYSTEM_PREFIX'] = str(prefix) env['VK_DRIVER_FILES'] = str(prefix / 'vulkan/honeykrisp_icd.aarch64.json') if profile['engine'] == 'mlx': + # The M1 Pro (G13S) is uncalibrated in omarchy-mlx and falls back to a 5000 work-group submit + # budget. 120k passes the MLX gate with identical output and decodes faster (Qwen 2B 48.9 -> 56.4, + # Qwen 4B 23.1 -> 27.0 tok/s on Honeykrisp 9323171c12). An explicit value in the environment wins. + env.setdefault('MLX_OMARCHY_BATCH_WORK', '120000') from runtime_recovery import recover recovered = recover(prefix) if recovered: print(f'RECOVERY: removed {recovered} dead CLI reservations; reserve unchanged', flush=True)