Skip to content

Commit 917240d

Browse files
author
The kauldron Authors
committed
Internal
PiperOrigin-RevId: 950854003
1 parent c71d355 commit 917240d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

kauldron/checkpoints/checkpointer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ class Checkpointer(BaseCheckpointer):
230230
never_save_step_zero: bool = False
231231
lightweight_initialize: bool = False
232232
cleanup_orphaned_snapshots: bool = False
233+
enable_async_checkpointing: bool = True
233234
fast: bool = True
234235
create: bool = True
235236

@@ -243,6 +244,7 @@ def _best_fn(metrics):
243244
mgr_options = ocp.CheckpointManagerOptions(
244245
save_interval_steps=self.save_interval_steps,
245246
lightweight_initialize=self.lightweight_initialize,
247+
enable_async_checkpointing=self.enable_async_checkpointing,
246248
max_to_keep=(
247249
self.max_to_keep if self.preservation_policy is None else None
248250
),

0 commit comments

Comments
 (0)