ray.tune.syncer.Syncer.sync_down_if_needed
ray.tune.syncer.Syncer.sync_down_if_needed#
- Syncer.sync_down_if_needed(remote_dir: str, local_dir: str, exclude: Optional[List] = None)[source]#
Syncs down if time since last sync down is greater than sync_period.
- Parameters
remote_dir – Remote directory to sync down from. This is an URI (
protocol://remote/path
).local_dir – Local directory to sync to.
exclude – Pattern of files to exclude, e.g.
["*/checkpoint_*]
to exclude trial checkpoints.