Skip to content

Commit 85d90f0

Browse files
don't skip save on aiu iter0
1 parent b6be7fb commit 85d90f0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/models/test_decoders.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -603,8 +603,6 @@ def _get_device_validation_information(
603603
if cpu_validation_info is not None:
604604
return cpu_validation_info
605605

606-
# Don't save iter 0 for AIU only
607-
skip_save = device == "aiu" and token_iter == 0
608606
# overrides for validation info that are device specific
609607
device_dependent_kwargs = {}
610608
if device == "cpu":
@@ -623,7 +621,7 @@ def _get_device_validation_information(
623621
**extra_kwargs,
624622
**device_dependent_kwargs,
625623
)
626-
if not skip_save and SAVE_VALIDATION_INFO_OUTPUTS:
624+
if SAVE_VALIDATION_INFO_OUTPUTS:
627625
dprint(f"saving {device} validation for - iter={token_iter}")
628626
validation_info.save(
629627
__get_validation_info_full_path(

0 commit comments

Comments
 (0)