Repository navigation
Conversation
Connect CUDA and Metal pockets, native causal pullbacks and shared persistence with bounded admission and completion-safe ownership. Add recording-device, lifecycle, save and precision contracts, with explicit raw directional diagnostics and pending device qualification.
Keep the public alias, record order and existing resource-refusal test unchanged.
ashhart
force-pushed
the
lead/1803-gemma4-lw-step2
branch
from
November 5, 2026 20:31
ded08d8 to
36cf578
Compare
5 tasks done
9 of 16 tasks
Merged
9 tasks done
3 of 8 tasks
5 of 8 tasks
Owner
Author
|
Closing for now. Restacked on the rebased #2054, this experimental learner change rejects 11 hunks across 7 files (CUDA, Gemma 4, Metal, living and the Qwen4 core), which is more than a rebase. It can come back as a fresh branch on main if the learner work resumes.
|
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.
Stages the native Gemma 4 learner for CUDA and Metal behind the existing public learning refusal. Dense 12B/31B
MLX affine4/group64 checkpoints share a GeGLU pocket, bounded native trainer and the existing family/save gate.
The trainer follows capped-head loss through residual sandwich norms, scalar, GeGLU, grouped attention and Q/K/V
preparation, combining both global K/V uses. Untaught streams skip pockets and learned prefix reuse. Load/save
preserves original packed base rows and columns. Failed device completion retains the native parent.
Host recording tests cover native dispatch, the shared learner and save failure/retry/reopen. Independent binary64
checks cover local operators and the composite attention chain against the original host backward. Eight planted
source controls are caught and restored. Native CUDA/Metal entry paths compile and lean adds no findings.
This is an experimental draft. The raw BF16 whole-graph panel fails four of six cells at the unchanged 0.15 bound,
so public --slide remains refused on both backends. Local derivative success does not qualify that panel. CUDA/M5
numerical and compiler gates, real 12B/31B keep/recall/removal, exact off tokens/speed, and CUDA/Metal saved-folder
portability are still required. The recipe describes the implementation and outstanding qualification gates. The inherited experimental Qwen4
learner also remains publicly refused.
Depends on the shared dense native learner primitives and the prepared-attention host backward.
Stacked on #2054 (Qwen4 step 2): review only the last commit.