Skip to content

Commit

Permalink
skip testing errors when not present
Browse files Browse the repository at this point in the history
  • Loading branch information
dakinggg committed Oct 6, 2023
1 parent b24f095 commit 10aba20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_lion8b.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def _set_state_dict_type(model: nn.Module):

assert mom_orig.shape == mom_new.shape
assert mom_orig.dtype == mom_new.dtype
if use_errors:
if use_errors and (dtype != torch.float32):
errs_orig = d_orig['errors']
errs_new = d_new['errors']
assert errs_orig.shape == errs_new.shape
Expand Down

0 comments on commit 10aba20

Please sign in to comment.