Repository navigation
engine: pin the fork at 178224903, the exact walk is exact on a GPU hybrid (fork #57) - #4980
Merged
Merged
Conversation
…ybrid (fork #57) The walk read and restored the recurrent state right after a decode it only queued, so on Metal its snapshot carried a torn mid-graph state into the backward pass; a hybrid base (Kimi's) trained on a gradient about 0.93 to 0.94 aligned with the true one. The fork now synchronizes before the checkpoint and keeps it through llama_state_seq_get/set_data. It also moves the recurrent state's gradient into host accumulators (4B device graph at 4096: 3971.2 to 2031.8 MiB), and splits training out of llama-context.cpp into its own file and the walk into its own module. No public API or server change. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
force-pushed
the
engine/pin-178224903
branch
from
October 12, 2026 12:38
6cee197 to
50e930a
Compare
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.
Moves
core/vendor/llama.cppfrom da4915987 to 178224903, the squash merge of CambrianTech/llama.cpp#57 (tree identical to the reviewed head 33322b19d). No change toinclude/ortools/server/, so the core needs no edits.What it fixes. The exact walk read and restored the recurrent state right after a decode it had only queued. On Metal the snapshot carried a torn mid-graph state into the backward pass, so a hybrid base such as Kimi's trained on a gradient about 0.93 to 0.94 aligned with the true one. The fork now synchronizes before the checkpoint and stores it through
llama_state_seq_get/set_data.Measured (fork 33322b19d = 178224903's tree, M5 Metal)
qwen3.5-4b hybrid Q4_K_M, test-walk-exact: before the fix, exact walk vs one graph cosine 0.9255 (af1a3c933, 2026-10-11T20:55:54Z). Now exit 0, every exact row cosine 1.0000, training losses 3.252877 / 3.126584 / 2.910862 (2026-10-12T12:18:19Z).
qwen2.5-0.5b pure attention: exit 0 (12:19:15Z).
Device graph, 4B, chunk 512, recurrent gradients in host accumulators (4da182d9a, 01:01:13Z):
Measured after deploy
ggml-cuda.cu:799-800, unmeasured; the check is blocked on the CUDA toolkit there.continuum deploy-verify.Merging into the fork was approved by Joel ("let's get it up"). Review of the fork PR: BigMama's requested rebase is done and verified as a line set (PR #57 comment).
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo