Skip to content

fix: compare reloaded state exactly and outputs with tolerance - #174

Merged
NehalBhandari merged 2 commits into
apple:mainfrom
NehalBhandari:u/nehal_bhandari/reload-test-tolerance
Oct 30, 2026
Merged

NehalBhandari merged 2 commits into
apple:mainfrom
NehalBhandari:u/nehal_bhandari/reload-test-tolerance

Conversation

@NehalBhandari

Copy link
Copy Markdown
Contributor

Relax the forward-output checks of the state-dict reload tests added in #157 from bitwise equality to the default assert_close tolerances, and assert that the reloaded state dict matches the source exactly instead.

The state-dict reload tests from apple#157 required bitwise-equal forward outputs, which fails intermittently on 1-ulp kernel differences. Assert the reloaded state dict matches exactly instead, and compare outputs with default tolerances.
@NehalBhandari
NehalBhandari merged commit 89da01e into apple:main Oct 30, 2026
14 checks passed
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.

2 participants