mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:50:52 +01:00
[PR #1502] [CLOSED] f32_fuzz: judge translator-oracle mismatches against KNOWN_DEVIATIONS #1530
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1530
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1502
Author: @whoalin1
Created: 11/25/2026
Status: ❌ Closed
Base:
main← Head:f32-fuzz-omod-oracle📝 Commits (1)
6f16d21f32_fuzz: judge translator-oracle mismatches against KNOWN_DEVIATIONS📊 Changes
2 files changed (+35 additions, -2 deletions)
View changed files
📝
tests/test_f32_fuzz.py(+19 -0)📝
tools/f32_fuzz.py(+16 -2)📄 Description
Claimed in the coordination issue: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7150685465 (also posted as a
finding:earlier).What
tools/f32_fuzz.py's translator-oraclecheck()compared model words directly, so a program whose omod turns a −0 result into +0 — the measured hardware quirk indev_omod_neg_zero, active under the game's MODE — was reported as a mismatch even though the translator emits the hardware-correct +0. Repro: seed 53, program 246 (v_mul_legacy_f32_e64 mul:2, v1=0x1da20776, v3=0x819d422d): model expects0x80000000, translator emits0x00000000= hardware.check()now retries a mismatch against eachKNOWN_DEVIATIONSentry — the same alternative wordshw_verdict()accepts on the GPU path — inHW_PRIMARYmode. Only the deviation's exact words are excused; anything else is still a mismatch. GPU path untouched.Tested
('mismatch', want=[0x80000000,...])→ after('match', None).--seed 53 --programs 300: 276 match/1 mismatch → 277 match/0 mismatch; seeds 52, 54–57 unchanged vs baselines (no new false-negatives).tests/test_f32_fuzz.py: 31 tests OK, incl. 2 new pins (deviation accepted end-to-end; monkeypatched wrong word still flagged).AI-assisted (Devin).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.