Skip to content

feat: GF-T on-chip trainer primitive (forward+grad+update, proven on AX7203) - #1816

Closed
gHashTag wants to merge 3 commits into
masterfrom
feat/gft-train1-onchip
Closed

feat: GF-T on-chip trainer primitive (forward+grad+update, proven on AX7203)#1816
gHashTag wants to merge 3 commits into
masterfrom
feat/gft-train1-onchip

Conversation

@gHashTag

@gHashTag gHashTag commented Aug 6, 2026

Copy link
Copy Markdown
Owner

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

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>
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-08-06 23:57:49 UTC

Summary

Status Count
Total Open PRs 4
PRs with Failing Checks 0
PRs with All Checks Green 4
READY 3
FAILING 0
PENDING 0

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=4c1aaad5309a != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
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>
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-08-06 23:59:40 UTC

Summary

Status Count
Total Open PRs 4
PRs with Failing Checks 0
PRs with All Checks Green 4
READY 3
FAILING 0
PENDING 0

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=4c1aaad5309a != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
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>
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-08-07 00:02:16 UTC

Summary

Status Count
Total Open PRs 4
PRs with Failing Checks 0
PRs with All Checks Green 4
READY 3
FAILING 0
PENDING 0

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=4c1aaad5309a != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

📓 NotebookLM Notebook linked to this PR

This notebook contains session context, decisions, and artifacts for this work.

@gHashTag

gHashTag commented Aug 7, 2026

Copy link
Copy Markdown
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.

@gHashTag gHashTag closed this Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant