Repository navigation
omarchy-mlx 0.7.40: no prefill out-of-memory on the 13-inch M1, assistant stop fix - #839
Conversation
e679581 to
9798a7d
Compare
|
I found why the installed omarchy-mlx package carries a foreign libane-strict.so and worker. The fix is one line: makepkg strips binaries after package() runs. The strip rewrites the wheel's two pinned ANE files. The installed bytes then stop matching the pin.
I checked this on jwm1 today.
So check() and the verifier call in package() cannot catch this. Both run before the strip. The --nocheck flag was not the cause of the 0.7.22-1 defect. I corrected that comment in #891. The verifier call there still guards against a swapped stage. Not tested yet: installing the re-packaged package on a Mac (planned next), and a CI build of the new PKGBUILD. This text is unvoiced: the voice service is down. |
501e0d0 to
78af56f
Compare
[Medium impact] No blocking issue was established in the changes since the previous review. SummaryUpdates
Reviews (9) · Last reviewed commit: "omarchy-mlx 0.7.40: no prefill out-of-me..." · Reviewed by Greptile |
|
I rebased this onto master. The omarchy-mlx.install file was there, but the split package didn't use it. Now it does. I haven't built the package yet. |
78af56f to
fdf0c04
Compare
|
Updated to v0.7.33 (head fdf0c04, rebased on master, one commit). This PR is 21 days old and the packaged 0.7.28 still stalls on Gemma 4 E2B/E4B, which v0.7.33 fixes. Could a maintainer review and merge it? I will post the makepkg build result here as soon as I have an aarch64 host for it. A second change follows on #1055 so the automatic sync can come back. |
|
Build result for head fdf0c04, plain
Not done: this was not a clean chroot (no devtools on that machine; I used |
fdf0c04 to
37809f7
Compare
|
Build result for head 37809f7 (0.7.34), plain
Not checked: installing the built packages with pacman, and running the installed package. Could a maintainer review and merge it? It is a version bump of an existing package, rebased on current master, one commit. |
37809f7 to
6df35a2
Compare
|
Build result for head 6df35a2 (0.7.35), plain
Not done: this was not a clean chroot ( |
|
The live The This account cannot publish to the repository. The PR workflow records “Awaiting build approval” and skips the native package build. Could a maintainer enable the normal build/merge/publish path for this head so the update can reach pacman? |
|
Thanks for the review. For head The 0.7.35 local build result is available; its non-clean-chroot/ Could a maintainer apply |
|
Note 🤖 openai-codex/gpt-6.1-terra responding on behalf of joshuaswarren [Joshua's agent] The native package build waits for the maintainer-applied |
|
[Joshua's agent] Head is now |
Pins the v0.7.38 tag tarball, the cp314 aarch64 wheel and the vendor wheel tar. Packaging files are unchanged since 0.7.35, and the Mesa pin is unchanged.
53884ab to
7f90c49
Compare
|
[Joshua's agent] Rebased onto current
No newer omarchy-mlx PR supersedes this one. The native aarch64 package build still waits for the maintainer-applied |
Pin Mesa to joshuaswarren/mesa-1 ef4219af57 (honeykrisp-omarchy-v3 plus one commit: tracked CDM barrier by default on G14X gen 14). On a 14-inch M2 Max the packaged driver issued a full CDM flush per dispatch. Measured, Qwen3-4B 4bit decode, ABBA, same token ids: ctx512 16.249 to 14.749 ms/tok, ctx2048 19.351 to 17.258 ms/tok. G13G and G13X code paths are unchanged.
…at long context The KV cache was copied in full on every decode step (72 copies per token). It now grows in place (0 copies). Measured on a 14-inch M2 Max, same prompt, same tokens, A/B on separate builds: 36.6% faster at 16384 context, 27.4% at 8192, 8.2% at 512. A 13-inch M1 and a 16-inch M1 Max pass the same token check at 8192 context (34.9% and 29.3% faster). The Vulkan driver pin stays at ef4219af57 (Honeykrisp with the tracked CDM barrier). The wheel and vendor set are built from the v0.7.39 tag in a clean Arch Linux ARM container.
|
GREEN at 4e5397e This is the review of the head of this PR, which adds two commits on Reviewer model: opencode-go/glm-5.3-flash, as routed (the id cannot be verified from inside the session). Implementer model: not verified.
Reviewer verdict: ready to merge. Author note: the merge waits for the v0.7.39 release to be public and for the gate results to be posted here. |
…v alias Mesa moves from ef4219af57 to 439dc032d7 (joshuaswarren/mesa-1 w7b/hk-lineage-hoist-bf16). That lineage adds the SPIR-V image availability fix on top of the G14X tracked CDM barrier, the bf16 cooperative matrices and the G13 compute load hoist. The archive hash is fc26edaef4b6025435416b9ac9d145869b967b5ce564d7a216ab3a79bd6a6ecf. A Python 3.14 venv holds a symlink named U+1D70B plus "thon". pacman -U in a POSIX locale prints success and stops extracting at that name. On 0.7.39-1 it left 13216 of 13282 files missing and a 180 KB venv. build() now deletes any non-ASCII path from the stage and check() fails the build if one remains. With this change, pacman -U in the same locale installs all 13281 files and the venv is 783 MB.
|
Review of head The reviewer is a different model from the one that made the change (opencode-go/glm-5.3-flash, as routed). Its checks:
It read the logs and hashed the artifacts. It did not rerun |
|
GREEN at 4493cfe - opencode-go/glm-5.3-flash as routed by Main (model id unverifiable); implementer model unverified. All four source sums verified against the published v0.7.39 assets (tag tarball, cp314 aarch64 wheel, vendor wheels tar, mesa-1 439dc032 archive) - each fetched and hashed independently, matching the release SHA256SUMS; wheel name embeds the published tag commit bf49c489. |
|
v0.7.39 is public: https://github.com/joshuaswarren/omarchy-mlx/releases/tag/v0.7.39 . Here are the release gates from
The gates marked "after" ran on the installed 0.7.39-2 packages. On the 16-inch each shows the packaged g10 ran once after the install and logged no GPU timeout. Two earlier runs on the Mesa the lab ran before this release logged one each. One run does not show the timeout is gone. The release lists it under Known issues. Earlier attempts of g7d, g13 and g15 failed in the run harness (a stale path, a missing build tree, a watchdog kill). None reached the package under test, and each gate in the table passed on a later run. The lab scheduler also re-ran g14 on the 16-inch once. That run stopped on an output path that already existed (exit code 2) before it loaded the driver. The first g14 run (exit code 0) is the result. |
Wheel and vendored set rebuilt at v0.7.40 (7ec53476). The release carries the KV cache pre-size and the prefill chunk re-choice (omacom#390, omacom#392) and the assistant server stop fix (omacom#388). Honeykrisp stays at 439dc032d7. The driver file is byte-identical to the one in 0.7.39-2. The vendored set resolved annotated-doc 0.0.6 and markdown-it-py 4.3.0 at build time.
|
GREEN at 6ae1817 - opencode-go/glm-5.3-flash as routed by Main (model id unverifiable); implementer model unverified. All three source hashes verified against the live artifacts just now: the tag tarball downloaded from the v0.7.40 tag URL hashes to 8da755708fce0b9a29fa04d570d90d6acb3964f94cfbff708625aeb495016192, and the wheel and vendor tar match the published release SHA256SUMS (5e7ab221771a006e677874c23a833ad5a8b3d7f1b839e0d56ccca6a1f2c6b82c and b909e477785fce58cbd91a731569ec3fa70656dc5d34d7c907128423ad9caaff). The wheel filename equals the live release asset exactly, the tag is 7ec53476b089df5dacc6e6b03198df1244b9d6f4, and the Mesa pin 439dc032 with hash fc26edae is unchanged. The diff touches only pkgbuilds/omarchy-mlx/PKGBUILD. The body's gate results and the Not checked list are consistent with the receipts I reviewed for PRs 390, 392 and the release notes draft. |
|
[Joshua's agent] @birkskyum @emirb This PR needs one step from a maintainer: the The author is not listed in State at head
|
|
[Joshua's agent] Status at 2026-11-12 08:13Z: head 6ae1817 has passing checks. The build job is skipped until a maintainer adds the build-approved label. Can a maintainer add it? Unvoiced; checked by hand. |
|
[Joshua's agent] Request for the maintainers: please promote omarchy-mlx from edge to rc and stable. State today: edge serves omarchy-mlx 0.7.40-3 (this PR, then the two dependency rebuilds). rc and stable still serve 0.7.28-5. The automatic sync stays held (#1055), so nothing moves those channels unless someone promotes the package. What 0.7.28 lacks, with the evidence:
Until then, M5 users should use edge. I am adding that line to the omarchy-mlx README. Nothing else is needed from the maintainers for this ask; if promotion needs a PR or a label from our side, say which and I will send it. |
….7.28 (#461) [Joshua's agent] One paragraph in the README: M5 users use the edge channel until rc and stable move past 0.7.28. Why: rc and stable serve omarchy-mlx 0.7.28-5, which accepts only the stock Honeykrisp driver id (26); the M5 reports the Aurora driver id (35), accepted since v0.7.39. Edge serves 0.7.40-3, which ran on an M5 Max GPU in a lab run with the system driver and no override. No table row: the repo has no M5 receipt yet. Docs only. Promotion of the package to rc and stable is requested on omacom/omarchy-pkgs#839.
omarchy-mlx 0.7.40 replaces 0.7.39-2 in this PR. Version 0.7.39 stopped the copy of the whole KV cache window on every decoded token. Version 0.7.40 fixes a failure on the 16 GB 13-inch M1: prefill ran out of GPU memory while the KV cache grew. It also makes the assistant server stop within five seconds when it gets repeated stop signals.
The release is public: https://github.com/joshuawarren/omarchy-mlx/releases/tag/v0.7.40 . Its asset URLs return 200, so a build from this recipe works now.
Result
What changes
pkgver0.7.40,pkgrel1.mlx_omarchy-0.32.4.dev202611101859+7ec53476-cp314-cp314-linux_aarch64.whl. It is built from tagv0.7.40(7ec53476b089df5dacc6e6b03198df1244b9d6f4) in a clean Arch Linux ARM container.8da755708fce0b9a29fa04d570d90d6acb3964f94cfbff708625aeb4950161925e7ab221771a006e677874c23a833ad5a8b3d7f1b839e0d56ccca6a1f2c6b82cb909e477785fce58cbd91a731569ec3fa70656dc5d34d7c907128423ad9caafffc26edaef4b6025435416b9ac9d145869b967b5ce564d7a216ab3a79bd6a6ecf(unchanged)439dc032d70ab9ec7e3b40afd4efd920f75c56f1. The packagedlibvulkan_asahi.sois byte-identical to the one in 0.7.39-2 (sha256d75f4cbcf1008fb56516f6bf9c6a6b552a7970a7be089acdff6a19f48acbd9a7).annotated-doc0.0.5 to 0.0.6 andmarkdown-it-py4.2.0 to 4.3.0.pkgbuilds/omarchy-mlx/PKGBUILDdiffers from the previous head.Checked
makepkgbuilds both packages in the clean container. The exit code is 0 andcheck()passes.omarchy-mlx-0.7.40-1isfe09d373724600f5041e807cdbdf484ea2c59b9f13ab12c7861763bbc0f9a845.omarchy-mlx-vulkan-0.7.40-1is0fe0c57bf29ac0af2f5e6e44c4755a962ddf913c90ad8edd57bc3aa779c16959.pacman -UunderLC_ALL=Cin the container: 0 of 13281 files missing foromarchy-mlxand 0 of 11 foromarchy-mlx-vulkan. The package has no path with a non-ASCII byte. The venv importsmlx-omarchy0.32.4.dev202611101859+7ec53476.scripts/verify-release-assets.py v0.7.40printed VERIFIED for the draft and again for the published release. The tag tarball hash above matches the live download.775bf034e185c8f9) each time. Two runs took 34.8 ms per token, as in 0.7.39. Three took 49.3 to 50.7 ms. A neural-engine job from another test was running on the machine during this check, and the check does not hold the neural engine quiet. I did not test whether that caused the slow runs.mlx-omarchy-inforeportsicd_source = packaged. The installedmesa-git-shafile reads439dc032d7. The check uses a fixture prefix. It copies the installed ICD manifest and does not read the installedmesa-git-shafile.pacman -Qreads 0.7.40-1 for both,pacman -Qkfinds 0 missing files (13281 and 11), and the package hashes match the ones above. The driver library hash startsd75f4cbcf1008fb5, as in 0.7.39-2.Not checked
DRM_IOCTL_ASAHI_GEM_CREATE failed: Cannot allocate memory, thenBO creation failed). The run finished and the decode was steady. The machine had at least 40 GB of memory available throughout. I do not know the cause.generate_step. The batched route of the served API (BatchGenerator) allocates the cache as before.Closes #1563.