Skip to content

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

Merged
gHashTag merged 1 commit into
masterfrom
feat/gft-train1-onchip-v2
Aug 7, 2026
Merged

feat: GF-T on-chip trainer primitive (forward+grad+update, proven on AX7203)#1817
gHashTag merged 1 commit into
masterfrom
feat/gft-train1-onchip-v2

Conversation

@gHashTag

@gHashTag gHashTag commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Single-commit replacement for #1816 (that branch had docs commits without issue refs → L1 traceability). 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. docs/NOW.md updated. Refs #1764

gft_train1.t27: on_comb(w,x,t,eta) runs one full SGD step of a 1-weight linear
neuron 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.
The on-device training primitive: with the weight 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): streaming (x, t=1.5*x) with varying x,
the board's weight converges 0.25 -> ~1.42 toward the hidden w*=1.5. In-spec
tests 3/3 (learn/optimum/ascend), iverilog bit-exact. docs/NOW.md updated.

Refs #1764

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@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.

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-08-07 00:05:19 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).

@gHashTag
gHashTag merged commit 1c11c3b into master Aug 7, 2026
17 checks passed
@gHashTag
gHashTag deleted the feat/gft-train1-onchip-v2 branch August 7, 2026 00:06
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