Skip to content

Commit 5ee8356

Browse files
RecML authorsrecml authors
authored andcommitted
Internal change
PiperOrigin-RevId: 944615290
1 parent fc83e03 commit 5ee8356

3 files changed

Lines changed: 847 additions & 42 deletions

File tree

recml/core/training/keras_trainer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def __init__(
122122
max_checkpoints_to_keep: int = 5,
123123
checkpoint_save_interval_epochs: int = 1,
124124
rng_seed: int = core.DEFAULT_RNG_SEED,
125-
legacy_checkpoint_format: bool = True,
125+
legacy_checkpoint_format: bool = False,
126126
):
127127
"""Initializes the instance."""
128128

@@ -166,7 +166,7 @@ def train_callbacks(self) -> list[keras.callbacks.Callback]:
166166
save_interval_epochs=self._checkpoint_save_interval_epochs,
167167
)
168168
else:
169-
checkpoint_manager = keras_utils.KerasOrbaxCheckpointManagerV2(
169+
checkpoint_manager = keras_utils.KerasOrbaxCheckpointManagerV3(
170170
checkpoint_dir=self._checkpoint_dir,
171171
max_to_keep=self._max_checkpoints_to_keep,
172172
save_interval_epochs=self._checkpoint_save_interval_epochs,

0 commit comments

Comments
 (0)