Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

0.0.23 - compatibility - sweep-python-api hangs after first function invokation #9

Open
raubitsj opened this issue May 21, 2020 · 1 comment

Comments

@raubitsj
Copy link
Member

This issue is for mac/linux

@raubitsj
Copy link
Member Author

Reproduce:

(wandb-3610) jhr-mbp:client-ng jeff$ python
Python 3.6.10 (default, Mar 28 2020, 19:16:37) 
[GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1100.0.33.16)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import wandb
>>> 
>>> sweep_config = {
...   "name": "My Sweep",
...   "method": "grid",
...   "parameters": {
...         "parameter1": {
...             "values": [1, 2, 3]
...         }
...     }
... }
>>> 
>>> sweep_id = wandb.sweep(sweep_config)
Create sweep with ID: rklvhyjb
Sweep URL: https://app.wandb.ai/jeffr/uncategorized/sweeps/rklvhyjb
>>> import time
>>> 
>>> def train():
...     run = wandb.init()
...     print("config:", dict(run.config))
...     for epoch in range(35):
...         print("running", epoch)
...         wandb.log({"metric": run.config.param1, "epoch": epoch})
...         time.sleep(1)
... 
>>> wandb.agent(sweep_id, function=train)
2020-05-21 15:43:31,425 - wandb.wandb_agent - INFO - Running runs: []
2020-05-21 15:43:31,656 - wandb.wandb_agent - INFO - Agent received command: run
2020-05-21 15:43:31,656 - wandb.wandb_agent - INFO - Agent starting run with config:
	parameter1: 1
wandb: Agent Started Run: uqg57iw4
wandb: Tracking run with wandb version 0.0.23
wandb: Syncing run twilight-sweep-1
wandb: ⭐️ View project at https://app.wandb.ai/jeffr/uncategorized
wandb: 🚀 View run at https://app.wandb.ai/jeffr/uncategorized/runs/uqg57iw4

config: {'parameter1': 1}
running 0
2020-05-21 15:43:36,662 - wandb.wandb_agent - INFO - Running runs: ['uqg57iw4']



^C
Interrupt: 0

wandb: Ctrl-c pressed. Waiting for runs to end. Press ctrl-c again to terminate them.
Process Process-1:
wandb: Terminating and syncing runs. Press ctrl-c to kill.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant