-
Make sure your launcher uses an appropriate
exp_prefixparameter (e.g.exp_prefix=trpo_reacher) -
Always start from
mastercd garage git checkout master git reset --hard HEAD -
Modify parameters (only) in launcher file
-
Make a commit to the
experimentsbranch and push to GitHubgit checkout -b experiments git commit -m "Experiment description" git push origin experiments # don't force-push!
-
Run experiment
-
Kill the experiment processes
garage has an unfortunate bug which leads to
run_experimentsometimes leaving zombie processes after termination. To close all therun_experimentprocesses, you can use this one-liner.ps -fu | grep run_experiment | awk '{print $2}' | xargs kill -SIGINT
-
Manually log the git commit hash to the experiment directory
export EXP_DIR_SUFFIX="my_launcher_prefix/my_experiment" # copied from run_experiment output echo "$(git rev-parse HEAD)" > data/local/$EXP_DIR_SUFFIX/git_hash
-
Copy the log directory (in
garage/data/local/<experiment_prefix>/<experiment>) to the GCS bucket:gsutil -m rsync -r garage/data/local/$EXP_DIR_SUFFIX gs://resl-iser2018/experiments/$EXP_DIR_SUFFIX
- Install Google Cloud SDK
gcloud init- Choose project
resl-iser2018 - Choose zone
us-west-1c - Test
gsutil cat gs://resl-iser2018/hello_world.txt
When testing your scripts or experimenting with gsutil, please use the devel bucket at gs://resl-iser2018-devel to avoid polluting the history of the authoritative bucket.