I was trying to use Sweep for hyperparameter tuning. And I want to do grid sweep in tuning. Coincidently I happend to use the Bayes Sweep (since last time I use the bayes for tuning). Then something weird happened.
I can understand the Bayes search may choose same combination of hyperparameters, But why the same hyperparameters come into different results? And I check my code, I definitely have set the seed. Is there anything I missed?
And this is the yaml config I use:
OK, Thank you. I use the public cloud offering for hyperparameter tuning yesterday. Maybe it was not updated then. But I’m still curious that why the same parameter choices come into different result in bayes sweep
What’s important is that I can’t reproduce the best result in the pic I have shown:smiling_face_with_tear: Althrough the several training results keep consistent on my machine when I try to find out whether there were faults in my code.
Thanks for sharing your insights on Cuda’s non-deterministic behavior, I was not aware of this myself. I also wanted to follow up on your question about Bayesian sweeps and advice that we currently don’t offer a method to select using a random state and as such there will be variability in for example maximizing a particular metric.
I will add ensure that your use case is added to a feature request for this.
Please let us know if there is anything else that you would like assistance with at this time.
Hi Frida, is there any work around to prevent this in the public cloud version? I’m having agents repeat parameter combinations 5 + times after only 3-5 completed runs. This is in a search space of only 120 combinations so using bayes is currently seeming to be more pain than it’s worth.
Thank you for messaging and sorry that you’re not getting the behavior that you are anticipating. I wonder if you would be able to share the config that you are using so I can spin it up on my side?
I think it is technically possible for Bayesian sweep to arrive at repeat parameters if the best set of parameters is quickly reached, and would be super curious/grateful if you’d be able to advise if the parameters that you are seeing do reflect the most accurate models.
Wanted to check in – I see that on the original thread, this was marked as solved – I can look into this further if this is helpful but would be great if you’d be able to share the config that you are using either .yaml or python dictionary format.