Skip to content

Commit

Permalink
Make the create_directories_asynchronously option default to True
Browse files Browse the repository at this point in the history
… if jax distributed client is initialized.

PiperOrigin-RevId: 730743121
  • Loading branch information
mridul-sahu authored and Orbax Authors committed Feb 27, 2025
1 parent acec3f3 commit cfcd833
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion checkpoint/orbax/checkpoint/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ class AsyncOptions:
timeout_secs: int = 600 # 10 minutes. Same as default in `AsyncCheckpointer`.
barrier_sync_fn: Optional[multihost.BarrierSyncFn] = None
post_finalization_callback: Optional[Callable[[], None]] = None
create_directories_asynchronously: bool = False
create_directories_asynchronously: bool = (
multihost.is_jax_distributed_client_initialized()
)


@dataclasses.dataclass
Expand Down

0 comments on commit cfcd833

Please sign in to comment.