Skip to content
This repository was archived by the owner on Nov 12, 2026. It is now read-only.

Local AI engine scoreboard: MLX gate, two drivers, Qwen 4B and LFM3 - #660

Merged
techmore merged 9 commits into
devfrom
claude/local-ai-scoreboard
Oct 28, 2026
Merged

techmore merged 9 commits into
devfrom
claude/local-ai-scoreboard

Conversation

@techmore

@techmore techmore commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Living documentation PR for ENGINE-SCOREBOARD.md, tracked in #659. The first version (Qwen 2B, four engines, 32 and 256 tokens) landed on dev with #648. This PR adds the next rows as they are measured.

In this PR so far

  • mlx-gate.py: the CPU reference now runs. omarchy-mlx's CPU backend raises NYI for mx.fast.rms_norm, rope and SDPA, so the reference uses plain float32 versions; they match the GPU fused ops (rope and SDPA exactly, rms_norm within 2.4e-6). The reference build is resumable and budgets 6 GiB.

Still to add before ready

  • Gate verdicts and decode speed for the Qwen 2B knob sweep (batch budget, wave scheduling, queue priority, and a known-bad negative control)
  • Qwen3.5-4B rows (needs 12.5 GiB free)
  • LFM3-1.7B 8-bit rows
  • Regenerated CSV, SVG chart and page

🤖 Generated with Claude Code

Result (2026-10-28)

  • MLX gate: every scheduling config passes on both Honeykrisp drivers with identical pooled RMSE; the SDPA_BF16_FAST negative control fails on both.
  • Decode, old driver default → new driver 9323171c12 + 120k: Qwen 2B 36.0 → 56.4 (+57%), Qwen 4B 18.6 → 27.0 (+45%), LFM3 15.3 → 27.5 (+80%); identical output text. Adopted in Adopt Honeykrisp 9323171c12 and a 120k MLX submit budget (+45–80% decode) #664.
  • Also: tensorfold-vulkan.sh contract (TensorFold #1526), honeykrisp-candidate.sh, scoreboard rows keyed by driver, coreglass and Locals watched, version steps follow omarchy-mlx's own default.

techmore and others added 9 commits October 28, 2026 08:16
omarchy-mlx's CPU backend raises NYI for these mx.fast ops. The float32
replacements match the GPU fused ops (rope and SDPA exactly, rms_norm
within 2.4e-6) and keep the reference independent of the kernels under test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR 1526 splits the runtime, the Q4 projection and its kernel-contract
runner out of 1517. Upstream ran the contract on M1, M1 Max and M2 Max;
the new contract mode runs it on our M1 Pro (G13S) with the private ICD.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
honeykrisp-candidate.sh builds one pinned joshuaswarren/mesa-1 commit with
install.sh's flags into ~/.cache/mseries-honeykrisp; MSERIES_HK_ICD selects
it per process in engine-compare.py and mlx-gate.py, whose receipts record
and are named by the driver. coreglass's ledger shows its newer driver and
MLX main decoding faster than the release stack we pin (7faf04c065 predates
both), so it joins the people and branch watches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Qwen3.5-4B: MLX 120k 24.8 tok/s vs 18.6 default (+34%), Rapid-MLX 23.4.
The gate re-runs under the MLX venv for numpy; LFM3 runs on the MLX venv
with the pinned mlx-lm PR 2016 model file, as the 2026-10-27 smoke test did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MLX gate (CPU float32 reference, 6 prompts): all 9 tuning configs PASS on
7faf04c065 and 9323171c12, the SDPA_BF16_FAST negative control FAILS on
both, and pooled RMSE is identical (0.03647) across drivers.

Decode, 32 tokens, 3 rotated rounds, identical output text across drivers:
  Qwen 2B default 36.0 -> 48.9 (+36%), 120k 47.2 -> 56.4 (+19%)
  Qwen 4B default 18.6 -> 23.1 (+24%), 120k 24.8 -> 27.0 (+9%)
Scoreboard rows and gate verdicts are now keyed by driver.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LFM3-1.7B MLX 8-bit, 32 tokens, 3 rotated rounds, identical output:
  7faf04c065: default 15.3, 120k 16.9 tok/s
  9323171c12: default 22.6, 120k 27.5 tok/s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@techmore
techmore force-pushed the claude/local-ai-scoreboard branch from 40e723c to 3f1dfe8 Compare October 28, 2026 12:16
@techmore techmore changed the title Local AI engine scoreboard: MLX gate, Qwen 4B and LFM3 rows Local AI engine scoreboard: MLX gate, two drivers, Qwen 4B and LFM3 Oct 28, 2026
@techmore
techmore marked this pull request as ready for review October 28, 2026 12:16
@techmore
techmore enabled auto-merge (squash) October 28, 2026 12:16
@techmore
techmore merged commit 8e8475d into dev Oct 28, 2026
20 checks passed
@techmore
techmore deleted the claude/local-ai-scoreboard branch October 28, 2026 16:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant