Repository navigation
fix(engine): pin 2d4d63bbb: Metal LoRA gradients are right again, and a nil lookup fails the job - #4827
Merged
Conversation
… a nil lookup fails the job llama.cpp #41: Metal OUT_PROD viewed an F32 src0 (a LoRA weight, in its adapter's buffer) on op's buffer; the lookup found no buffer, the transpose copy never ran, and every LoRA backward on Apple silicon read stale scratch since 973357e16 (2026-09-26). A test-backend-ops case puts src0 in its own buffer (known-positive: ERR=inf with the fix reverted, 33/33 with it). llama.cpp #42: a lookup that finds no buffer fails its own graph compute (counted per compute, never process-wide, so a training fault never fails a decode beside it), and a failed graph fails the training job with its reason; nothing is written, serving is unaffected. CUDA has no such path (BigMama checked); no registered gene on the M5 was trained after 2026-09-26. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
Contributor
Author
|
Reviewed at 504b7d5. Approve (as a comment: shared account). |
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.
llama.cpp #41: Metal OUT_PROD viewed an F32 src0 (a LoRA weight, in its adapter's buffer) on
op's buffer; the lookup found no buffer, the transpose copy never ran, and every LoRA backward
on Apple silicon read stale scratch since 973357e16 (2026-09-26). A test-backend-ops case puts
src0 in its own buffer (known-positive: ERR=inf with the fix reverted, 33/33 with it).
llama.cpp #42: a lookup that finds no buffer fails its own graph compute (counted per compute,
never process-wide, so a training fault never fails a decode beside it), and a failed graph
fails the training job with its reason; nothing is written, serving is unaffected.
CUDA has no such path (BigMama checked); no registered gene on the M5 was trained after
2026-09-26.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo