Skip to content

Commit

Permalink
Relax some numeric checks to accommodate Windows machine CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sogartar committed Sep 25, 2024
1 parent cfa705a commit 8a24c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sharktank/tests/models/llama/sharded_llama_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,5 @@ def testToyModelCompareToUnsharded(self):
sharded_model.cache.paged.unflatten_page_table(decode_sharded_cache_state)
).flatten(start_dim=1)
torch.testing.assert_close(
actual_decode_cache_state, expected_decode_cache_state
actual_decode_cache_state, expected_decode_cache_state, atol=1e-4, rtol=1e-4
)

0 comments on commit 8a24c5a

Please sign in to comment.