Skip to content

Adopt Gemma 4 dense activation and decode submission tuning - #1608

Draft
jonathan308 wants to merge 6 commits into
devfrom
codex/gemma4-native-dispatch-20261025
Draft

jonathan308 wants to merge 6 commits into
devfrom
codex/gemma4-native-dispatch-20261025

Conversation

@jonathan308

@jonathan308 jonathan308 commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Status for 0.10.12 (2026-11-10): G1 passed; SDK #364–#367 are merged; this PR now pins SDK main. Head 5e553e1804:

Status (2026-11-09, PR sweep)

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

flowchart TB
  A["Provider SDK pin: aee6ebb"] --> B["Gemma dense compiled GELU then separate multiply"]
  B --> C["CBv2 default command-buffer submission thresholds"]
  C --> D["HTTP decode proxy: about 99-100 tok/s in this screen"]
Loading

After

flowchart TB
  A["Provider SDK pin: a63b4c6"] --> B["Eligible GPU dtype: shared compiled GeGLU"]
  B --> C["Eligible Gemma bounded step: scoped 100/512 thresholds"]
  C --> D["Same sampled outputs: about 103 tok/s in this screen"]
  A --> E["Original CPU, mixed-dtype and unsupported paths retained"]
Loading

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:

  • The source-identical SDK production change passed 14 focused tests, with zero failures/skips, and 12 real endpoint capability checks with exact baseline outputs.
  • The same signed endpoint artifact passed both AB orderings and AA/BB stability with matched cached-token counts and nominal thermal snapshots. Immutable report and receipts include memory, metric and hardware limitations. No new provider binary was built solely for this gitlink/documentation commit.
  • make docs-check: 196 files pass.
  • make docs-impact-check BASE=origin/master: four changed files covered.
  • make changelog-check and make changelog-preview: pass.
  • Independent required final refactor review of this exact adoption composition: no changes warranted.

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.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@vercel

vercel Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Error Error Nov 10, 2026 9:09am UTC
d-inference-console-ui-dev Error Error Nov 10, 2026 9:09am UTC
d-inference-landing Ready Ready Preview Nov 10, 2026 9:09am UTC
darkbloom-status Ready Ready Preview Nov 10, 2026 9:09am UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 10, 2026 9:09am UTC

Request Review

jonathan308 and others added 4 commits November 8, 2026 00:08
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>
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>
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 branch had an error being deployed

2 failed (outdated) and 3 active deployments
Preview – d-inference-landing — 5e553e18 Deployed Nov 10, 2026 by vercel[bot]
Preview – eigen-homepages-darkbloom — 5e553e18 Deployed Nov 10, 2026 by vercel[bot]
Preview – darkbloom-status — 5e553e18 Deployed Nov 10, 2026 by vercel[bot]
Preview – d-inference-console-ui-dev — 51b79686 Deployed Nov 8, 2026 by vercel[bot]
Preview – d-inference — 51b79686 Deployed Nov 8, 2026 by vercel[bot]
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.

1 participant