-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revisit sweep feature #41
Comments
I'm also interested in this. Can you elaborate what you mean by "revisit"? Is there prior work or an overview what would need to get done? |
It would entail checking if |
There still seems to be problems with segfaults, although occasionally I am able to make it work (but not with running any complex code). My basic setup is: using Wandb, Wandb.PythonCall, Logging
cfg = @pyeval `
{
"name": "sweepdemo",
"method": "grid",
"metric": {"goal": "minimize", "name": "validation_loss"},
"parameters": {
"batch_size": {"values": [16, 32, 64]},
"epochs": {"values": [5, 10, 15]},
},
}
`
function foo()
# do nothing for now
end
sweep_id = Wandb.wandb.sweep(cfg, project="Wandb.jl")
Wandb.wandb.agent(sweep_id, foo) This worked once for me (but For now I will stick to the example in https://avik-pal.github.io/Wandb.jl/v0.5.6/examples/hparams. |
In general though, I think something like this could work: function foo()
run = Wandb.wandb.run
lg = WandbLogger(run, 1, 0, Info)
global_logger(lg)
@info "metrics" validation_loss=1
close(lg)
end |
It would be worth filing an issue with PythonCall for any remaining segfaults |
Yeah. To shine a bit more light, it seems that calling So internally python is spawning a new process, which is then again calling the Julia function, where we try to access properties of the process such as logging through the |
It may be worth re-evaluating the sweep feature. My understanding is that it was previously dropped due to segfaults but those seem likely to be fixed with #40
The text was updated successfully, but these errors were encountered: