Repository navigation
Adopt Gemma 4 dense activation and decode submission tuning - #1608
Draft
jonathan308 wants to merge 6 commits into
Draft
jonathan308 wants to merge 6 commits into
jonathan308 wants to merge 6 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Oct 26, 2026
The rebased SDK #364 keeps main's operation-count Gemma4DecodeCommandBuffers (mlx-swift-lm #376, adopted here by #1712) instead of its earlier scoped 100-operation/512 M-element limit, so this pin adds only the dense GeGLU product. Say so in the inference and hardware notes and the changelog fragment, and note that the endpoint screen measured both changes together. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308
force-pushed
the
codex/gemma4-native-dispatch-20261025
branch
from
November 8, 2026 08:28
d53d569 to
e468cc4
Compare
Layr-Labs/mlx-swift-lm#364 was rebased onto main 67110e7b (dev's pin), so this moves the gitlink from dev's 67110e7b to its new head. The rebased SDK change is the dense GeGLU product (plus its tests, benchmark record and DocC reference fixes); its decode command-buffer limits resolved to main's #376 policy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308
force-pushed
the
codex/gemma4-native-dispatch-20261025
branch
from
November 8, 2026 08:37
e468cc4 to
51b7968
Compare
libs/mlx-swift-lm moves from 1aace467 to 093563be, the merge commit of mlx-swift-lm #367 on main. It holds every 0.10.12 SDK PR, each merged with a merge commit: #372, #301, #395 (nullable tool arguments), #302, #364, #365, #366 and #367. libs/mlx-swift and libs/mlx are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 12, 2026
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Status (2026-11-09, PR sweep)
1aace467, which isdev's67110e7bplus the GeGLU change, four DocC comment fixes and the benchmark record.dev's own Gemma command-bufferpolicy already gives the decode limits (
d717f1a1on this branch). The text below still describes the earliera63b4c69pin and its scoped 100/512 thresholds.The plan, in the sweep report (
S-MLX.md), measures67110e7b, this pin and the whole Gemma stack (SDK stats: leaderboard earnings lack context (rolling window + early-ramp vs calculator) #367's head) inone window on the Studio, or on an M5 Ultra when one is free.
dev, which moved 292 commits with no conflict. CI is green apart from the two Vercel previews, whichfail on every
devPR. Signed and Verified.libs/mlxandlibs/mlx-swiftstay).Release facts: only the binary hashes, as in every release.
mainonce, in Enable guarded Gemma row-mapped NAX prefill by default #1614 (it already pinsstats: leaderboard earnings lack context (rolling window + early-ramp vs calculator) #367's head, which contains this). This PR and perf(provider): adopt compiled Gemma feed-forward graphs #1611 would then be superseded.
Adopt SDK draft PR #364, pinned to
a63b4c69b73f05ff3e08ed51d22bcbb60a2a1447, so eligible Gemma 4 serving reuses the shared compiled dense GeGLU product and the existing scoped CBv2 command-buffer limit API. This changes the SDK gitlink plus the inference/hardware documentation and one changelog fragment; provider implementation, model artifacts and release versions are unchanged.The qualified source-built Darkbloom endpoint screen on one M5 Max improved warm 8K C1 HTTP decode proxy from 99.2–99.6 to 103.0–103.1 tok/s: 3.45% forward / 3.90% reverse in A/B/B/A order. All measured outputs and usage matched. These are two synthetic requests per leg, not a general concurrency, prefill, clustering or non-M5 speed claim. This draft does not include the separate FFN compilation, NAX or compact-metadata experiments.
Before
After
The current backend interprets the limit API's second field as millions of distinct input elements, not MiB or a hard memory cap. Existing memory admission and width guards remain active. The SDK code preserves parameter interfaces and arithmetic; paged attention, prefix caching and SSD write policy are unchanged. Clustering integration requires merging the shared-layer change with its separate SDK projection policies and separately qualifying command-buffer integration; replacing its SDK pin alone is insufficient. That path and non-M5 performance remain unmeasured.
Validation:
make docs-check: 196 files pass.make docs-impact-check BASE=origin/master: four changed files covered.make changelog-checkandmake changelog-preview: pass.All non-skipped provider checks passed at
d49f4d1addad2d6c3e85cda07550da9c47037136, and SDK CI passed at the pinned revision. Keep this a draft for human review and broader workload qualification. This is source adoption for review, not a release, installation or replacement of the preserved clustering beta.AI usage: Codex prepared this draft and its supporting tests and measurements at the user's explicit request. No human-read attestation is implied.
Need help on this PR? Tag
@codesmith-botwith what you need.