Skip to content

Add omarchy-mlx, omarchy-mlx-vulkan and omarchy-mac-ml: MLX on the Apple GPU (opt-in) - #764

Merged
maralcbr merged 16 commits into
omacom:masterfrom
joshuaswarren:add-omarchy-mlx
Oct 4, 2026
Merged

maralcbr merged 16 commits into
omacom:masterfrom
joshuaswarren:add-omarchy-mlx

Conversation

@joshuaswarren

@joshuaswarren joshuaswarren commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

omarchy-mlx v0.7.24 — MLX on the Apple GPU, opt-in

Ships MLX on Apple Silicon Linux as an opt-in package set, pinned to the published
joshuaswarren/omarchy-mlx v0.7.24 release and the qualified mesa commit.
Bumped from v0.7.22 for the v0.7.24 correction: v0.7.17–v0.7.23 GPU sin/cos
returned wrong values for 1e4 ≤ |x| < 1e7.
(v0.7.11 is skipped: that tag is burned and has no release. Skipped since: 12 leaked
private data via its collector, 13 lacked the macOS collector dump-cap fix, and
15/16/18/20 were burned and never published.)

What installs

Package Installs
omarchy-mlx System venv (/usr/lib/omarchy-mlx/venv) built offline from the hash-locked release wheels, plus the mlx-omarchy launchers and services. Depends on omarchy-mlx-vulkan pinned =0.7.24-1.
omarchy-mlx-vulkan The Honeykrisp Vulkan driver (libvulkan_asahi.so) as a private ICD under /usr/lib/omarchy-mlx/vulkan/ — out of the loader's default search path, so other programs never pick it up — with its mesa-git-sha stamp.

Nothing here installs by default. The opt-in omarchy-mac-ml meta package lives in #791; it pulls these two plus omarchy-ane-dkms (#745) and mil-hwx-compiler (#747), and merges after they publish.

Pins and checksums (all re-downloaded and sha256-verified for this PR)

Source sha256
v0.7.24 source tarball 022489f1aa70eaafa85a015500a257f5817676e352b9ff2d4368e2c8cb1efac7
mlx_omarchy-0.32.4.dev202610032142+eaa69723-cp314-cp314-linux_aarch64.whl c18ca23ccf8602f4bcceba5e3125b1c6cf67083d73fd8caa28ad26f8b4339dcb
omarchy-mlx-vendor-wheels-v0.7.24-cp314-aarch64.tar fbfad09877a45de7e8160b659ed55415f0df0c43e6ea3552c412d0ddd7ae4d0e
mesa-1 @ e7631595df6281748ea5e643d74db59c5f783b01 (honeykrisp-omarchy-v3) ae00b9568f1c57a7be7518b6f508354bc86c4494d83a82ef79bd0a799835c4b2

Wheel and vendor hashes match the release SHA256SUMS asset. The wheel and vendor
tarball publish together with the driver pin so the tested wheel and the Vulkan driver
it was qualified on can never skew. MESA_GIT_SHA1_OVERRIDE uses the short sha
(e7631595df), matching exactly what the driver reports after git- in driverInfo —
what mlx_omarchy_paths.packaged_mesa_git_sha_path compares against. Source archives
of the renamed repo extract to omarchy-mlx-<ver> for every tag, and the recipe's
source filename and build directory follow that name. check() now runs the release's
scripts/verify_runtime_assets.py against the staged parakeet share tree, so a build
whose ANE bytes disagree with the wheel's runtime pin fails instead of shipping.

How it was tested

  • All four sources downloaded fresh and sha256-checked against the PKGBUILD's sha256sums.
  • tests/pinned-sources.sh (CI test.yml): PASS: 52 git source(s) across pkgbuilds/ are pinned to a commit or tag.
  • tests/published-build-plan.sh: both scheduler plans PASS.
  • Both PKGBUILDs sourced cleanly with CARCH=aarch64; .SRCINFO content cross-checked
    against the sourced recipes field-by-field.
  • No Arch/aarch64 toolchain on the authoring host (Debian, no makepkg/container), so the
    full bin/build aarch64 build runs in CI via build-pr.

Note: this repo gitignores pkgbuilds/*/.SRCINFO (build-time artifacts), so the
generated .SRCINFO files are verified in the worktree but intentionally not committed.

Both packages come from one PKGBUILD, so the MLX wheel and the Vulkan
driver it was qualified on publish together.

omarchy-mlx-vulkan builds only the Honeykrisp Vulkan driver from
joshuaswarren/mesa-1 9b97b82ab1. It installs the driver, an ICD
manifest with an absolute library_path, and the driver's git SHA in
/usr/lib/omarchy-mlx/vulkan/. The manifest is outside the loader's
search path, so only omarchy-mlx uses the driver. It provides nothing
generic and conflicts with mesa-honeykrisp-omarchy.

omarchy-mlx builds the private venv offline from the release's
hash-locked vendor wheels and depends on the exact omarchy-mlx-vulkan
build.

The mlx-omarchy sources are placeholders until v0.7.7 is published.
It pulls in omarchy-mlx, omarchy-ane-dkms and mil-hwx-compiler.
aarch64 and edge only.
omarchy-mlx builds the v0.7.10 release wheel and vendor tarball from
github.com/joshuaswarren/omarchy-mlx; omarchy-mlx-vulkan pins the
honeykrisp-omarchy-v3 driver at mesa-1 e7631595df6281748ea5e643d74db59c5f783b01
with MESA_GIT_SHA1_OVERRIDE set to the short sha the driver reports and the
runtime compares. omarchy-mac-ml now pulls omarchy-mlx-vulkan directly and its
description names MLX on the GPU and Core ML models on the Neural Engine.
Drops the "Local AI" name; the description now reads the same promise as
the menu label MLX + Core ML (Apple Silicon).
GitHub archives now extract to omarchy-mlx-<ver> for every tag, so the
source filename and the build cd follow the omarchy-mlx name. Tarball
sha256 unchanged: 7ad98f7df4df54c1e194b2be1469200da767dc3e374d79e66dcb98bdbb958a9d.
v0.7.11 is burned (no release); v0.7.12 publishes the tested wheel and vendor
tarball from tag 8995ddf2e. Mesa pin unchanged.
v0.7.12's collector leaks private data; v0.7.13 (tag 85998d135) replaces it.
Mesa pin unchanged.
v0.7.14 (tag 07729f401) carries the macOS collector dump-cap fix; v0.7.11
burned, v0.7.12 collector privacy leak, v0.7.13 superseded. Mesa pin unchanged.
… pin

v0.7.17 (tag a33a4e395) is the published Latest; v0.7.15/16 were burned and
never shipped. check() now runs the release's scripts/verify_runtime_assets.py
against the staged parakeet share tree so a stage whose ANE bytes disagree with
the wheel's runtime pin fails the build instead of shipping. Mesa pin unchanged.
v0.7.19 (tag 539d870e9) is the published Latest; v0.7.18 was never published.
Asset-pin check() unchanged. Mesa pin unchanged.
@maralcbr maralcbr added the build-approved Maintainer approved this PR to build on the self-hosted pool label Oct 2, 2026
@maralcbr

maralcbr commented Oct 2, 2026

Copy link
Copy Markdown
Member

Started CI (build-approved). This lands after #745 and #747, since omarchy-mac-ml depends on both. Note that CI builds Mesa but not MLX: the wheels are your prebuilt release assets (sha256-pinned), which is fine for edge.

Please fix:

  • .omarchy/package.json watch still names joshuaswarren/mlx-omarchy; url= is the renamed joshuaswarren/omarchy-mlx.
  • The body says omarchy-ane-dkms 0.4.0 (now 0.4.1) and short sha e7631595d. The code's e7631595df matches the release receipts, so only the body needs updating.
  • If you have the M1 build log, please paste it here.

Non-blocking:

  • Add "rebuild_on" for llvm: omarchy-mlx-vulkan links the shared libLLVM.
  • python<3.15 will hold back Arch's Python 3.15 upgrade for anyone who opted in, until cp315 wheels ship. Worth planning for.

@maralcbr

maralcbr commented Oct 2, 2026

Copy link
Copy Markdown
Member

CI on aarch64 failed in two places (run):

  1. omarchy-mlx: Mesa built fine (616/616, libvulkan_asahi.so) and the venv staged, but check() fails:
    import mlx.core, mlx_omarchy_paths, mlx_omarchy_serve
    ImportError: libopenblas.so.0: cannot open shared object file: No such file or directory
    
    openblas is only in package_omarchy-mlx()'s depends, and makepkg -s installs only the global depends/makedepends/checkdepends of a split package. Please add a global checkdepends=('openblas' 'lapack' 'blas' 'vulkan-icd-loader'), the shared libraries the wheel loads at import.
  2. omarchy-mac-ml: target not found: omarchy-mlx, omarchy-mlx-vulkan, omarchy-ane-dkms, mil-hwx-compiler. Each package builds in its own container against published edge, so the meta package can't build until its dependencies are published. mil-hwx-compiler is published now (Add mil-hwx-compiler, the Apple Neural Engine compiler #747). I'd move omarchy-mac-ml to its own small PR after this one and Add omarchy-ane-dkms, the Apple Neural Engine driver #745 publish.

v0.7.22 (tag 58724762e) supersedes the burned 0.7.15/16/18/20; 0.7.21 stays
the previous release. Mesa pin unchanged. Checksums verified against two
independent downloads per source.
@maralcbr

maralcbr commented Oct 3, 2026

Copy link
Copy Markdown
Member

v0.7.22 checksums match the release SHA256SUMS, but CI fails the same way (run): check() gets ImportError: libopenblas.so.0. It needs the global checkdepends=('openblas' 'lapack' 'blas' 'vulkan-icd-loader') from my earlier comment. omarchy-mac-ml still can't build until its dependencies are published, so it's best moved to a follow-up PR.

makepkg's upfront dependency install covers only pkgbase-level arrays, so the
per-package openblas depends never reach a fresh container and check()'s
mlx.core import failed with a missing libopenblas.so.0. Declare it as a
checkdepends instead; real installs still get it through depends.
@joshuaswarren

Copy link
Copy Markdown
Contributor Author

The recipe now packages omarchy-mlx v0.7.22 (58724762e); head 274d4f6.

  • pkgver=0.7.22. v0.7.11/15/16/18/20 are skipped (burned or never published); v0.7.21 remains the previous published release. sha256sums verified with two equal downloads of each source: source a6866208793185d4e34e677c43b3b31fde14780499e3d758bb7885450a970b8c, wheel bb8e31acd2153161ea74e683777fa6780c95be384a41a7c3760d2c2c3cbf188b, vendor 8818fc7bc7eda49963d50d6a82aa99af3c917e718eb8c14da0fd226078fd39b5 — wheel and vendor also match the release SHA256SUMS.
  • Mesa pin unchanged at e7631595df6281748ea5e643d74db59c5f783b01; the v0.7.22 release notes make no driver change.
  • Two recipe deltas vs the earlier commits: check() now ends with the release's scripts/verify_runtime_assets.py on the staged parakeet share tree (a stage whose ANE bytes disagree with the wheel pin fails the build), and checkdepends=('openblas') — makepkg's upfront dependency install covers only pkgbase-level arrays, so the per-package openblas depends never reached a fresh container and the first CI run failed check() with ImportError: libopenblas.so.0.

Checks

  • CI on 274d4f6: build (omarchy-mlx, aarch64, edge, aarch64) pass (5m02s, includes check()); build-isolation, changes, self-tests pass. build (omarchy-mac-ml, aarch64) fails at dependency resolution — target not found: omarchy-ane-dkms, mil-hwx-compiler — because Add omarchy-ane-dkms, the Apple Neural Engine driver #745/Add mil-hwx-compiler, the Apple Neural Engine compiler #747 are not in the edge repo yet, as stated in the PR body; that job goes green when they publish.
  • Recipe tests on the branch: tests/pinned-sources.sh PASS: 52 git source(s) across pkgbuilds/ are pinned to a commit or tag; tests/published-build-plan.sh PASS on both arch plans; .SRCINFO cross-checked field-by-field against the sourced PKGBUILDs.

M1 makepkg and pacman -U logs

One M1 laptop (T8103, jwm1), kernel 7.1.12-2-7-ARCH, omarchy-mlx and omarchy-mlx-vulkan 0.7.10-1 installed before the run. makepkg -sf --noconfirm -f (no --nocheck) from the PR branch at head 274d4f6, then pacman -U of both packages: makepkg exit 0; pacman -U exit 0.

==> Validating source files with sha256sums...
    omarchy-mlx-0.7.22.tar.gz ... Passed
    mlx_omarchy-0.32.4.dev202610031525+58724762-cp314-cp314-linux_aarch64.whl ... Passed
    omarchy-mlx-vendor-wheels-v0.7.22-cp314-aarch64.tar ... Passed
    mesa-e7631595df6281748ea5e643d74db59c5f783b01.tar.gz ... Passed
==> Starting check()...
OK: …/site-packages/mlx/share/mlx-omarchy/parakeet-1: pinned runtime assets verified
==> Finished making: omarchy-mlx 0.7.22-1 (Sat Oct  3 14:01:06 2026)
:: Processing package changes...
upgrading omarchy-mlx-vulkan...
upgrading omarchy-mlx...
:: Running post-transaction hooks...
(3/3) Updating the desktop file MIME type cache...

(The excerpt is from the second, reinstalling pacman -U; the first one performed the upgrade 0.7.10-1 -> 0.7.22-1, also exit 0.)

After the upgrade: omarchy-mlx 0.7.22-1, omarchy-mlx-vulkan 0.7.22-1; the driver stamp mesa-git-sha reads e7631595df; the installed venv python imports mlx.core on Device(gpu, 0).

Cosmetic, for the record: this builder emits .pkg.tar.xz, and bsdtar warns Can't translate pathname 'usr/lib/omarchy-mlx/venv/bin/𝜋thon' to UTF-8 (the wheel ships that launcher name); the package is created fine.

@maralcbr

maralcbr commented Oct 3, 2026

Copy link
Copy Markdown
Member

Thanks. omarchy-mlx is green with the full check(), and the M1 logs cover the install. Keeping omarchy-mac-ml here is fine: this PR waits on #745 anyway, so I'll re-run CI once #745 publishes.

One item left: pkgbuilds/omarchy-mlx/.omarchy/package.json still watches joshuaswarren/mlx-omarchy. Please point it at joshuaswarren/omarchy-mlx, the url= repo.

- watch joshuaswarren/omarchy-mlx (the url= repo) instead of mlx-omarchy
- global checkdepends gains 'lapack' 'blas' 'vulkan-icd-loader' alongside
  'openblas', the shared libraries the wheel loads at check() import
- rebuild_on llvm: omarchy-mlx-vulkan links the shared libLLVM
@joshuaswarren

Copy link
Copy Markdown
Contributor Author

All items:

  • .omarchy/package.json watch now names joshuaswarren/omarchy-mlx (the url= repo); swept every file in this PR for joshuaswarren/mlx-omarchy — no other occurrence. 8866531
  • Global checkdepends=('openblas' 'lapack' 'blas' 'vulkan-icd-loader'). 8866531
  • rebuild_on: ["llvm"] added. 8866531
  • Body updated: omarchy-ane-dkms 0.4.1, and the short-sha line now reads e7631595df (what _mesa_commit:0:10 produces).
  • python<3.15 left as-is; it holds until cp315 wheels ship.

Evidence: at head 61835c9, tests/pinned-sources.sh PASS (52 git sources pinned) and tests/published-build-plan.sh PASS on both arch plans; the PKGBUILD sourced with CARCH=aarch64 shows the full checkdepends array. CI: build (omarchy-mlx, aarch64) pass including check(); Tests/self-tests pass; build (omarchy-mac-ml, aarch64) still fails on target not found: omarchy-mlx until this PR publishes, as agreed. (61835c9 is 8866531 plus one empty commit — a GitHub API 503 had killed the vouch check on the first push before build planning.)

@maralcbr

maralcbr commented Oct 3, 2026

Copy link
Copy Markdown
Member

Thanks, all addressed and omarchy-mlx is green.

Correction to my earlier comment: keeping omarchy-mac-ml here doesn't work after all. It depends on omarchy-mlx and omarchy-mlx-vulkan, which this PR builds, and CI builds each package in its own container against published edge. So its job can't pass until this PR is published, and the required result can't go green while it's here. Please move pkgbuilds/omarchy-mac-ml/ to a follow-up PR. That one goes in after #745 and this PR publish.

Corrects GPU sin/cos wrong values for 1e4 <= |x| < 1e7 (v0.7.17-0.7.23
defect). Sources re-downloaded twice, hashes equal; wheel and vendor
match the release SHA256SUMS. Mesa pin unchanged; vendor lock delta vs
v0.7.22 is the mlx-omarchy pin only, no new runtime deps.
@joshuaswarren

Copy link
Copy Markdown
Contributor Author

Bumped to v0.7.24 (eaa697236), cut 5a82fd1: it corrects the v0.7.17–v0.7.23 GPU sin/cos defect (wrong values for 1e4 ≤ |x| < 1e7).

  • Each source downloaded twice, equal hashes: source 022489f1aa70eaaf…, wheel c18ca23ccf8602f4…, vendor fbfad09877a45de7…; wheel and vendor match the release SHA256SUMS.
  • Mesa pin unchanged at e7631595df (no driver change in the release notes). No new runtime deps: the wheel's Requires-Dist is dev-extras only, and the vendor lock's delta vs v0.7.22 is the mlx-omarchy pin itself — mlx-lm stays 0.31.3.
  • CI on 5a82fd1: build (omarchy-mlx, aarch64) pass including check(); Tests pass; omarchy-mac-ml still resolves against unpublished packages until merge/Add omarchy-ane-dkms, the Apple Neural Engine driver #745, as agreed.

@maralcbr

maralcbr commented Oct 4, 2026

Copy link
Copy Markdown
Member

v0.7.24 checksums match the release SHA256SUMS, and omarchy-mlx is green. Thanks for the sin/cos fix.

On omarchy-mac-ml, please see my correction: it also depends on omarchy-mlx/omarchy-mlx-vulkan from this PR, so its job stays red after #745 publishes too, and the required result can't pass. Please move pkgbuilds/omarchy-mac-ml/ to a follow-up PR; that's the last thing before this can merge after #745.

The meta package depends on omarchy-mlx/omarchy-mlx-vulkan, which this
PR publishes, so its CI job stays red here and the required result
check can never pass. Split out at review; see omacom#791.
@joshuaswarren

Copy link
Copy Markdown
Contributor Author

pkgbuilds/omarchy-mac-ml/ moved out per your correction: it now lives in #791 (draft), which states it waits for #745 and this PR to publish and merges after them. Removed here in 3f781d8.

CI on 3f781d8: changes and result both pass; no red required check remains (the build job is skipped — omarchy-mlx 0.7.24 keeps its passing build from 5a82fd1, job, since the recipe is unchanged by the removal). PR body updated to drop omarchy-mac-ml and point at #791.

@maralcbr maralcbr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

omarchy-mlx v0.7.24: sources match the release SHA256SUMS, full check() green on aarch64, review items addressed, omarchy-mac-ml split to #791. Merging to edge.

@maralcbr
maralcbr merged commit 3dcab43 into omacom:master Oct 4, 2026
6 checks passed
@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Publish succeeded → live

Packages: omarchy-mlx (aarch64, PR artifact)

  • edge/aarch64: omarchy-mlx-0.7.24-1-aarch64, omarchy-mlx-vulkan-0.7.24-1-aarch64

Commit 3dcab43 · run

maralcbr pushed a commit that referenced this pull request Oct 4, 2026
Pulls omarchy-mlx, omarchy-mlx-vulkan, omarchy-ane-dkms and
mil-hwx-compiler: MLX on the GPU and Core ML models on the Neural
Engine. Opt-in only; installs through the Install > AI row.

Depends on #745 (omarchy-ane-dkms) and #764 (omarchy-mlx) publishing
first: CI resolves each package against published edge.
@joshuaswarren joshuaswarren mentioned this pull request Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build-approved Maintainer approved this PR to build on the self-hosted pool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants