Skip to content

feat: parametric multi-output/multi-input trainer, proven bit-exact - #1870

Merged
gHashTag merged 1 commit into
masterfrom
feat/emit-multi-output
Aug 7, 2026
Merged

feat: parametric multi-output/multi-input trainer, proven bit-exact#1870
gHashTag merged 1 commit into
masterfrom
feat/emit-multi-output

Conversation

@gHashTag

@gHashTag gHashTag commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Removes the generator's last functional restriction (was n_in=2, n_out=1). emit_verilog now emits a fully parametric interface: one x{k}i port per input, one t{o}i port per output, packed yout. Every target is driven → the uninitialized-t1 divergence the cross-check caught last cycle is now impossible.

The bit-exact gate compares every output per step across 8 topologies incl. multi-output (2,2,2)/(2,4,2)/(2,3,3) and multi-input (3,4,2): RTL == model bit-exact over 80 training steps, all outputs — the previously-diverging (2,2,2) now passes. Python self-test adds a (2,4,2) one-hot classifier that learns (held-out 56/60). Refs #1764

Removes the generator's last functional restriction (n_in=2, n_out=1). emit_verilog
now emits a fully parametric interface: one x{k}i port per input, one t{o}i port
per output, packed yout ([32*n_out-1:0], y0 in LSB word). Every target is driven,
so the uninitialized-t1 divergence the cross-check caught last cycle is impossible.

The bit-exact gate now compares EVERY output per step across 8 topologies including
multi-output (2,2,2)/(2,4,2)/(2,3,3) and multi-input (3,4,2): RTL == model bit-exact
over 80 training steps, all outputs -- the previously-diverging (2,2,2) now passes.
Python self-test adds a (2,4,2) one-hot 2-class classifier that learns (held-out
56/60, argmax over outputs), confirming the multi-output backprop is correct not
just self-consistent. Harness drives via a per-arch task (an inline sequence of many
wait(done) in one initial block hangs under iverilog).

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 13:13:28 UTC

Summary

Status Count
Total Open PRs 12
PRs with Failing Checks 0
PRs with All Checks Green 12
READY 5
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 fad9211 into master Aug 7, 2026
18 checks passed
@gHashTag
gHashTag deleted the feat/emit-multi-output branch August 7, 2026 13:17
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