Skip to content

Commit

Permalink
fix single node auto eval
Browse files Browse the repository at this point in the history
  • Loading branch information
vwxyzjn committed Oct 4, 2024
1 parent 83f6e2b commit 28e20cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion open_instruct/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,10 @@ def get_beaker_experiment_info(experiment_id: str) -> Optional[dict]:

def beaker_experiment_succeeded(experiment_id: str) -> bool:
experiment = get_beaker_experiment_info(experiment_id)
num_replicas = experiment["jobs"][0]["execution"]["spec"]["replicas"]
if "replicas" in experiment["jobs"][0]["execution"]["spec"]:
num_replicas = experiment["jobs"][0]["execution"]["spec"]["replicas"]
else:
num_replicas = 1
if not experiment:
return False
pprint(experiment)
Expand Down

0 comments on commit 28e20cb

Please sign in to comment.