Upload web/TEST_RESULTS.md with huggingface_hub
Browse files8 unmodified lines9101112131415135 unmodified lines1511521531541551568 unmodified lines| `test_core.js` | float trainer converges, replicas bit-identical | PASS β loss 33.71 β 0.000000, replica diff 0.000e+0 || `test_verified.js` | training THROUGH the int8 units converges, replicas bit-identical | PASS β loss 300.6 β 1.41, replica diff 0.000e+0 || `test_ieee.js` | the JS epilogue mirror is IEEE-754 spec-correct, not merely agreeable | PASS β 500k+ checks, 0 disagreements; rejects the old round-once mirror on 34% of inputs || `test_gates.js` | the exact kernel gate rejects real bugs, accepts the real kernel | PASS β 5/5 injected bugs rejected, clean kernel accepted || `test_metamorphic.js` | correctness properties that need no reference implementation | PASS β 6/6 properties hold; catches stride/swap/acc= mutants || `test_corpus.js` | mutation-scores the oracles with an external bug taxonomy | PASS β properties 2/4 (2/2 loop, 0/2 math), differential 4/4, control clean || `test_optimizer.js` | DaisyAdam beats SGD through the units, deterministic replicas | PASS β 1.59 vs 1.95, replica diff 0.000e+0 |135 unmodified linesold-spec composition. Two-device live run: step 141/300 with identical loss(6.23958) on both replicas, per-step weight-hash divergence checks silent.One bug was caught during the rework, by the bit-identity check itself: thefused q+k+v sum initially ran in f64 and rounded once, where the old coderounded to f32 after each add β a last-ulp fork that would have split8 unmodified lines9101112131415135 unmodified lines1511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801818 unmodified lines| `test_core.js` | float trainer converges, replicas bit-identical | PASS β loss 33.71 β 0.000000, replica diff 0.000e+0 || `test_verified.js` | training THROUGH the int8 units converges, replicas bit-identical | PASS β loss 300.6 β 1.41, replica diff 0.000e+0 || `test_ieee.js` | the JS epilogue mirror is IEEE-754 spec-correct, not merely agreeable | PASS β 500k+ checks, 0 disagreements; rejects the old round-once mirror on 34% of inputs || `test_gates.js` | the exact kernel gate rejects real bugs, accepts the real kernel | PASS β 5/5 injected bugs rejected, clean kernel accepted, audit sees the sign of zero || `test_metamorphic.js` | correctness properties that need no reference implementation | PASS β 6/6 properties hold; catches stride/swap/acc= mutants || `test_corpus.js` | mutation-scores the oracles with an external bug taxonomy | PASS β properties 2/4 (2/2 loop, 0/2 math), differential 4/4, control clean || `test_optimizer.js` | DaisyAdam beats SGD through the units, deterministic replicas | PASS β 1.59 vs 1.95, replica diff 0.000e+0 |135 unmodified linesold-spec composition. Two-device live run: step 141/300 with identical loss(6.23958) on both replicas, per-step weight-hash divergence checks silent.## The sign of zero (RDNA2 ISA audit)Reading the RDNA2 shader ISA against our determinism assumptions confirmedthree of them on real hardware and exposed one blind spot in our own gates:- `V_DOT4_I32_I8` is an exact packed int8 dot with int32 accumulate β theDP4A path's exactness is an ISA guarantee, not a tested coincidence.- f32 add/multiply are 0.5 ULP (correctly rounded) β the epilogue mirror'sfoundation. `V_RCP_F32` is 1 ULP β division stays off the GPU, as designed.- Rounding mode and denorm flushing are **runtime MODE-register state**(`S_ROUND_MODE` / `S_DENORM_MODE`, per wave, driver-controlled) β which iswhy the exact gates re-run on every device at every init rather thantrusting a device model. (Denorm flush is additionally unreachable in theshipped math: the 1e-8 scale floor keeps every epilogue product β₯ ~1e-16 inmagnitude, far above the ~1.2e-38 subnormal threshold.)- The blind spot: RDNA2 has non-IEEE instruction variants a compiler may pickβ output modifiers and DX9-legacy multiplies that **flush β0 to +0**. Ourgates compared f32 outputs with JS `!==`, for which `-0 !== 0` is *false*:a β0-flushing kernel would pass every gate, then fork the fleet at the syncguard, which hashes raw bits. All gate and audit comparisons now compare**bit patterns** (`bitDiff`), i.e. exactly what the replica hash sees.`test_gates.js` proves the fix non-vacuously: a `-0` planted where the unitsproduce `+0` is invisible to `!==` (sanity-checked in the test) and flaggedby the repaired `auditTile`.One bug was caught during the rework, by the bit-identity check itself: thefused q+k+v sum initially ran in f64 and rounded once, where the old coderounded to f32 after each add β a last-ulp fork that would have split
web/TEST_RESULTS.md+26-1