Skip to content

test: harden cross-target verification to extreme/saturation operands - #1883

Merged
gHashTag merged 1 commit into
masterfrom
test/multitarget-extreme-operands
Aug 7, 2026
Merged

test: harden cross-target verification to extreme/saturation operands#1883
gHashTag merged 1 commit into
masterfrom
test/multitarget-extreme-operands

Conversation

@gHashTag

@gHashTag gHashTag commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Motivated by the bpseq silicon debug (hypothesis: training-grown weights push operands into a saturation range where the Python model and the RTL might disagree — the cross-target proof only used moderate [-4,4] operands). Tested it: model smul/sadd vs the C emission over 1500 EXTREME operands (full offset span 0..127, both signs, saturation-adjacent) — 0 mismatches, ALL MATCH. So the model is a faithful RTL reference across the whole range; the bpseq silicon divergence is NOT an operand-range bug (confirmed timing).

Turned the negative result into a real coverage improvement: gen_pairs now draws from BOTH the moderate range AND extreme raw GF-T u32 operands (full offset span, both signs, saturation-adjacent) — overflow/underflow/carry edges the [-4,4] sweep never reached. Cross-target bit-exactness now proven on the full representable range. Refs #1764

Motivated by the bpseq silicon debug (hypothesis: training-grown weights push
operands into a saturation range where the model and RTL might disagree). Tested:
model smul/sadd vs the C emission over 1500 extreme operands (full offset span
0..127, both signs, saturation-adjacent) -- 0 mismatches. So the model is a
faithful RTL reference across the whole range; the bpseq divergence is NOT an
operand-range bug (confirmed timing). Turned the negative result into coverage:
gen_pairs now draws from both the moderate range AND extreme raw GF-T u32 operands,
so cross-target bit-exactness is proven on the full representable range.

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

PR Dashboard

Generated at: 2026-08-07 16:34:38 UTC

Summary

Status Count
Total Open PRs 13
PRs with Failing Checks 1
PRs with All Checks Green 12
READY 5
FAILING 1
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 merged commit 9ce142a into master Aug 7, 2026
18 checks passed
@gHashTag
gHashTag deleted the test/multitarget-extreme-operands branch August 7, 2026 16:40
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