Skip to content
This repository was archived by the owner on Nov 12, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions mseries/OS9-HANDOFF.md
Original file line number Diff line number Diff line change
Expand Up @@ -13482,3 +13482,33 @@ that revision. This PR updates the candidate links/status; it is not published
until merge and a new successful Pages deployment. No host, boot, panel, kernel,
audio or power state changed. Next: merge after required review/current-head
checks, then verify Pages deployment and live bytes for the merged revision.

## Local AI engines: scoreboard, gate and 45–80% faster decode — 2026-10-28

TensorFold PR 1517 (native Vulkan Qwen 2B) was ported as a pinned private-prefix build
(`mseries/local-ai/tensorfold-vulkan.sh`): host tests and 39/39 GPU operator gates pass on the
M1 Pro, but it decodes at 2.4–2.8 tok/s because each GPU op is submitted and waited on alone;
upstream's batching PR is not public. No kernel change was needed (wip4 already exposes
Honeykrisp Vulkan 1.4 and `/dev/accel/accel0`). PR 1526 is the first stacked slice (runtime +
Q4 projection + kernel contract); `tensorfold-vulkan.sh contract` runs it on G13S when wanted.

Added `engine-compare.py` (MLX in-process, Rapid-MLX, mlx-omarchy-serve, TensorFold; Qwen 2B,
Qwen 4B, LFM3; optional concurrency), `mlx-gate.py` (TensorFold-style correctness gate against
a CPU float32 reference; omarchy-mlx's CPU backend lacks `mx.fast` rms_norm/rope/SDPA, so the
reference uses plain-op versions), `honeykrisp-candidate.sh` (side driver builds selected with
`MSERIES_HK_ICD`) and `scoreboard.py` → `ENGINE-SCOREBOARD.md` + CSV + SVG. Tracking issue #659
holds triage; the watch lists cover joshuaswarren (user), TensorFold, coreglass, metal2vk,
omarchy-cluster, ane-linux-experiments and Generated-Computers/Locals. Documentation stays in
this repo; nothing is posted upstream. mlx-lm / omarchy-mlx steps follow upstream's own default
(still mlx-lm 0.31.3 on omarchy-mlx main).

Adopted in #664 and installed here: Honeykrisp `7faf04c065` → `9323171c12` and a 120k MLX
submit budget (G13S has no upstream calibration row and fell back to 5000). The gate passes on
both drivers with identical RMSE; text is identical. Decode: Qwen 2B 36.0 → 56.4, Qwen 4B
18.6 → 27.0, LFM3 15.3 → 27.5 tok/s; llama.cpp +8%. Receipt and rollback:
`mseries/local-ai/receipts/2026-10-28-honeykrisp-9323-adoption.md`.

Memory audit the same day: the LFM3 assistant kept ~3 GiB of GPU memory pinned after its idle
unload (fixed in #661: exit after unload, systemd restarts it); wingpanel restarts killed
panel-launched apps (fixed in #662: `KillMode=process`). Open: mlx-omarchy-serve (what the
everyday model runs) decodes well below in-process MLX — see the server rows on the scoreboard.
8 changes: 8 additions & 0 deletions mseries/local-ai/ENGINE-SCOREBOARD.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,27 @@ One table for every engine we run or watch on the M1 Pro. ★ marks the most fun
| | LFM3-1.7B MLX 8-bit | MLX (omarchy-mlx, in-process) | `MLX_OMARCHY_BATCH_WORK=120000` | 32 | 16.90 | 0.39 | 2.23 | 3 | yes | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-lfm3-short.json](receipts/2026-10-28-engine-compare-lfm3-short.json) |
| | LFM3-1.7B MLX 8-bit | MLX (omarchy-mlx, in-process) | `defaults (MLX_OMARCHY_BATCH_WORK fallback 5000)` | 32 | 15.27 | 0.40 | 2.38 | 3 | reference | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-lfm3-short.json](receipts/2026-10-28-engine-compare-lfm3-short.json) |
| ★ | Qwen3.5-2B MLX 4-bit | **MLX (omarchy-mlx, in-process)** | `MLX_OMARCHY_BATCH_WORK=120000` | 32 | **56.39** | 0.45 | 1.00 | 3 | yes | PASS | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 9323171c12 | 2026-10-28 | [2026-10-28-engine-compare-qwen2b-short-hk9323171c12.json](receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12.json) |
| | Qwen3.5-2B MLX 4-bit | Rapid-MLX 1d09cdb (HTTP server) | `MLX_OMARCHY_BATCH_WORK=120000` | 32 | 50.63 | 0.18 | 0.80 | 3 | yes (engines in this run agree) | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 9323171c12 | 2026-10-28 | [2026-10-28-engine-compare-qwen2b-short-hk9323171c12-rapid-120k+serve-120k.json](receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-rapid-120k+serve-120k.json) |
| | Qwen3.5-2B MLX 4-bit | MLX (omarchy-mlx, in-process) | `defaults (MLX_OMARCHY_BATCH_WORK fallback 5000)` | 32 | 48.86 | 0.46 | 1.10 | 3 | reference | PASS | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 9323171c12 | 2026-10-28 | [2026-10-28-engine-compare-qwen2b-short-hk9323171c12.json](receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12.json) |
| ★ | Qwen3.5-2B MLX 4-bit | **Rapid-MLX 1d09cdb (HTTP server)** | `MLX_OMARCHY_BATCH_WORK=120000 · 8 requests at once (decode = total tok/s)` | 32 | **48.14** | 1.92 | 5.32 | 3 | yes (engines in this run agree) | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 9323171c12 | 2026-10-28 | [2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c8-rapid-120k+serve-120k.json](receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c8-rapid-120k+serve-120k.json) |
| | Qwen3.5-2B MLX 4-bit | MLX (omarchy-mlx, in-process) | `MLX_OMARCHY_BATCH_WORK=120000` | 32 | 47.19 | 0.46 | 1.13 | 3 | yes | PASS | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-short.json](receipts/2026-10-28-engine-compare-short.json) |
| ★ | Qwen3.5-2B MLX 4-bit | **Rapid-MLX 1d09cdb (HTTP server)** | `MLX_OMARCHY_BATCH_WORK=120000 · 4 requests at once (decode = total tok/s)` | 32 | **43.46** | 1.14 | 2.94 | 3 | yes (engines in this run agree) | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 9323171c12 | 2026-10-28 | [2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c4-rapid-120k+serve-120k.json](receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c4-rapid-120k+serve-120k.json) |
| | Qwen3.5-2B MLX 4-bit | Rapid-MLX 1d09cdb (HTTP server) | `MLX_OMARCHY_BATCH_WORK=120000` | 32 | 42.42 | 0.19 | 0.92 | 3 | yes | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-short.json](receipts/2026-10-28-engine-compare-short.json) |
| | Qwen3.5-2B MLX 4-bit | MLX (omarchy-mlx, in-process) | `defaults (MLX_OMARCHY_BATCH_WORK fallback 5000)` | 32 | 36.02 | 0.51 | 1.37 | 3 | reference | PASS | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-short.json](receipts/2026-10-28-engine-compare-short.json) |
| | Qwen3.5-2B MLX 4-bit | mlx-omarchy-serve, mlx-lm backend (HTTP server; runs the everyday model) | `MLX_OMARCHY_BATCH_WORK=120000` | 32 | 33.07 | 0.63 | 1.57 | 3 | yes (engines in this run agree) | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 9323171c12 | 2026-10-28 | [2026-10-28-engine-compare-qwen2b-short-hk9323171c12-rapid-120k+serve-120k.json](receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-rapid-120k+serve-120k.json) |
| | Qwen3.5-2B MLX 4-bit | mlx-omarchy-serve, mlx-lm backend (HTTP server; runs the everyday model) | `MLX_OMARCHY_BATCH_WORK=120000 · 4 requests at once (decode = total tok/s)` | 32 | 19.92 | 4.15 | 6.43 | 3 | yes (engines in this run agree) | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 9323171c12 | 2026-10-28 | [2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c4-rapid-120k+serve-120k.json](receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c4-rapid-120k+serve-120k.json) |
| | Qwen3.5-2B MLX 4-bit | mlx-omarchy-serve, mlx-lm backend (HTTP server; runs the everyday model) | `MLX_OMARCHY_BATCH_WORK=120000 · 8 requests at once (decode = total tok/s)` | 32 | 19.84 | 8.07 | 12.90 | 3 | yes (engines in this run agree) | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 9323171c12 | 2026-10-28 | [2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c8-rapid-120k+serve-120k.json](receipts/2026-10-28-engine-compare-qwen2b-short-hk9323171c12-c8-rapid-120k+serve-120k.json) |
| | Qwen3.5-2B MLX 4-bit | TensorFold Vulkan PR 1517 (HTTP server) | `serve --backend vulkan --context 1024 --no-thinking` | 32 | 2.40 | 2.00 | 14.92 | 3 | yes | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-short.json](receipts/2026-10-28-engine-compare-short.json) |
| ★ | Qwen3.5-2B MLX 4-bit | **MLX (omarchy-mlx, in-process)** | `MLX_OMARCHY_BATCH_WORK=120000` | 256 | **49.28** | 0.56 | 5.74 | 3 | yes | PASS | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-long.json](receipts/2026-10-28-engine-compare-long.json) |
| | Qwen3.5-2B MLX 4-bit | Rapid-MLX 1d09cdb (HTTP server) | `MLX_OMARCHY_BATCH_WORK=120000` | 256 | 43.17 | 0.40 | 6.27 | 3 | yes | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-long.json](receipts/2026-10-28-engine-compare-long.json) |
| | Qwen3.5-2B MLX 4-bit | MLX (omarchy-mlx, in-process) | `defaults (MLX_OMARCHY_BATCH_WORK fallback 5000)` | 256 | 37.19 | 0.55 | 7.41 | 3 | reference | PASS | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-long.json](receipts/2026-10-28-engine-compare-long.json) |
| | Qwen3.5-2B MLX 4-bit | TensorFold Vulkan PR 1517 (HTTP server) | `serve --backend vulkan --context 1024 --no-thinking` | 256 | 2.77 | 3.12 | 95.26 | 3 | no: diverges after 880 of 1301 chars | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-long.json](receipts/2026-10-28-engine-compare-long.json) |
| ★ | Qwen3.5-4B MLX 4-bit | **MLX (omarchy-mlx, in-process)** | `MLX_OMARCHY_BATCH_WORK=120000` | 32 | **27.01** | 0.64 | 1.78 | 3 | yes | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 9323171c12 | 2026-10-28 | [2026-10-28-engine-compare-qwen4b-short-hk9323171c12.json](receipts/2026-10-28-engine-compare-qwen4b-short-hk9323171c12.json) |
| | Qwen3.5-4B MLX 4-bit | Rapid-MLX 1d09cdb (HTTP server) | `MLX_OMARCHY_BATCH_WORK=120000` | 32 | 25.69 | 0.21 | 1.43 | 3 | yes (engines in this run agree) | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 9323171c12 | 2026-10-28 | [2026-10-28-engine-compare-qwen4b-short-hk9323171c12-rapid-120k+serve-120k.json](receipts/2026-10-28-engine-compare-qwen4b-short-hk9323171c12-rapid-120k+serve-120k.json) |
| | Qwen3.5-4B MLX 4-bit | MLX (omarchy-mlx, in-process) | `MLX_OMARCHY_BATCH_WORK=120000` | 32 | 24.79 | 0.71 | 1.96 | 3 | yes | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-qwen4b-short.json](receipts/2026-10-28-engine-compare-qwen4b-short.json) |
| | Qwen3.5-4B MLX 4-bit | Rapid-MLX 1d09cdb (HTTP server) | `MLX_OMARCHY_BATCH_WORK=120000` | 32 | 23.44 | 0.24 | 1.56 | 3 | yes | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-qwen4b-short.json](receipts/2026-10-28-engine-compare-qwen4b-short.json) |
| | Qwen3.5-4B MLX 4-bit | MLX (omarchy-mlx, in-process) | `defaults (MLX_OMARCHY_BATCH_WORK fallback 5000)` | 32 | 23.14 | 0.65 | 1.99 | 3 | reference | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 9323171c12 | 2026-10-28 | [2026-10-28-engine-compare-qwen4b-short-hk9323171c12.json](receipts/2026-10-28-engine-compare-qwen4b-short-hk9323171c12.json) |
| | Qwen3.5-4B MLX 4-bit | mlx-omarchy-serve, mlx-lm backend (HTTP server; runs the everyday model) | `MLX_OMARCHY_BATCH_WORK=120000` | 32 | 19.06 | 0.89 | 2.52 | 3 | yes (engines in this run agree) | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 9323171c12 | 2026-10-28 | [2026-10-28-engine-compare-qwen4b-short-hk9323171c12-rapid-120k+serve-120k.json](receipts/2026-10-28-engine-compare-qwen4b-short-hk9323171c12-rapid-120k+serve-120k.json) |
| | Qwen3.5-4B MLX 4-bit | MLX (omarchy-mlx, in-process) | `defaults (MLX_OMARCHY_BATCH_WORK fallback 5000)` | 32 | 18.55 | 0.73 | 2.38 | 3 | reference | not gated | `7.2.11-elementary-aurora72-wip4` | Honeykrisp Mesa 7faf04c065 | 2026-10-28 | [2026-10-28-engine-compare-qwen4b-short.json](receipts/2026-10-28-engine-compare-qwen4b-short.json) |

## Watched or reported elsewhere (not comparable to the table above)
Expand Down
Loading
Loading