Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions checkpoint/orbax/checkpoint/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ class MemoryLimitOptions:
Attributes:
max_transfer_concurrent_gb: The max memory limit in GB allowed for.
Required if `save_device_host_concurrent_gb` is set to `"auto"`.
fallback_host_limit_gb: The fallback physical machine size in GB to use if
the profiler fails to fetch the total memory dynamically.
surge_fn: A function that takes the current step and returns the expected
memory surge in GB.
"""

max_transfer_concurrent_gb: int | None = None
fallback_host_limit_gb: int | None = None
surge_fn: Callable[[int], float] | None = None
Loading