bug(logger): wandb fails on sweep
See original GitHub issue🐛 Bug
When using wandb sweeps for hyperparameters search, I get this error:
wandb: ERROR Attempted to change value of key “dropout_std” from 0.030424838979365657 to 0.030424838979365654
The reason is I ran:
wandb_logger.log_hyperparams(params)
Which I guess has some problem with floating-point numbers in high accuracy?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
bug(logger): wandb fails on sweep · Issue #1290 - GitHub
Bug When using wandb sweeps for hyperparameters search, I get this error: wandb: ERROR Attempted to change value of key "dropout_std" from ...
Read more >Agent bug? File not found error - W&B Help - WandB community
It looks like your sweep page is getting created from the image that you had sent and I have a few questions. Is...
Read more >wandb Changelog - PyUp.io
Fixes Sweeps on Launch CLI launch config, relpath by hu-po in https://github.com/wandb/wandb/pull/4073 * Fixes broken Launch apikey error message by ...
Read more >Weights & Biases sweep cannot import modules with pytorch ...
#!/usr/bin/env python import wandb from utils import get_config ... import Trainer from pytorch_lightning.loggers import WandbLogger from ...
Read more >attributeerror: module 'wandb' has no attribute 'run' - You.com
I have searched the YOLOv5 issues and found no similar bug report. ... When I run a sweep using wandb agent [sweepID] I...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

The problem is that it tries to log this value twice and is probably called before automatically by pytorch-lightning. The callback will automatically log every parameter which is in
pl.LightningModule.params(where you probably already have the dropout).See an example of using pytorch-lightning with wandb (including sweeps) here: https://github.com/borisdayma/lightning-kitti
I’ll be adding it to the pytorch-lightning repo later but still need to push a PR related to the
watchmethod for it to work properly.I added a fix. @AmitMY @amoudgl Feel free to test it with your sweeps and let me know if there’s still an error.