Skip to content

Commit

Permalink
allow wandb to upload ckpts
Browse files Browse the repository at this point in the history
  • Loading branch information
KuoHaoZeng committed Jul 5, 2024
1 parent bf93d8d commit 04c5b80
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions allenact/algorithms/onpolicy_sync/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1109,9 +1109,16 @@ def update_keys_metric(
storage_uuid_to_total_experiences_key[storage_uuid]
)

assert all_equal(
checkpoint_file_name
), f"All {mode} logging packages must have the same checkpoint_file_name."
if any(checkpoint_file_name):
ckpt_to_store = None
for ckpt in checkpoint_file_name:
if ckpt is not None:
ckpt_to_store = ckpt
assert ckpt_to_store is not None
checkpoint_file_name = [ckpt_to_store]
# assert all_equal(
# checkpoint_file_name
# ), f"All {mode} logging packages must have the same checkpoint_file_name."

message = [
f"{mode.upper()}: {training_steps} rollout steps ({pkgs[0].storage_uuid_to_total_experiences})"
Expand Down

0 comments on commit 04c5b80

Please sign in to comment.