-
-
Notifications
You must be signed in to change notification settings - Fork 39
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
The hyperparameters from Wandb
sweep are not being recognized by jsonargparser
#462
Comments
@bwdeng20 thank you for dropping by and thank you for the toy repo. I am not a user of wandb, nor have an account. So I am not able to reproduce your issue. From what I see in the code, there is no reason yet for me to believe that there is a bug in jsonargparse, rather than a problem in your code. The instructions in wandb are not specific to jsonargparse. And it doesn't explain how the sweeps work internally. How is it supposed to work? How are the modified parameters of the sweep given to jsonargparse? Is it via |
Thanks for the swift response. Maybe I should change the tags from How is it supposed to work?Solidify a set of experiment configurations (in this case ) into a configuration file (in this case configs/nc.yaml). At this point, running
and then define the following fields according to the wandb sweep guidelines.
We hope the hyperparameter values sampled by
How are the modified parameters of the sweep given to jsonargparse?I tried to find relevant clues, but I couldn't find any helpful documentation or source code, so I'm sorry that I'm not clear on that. |
This is kind of key. If the wandb docs are not clear, then the problem is wandb and you should contact them to understand what needs to be done. It isn't a bug in jsonargparse. Just supposing, imagine that it works by running the command appending more arguments, i.e.
In your code you could print the value of |
Closing this since it seems to be a topic for wandb. But feel free to comment further if there is need. |
馃悰 Bug report
To reproduce
You need a wandb account.
Clone my toy repo and then follow the official wandb sweep instructions like the following.
Then you can see something like
![Selection_001](https://private-user-images.githubusercontent.com/26434203/310366544-c184e4ff-863c-464f-9d01-31359ad42b8a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkzMDA4NjksIm5iZiI6MTcxOTMwMDU2OSwicGF0aCI6Ii8yNjQzNDIwMy8zMTAzNjY1NDQtYzE4NGU0ZmYtODYzYy00NjRmLTlkMDEtMzEzNTlhZDQyYjhhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI1VDA3MjkyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZmZGU1OTFiNjhhN2EyMjczYmVhMmViNGQ1YjA1NzE5MzRhYTViODNiMDUxNWQ3MDBlYzk3YjI1OGNjOThjYTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.BRvmjhIuvZtB-5cmGqcf0fHaaXI1KEeRuAmQ4uTv95Y)
This image shows the terminal output from the first sweep experiment. Note the hyperparameter values in the red rectangles. We can see that
jsonargparser
is not affected by the hyperparameter values (i.e., mu=5, sigma=2) chosen by wandb sweep . Instead, it still uses the default values (i.e., mu=0, sigma=1). This means that adjusting hyperparameters with wandb sweep is not compatible withjsonargparser
.Expected behavior
The args parsed by
jsonargparser
can be changed by wandb sweep.Environment
4.27.2
3.10
pip install jsonargparse[all]
):pip install jsonargparse[all]
Ubuntu22.04
0.16
The text was updated successfully, but these errors were encountered: