Skip to content

Commit

Permalink
Increase t5x AsyncCheckpointer timeout to 600s.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 629170639
  • Loading branch information
liangyaning33 authored and t5-copybara committed Apr 29, 2024
1 parent e4e262b commit 130910a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion t5x/checkpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -2310,7 +2310,9 @@ def __init__(
)
# TODO(b/273803615) Enable OCDBT.
self._state_handler = ocp.PyTreeCheckpointHandler(use_ocdbt=False)
checkpointers = {_STATE_KEY: ocp.AsyncCheckpointer(self._state_handler)}
checkpointers = {
_STATE_KEY: ocp.AsyncCheckpointer(self._state_handler, timeout_secs=600)
}
if self._should_write_dataset_ckpt:
checkpointers[_DATASET_KEY] = ocp.Checkpointer(
DatasetCheckpointHandler(checkpoint_filename=dataset_ckpt_name)
Expand Down

0 comments on commit 130910a

Please sign in to comment.