Skip to content

fix(engine): pin 2d4d63bbb: Metal LoRA gradients are right again, and a nil lookup fails the job - #4827

Merged
joelteply merged 1 commit into
canaryfrom
chore/pin-metal-out-prod-fix
Oct 6, 2026
Merged

joelteply merged 1 commit into
canaryfrom
chore/pin-metal-out-prod-fix

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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

… 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
@joelteply

Copy link
Copy Markdown
Contributor Author

Reviewed at 504b7d5. Approve (as a comment: shared account). LLAMA_CPP_PIN and the submodule both move to 2d4d63bbb, the fork head with #41 and #42. I reviewed both on the fork: #41's s_view fix, plus the a_own_buffer test Fable showed failing with the fix reverted; and #42's nil lookup counted per graph, with the serving smoke at 0 nil. No other change. CI: 4 green, 1 pending.

@joelteply
joelteply merged commit b7a2885 into canary Oct 6, 2026
6 checks passed
@joelteply
joelteply deleted the chore/pin-metal-out-prod-fix branch October 6, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant