feat: GF-T on-chip trainer primitive (forward+grad+update, proven on AX7203) - #1816
Closed
gHashTag wants to merge 3 commits into
Closed
feat: GF-T on-chip trainer primitive (forward+grad+update, proven on AX7203)#1816gHashTag wants to merge 3 commits into
gHashTag wants to merge 3 commits into
Conversation
gft_train1.t27: on_comb(w,x,t,eta) = one full SGD step of a 1-weight linear neuron computed entirely combinationally -- forward y=w*x, error e=y-t, gradient g=e*x, update w'=w-eta*g -- reusing the verified smul/sadd/neg/mag* helpers from gft_sgd_step. This is the on-device training primitive: with a weight held in a register, the whole forward+backward+update runs on-chip and the host streams only (x,t) data. Proven on a live AX7203 (uart_train1.v wrapper): streaming (x, t=1.5*x) with varying x, the board's weight converges 0.25 -> ~1.5 toward the hidden w*, computing forward/backward/update itself. iverilog + in-spec tests bit-exact. Refs #1764 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
Contributor
|
📓 NotebookLM Notebook linked to this PR
This notebook contains session context, decisions, and artifacts for this work. |
…hness) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
PR DashboardGenerated at: 2026-08-06 23:59:40 UTC
Summary
Seal Status
|
Contributor
|
📓 NotebookLM Notebook linked to this PR
This notebook contains session context, decisions, and artifacts for this work. |
…ness + L1 traceability) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
PR DashboardGenerated at: 2026-08-07 00:02:16 UTC
Summary
Seal Status
|
Contributor
|
📓 NotebookLM Notebook linked to this PR
This notebook contains session context, decisions, and artifacts for this work. |
Owner
Author
|
Superseded by a single-commit branch (feat/gft-train1-onchip-v2) — the docs commits here lacked issue references and failed the L1 traceability gate. Same content, one traceable commit. |
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.
New spec gft_train1.t27 — on-device training primitive: on_comb(w,x,t,eta) runs one full SGD step (forward y=wx, error e=y-t, gradient g=ex, update w-etag) combinationally, reusing gft_sgd_step helpers. In-spec 3/3, iverilog bit-exact. Proven on a live AX7203 (uart_train1.v): with the weight in a register the whole forward+backward+update runs on-chip; streaming (x, t=1.5x) the board converges 0.25->~1.42 toward hidden w*=1.5. Refs #1764