Skip to content

Commit

Permalink
update ray example to be Hydra 1.1 compatible (#1490)
Browse files Browse the repository at this point in the history
  • Loading branch information
jieru-hu authored Apr 29, 2021
1 parent b6a9c95 commit 88152f1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,26 +1,5 @@
defaults:
- override hydra/launcher: ray_aws

- override hydra/launcher: custom_ray_aws

random_seed: 0
checkpoint_path: checkpoint

hydra:
launcher:
sync_up:
# source dir is relative in this case, assuming you are running from
# <project_root>/hydra/plugins/hydra_ray_launcher/example
# absolute path is also supported.
source_dir: '.'
# we leave target_dir to be null
# as a result the files will be synced to a temp dir on remote cluster.
# the temp dir will be cleaned up after the jobs are done.
# recommend to leave target_dir to be null if you are syncing code/artifacts to remote cluster so you don't need
# configure $PYTHONPATH on remote cluster
include: ['model', '*.py']
# No need to sync up config files.
exclude: ['*']
sync_down:
include: ['*.pt', '*/']
# No need to sync down config files.
exclude: ['*']
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
defaults:
- ray_aws

sync_up:
# source dir is relative in this case, assuming you are running from
# <project_root>/hydra/plugins/hydra_ray_launcher/example
# absolute path is also supported.
source_dir: '.'
# we leave target_dir to be null
# as a result the files will be synced to a temp dir on remote cluster.
# the temp dir will be cleaned up after the jobs are done.
# recommend to leave target_dir to be null if you are syncing code/artifacts to remote cluster so you don't need
# configure $PYTHONPATH on remote cluster
include: ['model', '*.py']
# No need to sync up config files.
exclude: ['*']
sync_down:
include: ['*.pt', '*/']
# No need to sync down config files.
exclude: ['*']

0 comments on commit 88152f1

Please sign in to comment.