From 91672d2406686d7ad956f00dd960325749e90d8e Mon Sep 17 00:00:00 2001 From: Matteo Bettini Date: Mon, 9 Sep 2024 20:57:12 +0200 Subject: [PATCH] add examples --- examples/checkpointing/reload_experiment.sh | 2 +- examples/checkpointing/resume_experiment.sh | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 examples/checkpointing/resume_experiment.sh diff --git a/examples/checkpointing/reload_experiment.sh b/examples/checkpointing/reload_experiment.sh index b461d5e9..1052a1a8 100644 --- a/examples/checkpointing/reload_experiment.sh +++ b/examples/checkpointing/reload_experiment.sh @@ -7,4 +7,4 @@ # python benchmarl/run.py task=vmas/balance algorithm=mappo experiment.max_n_iters=3 experiment.on_policy_collected_frames_per_batch=100 experiment.checkpoint_interval=100 -python benchmarl/run.py task=vmas/balance algorithm=mappo experiment.max_n_iters=6 experiment.on_policy_collected_frames_per_batch=100 experiment.restore_file="/hydra/experiment/folder/checkpoint/checkpoint_300.pt" +python benchmarl/run.py task=vmas/balance algorithm=mappo experiment.max_n_iters=6 experiment.on_policy_collected_frames_per_batch=100 experiment.restore_file="/hydra_experiment_folder/checkpoint/checkpoint_300.pt" diff --git a/examples/checkpointing/resume_experiment.sh b/examples/checkpointing/resume_experiment.sh new file mode 100644 index 00000000..8023b297 --- /dev/null +++ b/examples/checkpointing/resume_experiment.sh @@ -0,0 +1,10 @@ +# +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the license found in the +# LICENSE file in the root directory of this source tree. +# +# + +python benchmarl/run.py task=vmas/balance algorithm=mappo experiment.max_n_iters=3 experiment.on_policy_collected_frames_per_batch=100 experiment.checkpoint_interval=100 +python benchmarl/resume.py /hydra_experiment_folder/checkpoint/checkpoint_200.pt