Skip to content

Single-Mac allocation-cap C API and core pin without JACCL - #16

Merged
Gajesh2007 merged 5 commits into
mainfrom
work/glm53-flash-release
Oct 21, 2026
Merged

Gajesh2007 merged 5 commits into
mainfrom
work/glm53-flash-release

Conversation

@jonathan308

@jonathan308 jonathan308 commented Oct 21, 2026 •

Copy link
Copy Markdown

Update 2026-10-21: merged main

The head is now fa6565d4: main merged in (#13, explicit math modes for custom Metal kernels). It pins core ad596687 (mlx#37), which contains main's core pin 76a96e29. scripts/check_forkdiff.py passes.

Update: production footprint charges restored

The head is now bd03297a. It pins Layr-Labs/mlx work/glm53-flash-release at 6ee3062c (mlx#37), which reverts the one-page minimum on Metal footprint quotations, so footprint charges match the current provider release. Only the GIT_TAG in CMakeLists.txt changed; the C API is unchanged. See mlx#37 and d-inference #1516.


Summary

The single-Mac C layer for GLM-5.3-Flash, with no cluster code:

Commit Change
f3b8ebc4 Expose process allocation cap installation and snapshots (cherry-picked from c4154af, unchanged)
2f1bcab9 Pin core Layr-Labs/mlx work/glm53-flash-release (2bba342d), and describe the cap API in fork.yaml

Until now, the single-Mac release (d-inference #1516, mlx-swift-lm #314) pinned mlx-c 46bce47e through mlx-swift. That commit lives only on the cluster stack (#14 → #15), together with the JACCL bootstrap bridge, the sealed all-sum C API and the collective startup waits. Those three stay there; this branch carries only the allocation-cap interface that mlx-swift's Memory+AllocationCap binds.

Evidence

  • scripts/check_forkdiff.py --upstream-ref upstream/main passes, with 18 changed files and all 18 described.
  • The mlx/c/memory.h, mlx/c/memory_cap.cpp and example sources are byte-identical to 46bce47e. git diff 46bce47e 2f1bcab9 -- mlx/c/memory.h mlx/c/memory_cap.cpp examples/cap-tests is empty.
  • Downstream build: d-inference #1516 (provider, -c release, Xcode 27.1 / Swift 6.4) builds and links on the full single-Mac chain (mlx 2bba342d, mlx-c 2f1bcab9, mlx-swift cf921c05, SDK 3ab6dd68). darkbloom sha256 is e863e668…. No model was loaded with this build; end-to-end single-Mac qualification is the next gate.

Merge danger

Door: two-way. This is a cherry-pick plus a pin, with no new source.

Blast radius: two new C entry points. They do nothing unless a caller installs the cap.

🤖 Generated with Claude Code

Pins Layr-Labs/mlx work/glm53-flash-release, the core that one-Mac GLM-5.3-Flash
serving needs without the two-Mac code: quantized tile bounds and distinct loader
symbols, the optional process-allocation cap, page-backed footprints and the
512-/1024-thread compiler-capacity retry. The JACCL bootstrap bridge, sealed
all-sum and collective startup waits stay on darkbloom/sealed-all-sum.

fork.yaml describes the allocation-cap interface added by the previous commit.
Pins Layr-Labs/mlx work/glm53-flash-release at 4a355746, which reverts
the one-page minimum on Metal footprint quotations. Footprint charges
for sub-page buffers return to the production values.
Pins Layr-Labs/mlx work/glm53-flash-release at 6ee3062c. Only fork.yaml
changed since 4a355746.
Brings in #13 (explicit math modes for custom Metal kernels) and pins
Layr-Labs/mlx work/glm53-flash-release at ad596687, which contains main's
core pin 76a96e29 and mlx#36.
@jonathan308
jonathan308 marked this pull request as ready for review October 21, 2026 17:16
@Gajesh2007
Gajesh2007 merged commit 5e9be4d into main Oct 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants