Skip to content

Commit

Permalink
remove wandb extra
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Oct 27, 2024
1 parent b7374a0 commit 407e39f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pokemonred_puffer/sweep.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@ def launch_sweep(
and "performance/uptime" in summary_metrics
):
obs_in = ObservationInParam(
input={k: v["value"] for k, v in json.loads(run["config"]).items()},
input={
k: v["value"]
for k, v in json.loads(run["config"]).items()
if k != "wandb_version"
},
# TODO: try out other stats like required count
output=summary_metrics["environment/stats/required_count"],
cost=summary_metrics["performance/uptime"],
Expand All @@ -188,7 +192,11 @@ def launch_agent(
):
def _fn():
agent_config: DictConfig = OmegaConf.create(
{k: v.value for k, v in OmegaConf.load(os.environ["WANDB_SWEEP_PARAM_PATH"]).items()}
{
k: v.value
for k, v in OmegaConf.load(os.environ["WANDB_SWEEP_PARAM_PATH"]).items()
if k != "wandb_version"
}
)
agent_config = update_base_config(base_config, agent_config)
train.train(config=agent_config, debug=debug, track=True)
Expand Down

0 comments on commit 407e39f

Please sign in to comment.