You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adding support grid search like hydra for making it easier for user to run experiments #24
currently we are using the omegaconf, for use case like training a single model by manually editing the parameter values before each run is fine.
But we want to do some serious experimenting , we literally need to write a separate script for it. Omega does not support it natively, but hydra does.
we can replace omegaconf with hydra if we want without changing much how current code works, but we do need to add the hydra decorator in our main function.
@aaishwarymishra can you provide a simple small runnable code + config to see in details how hydra works. You should also discuss pros/cons of omegaconf by hydra replacement
so before we were using argpase and manually parsing the yaml but with the hydra decorator it does it automatically.
pros:
multi run for example we can set parameters both in cli and yaml python main.py -m optimizer.lr=1e-3,1e-4 dataset.dataloader.batch_size=32,64 it's the main purpose of using hydra, for trainite as its hard to do ourself.
Optuna integration
cons:
@hydra.main
the multi run values will be validated at runtime one combination at time from pydantic not all together.
Hydra also changes the working directory to output dir, so relative paths will break if used, we have explicitly add parameter in yaml or cli to disable it, or refactor code. I think we can disable it by default during code gen.
Hi! I noticed this discussion — is this still open for someone to help with, @aaishwarymishra? I'd like to contribute if so. I could start by putting together the runnable example @vfdev-5 asked for, based on what's already been discussed here.
We are not sure how this could be implemented but you can give it a try :)
we dont want to use hydara yet as it could be hard for people to learn. But the idea is same to let users use the grid search for experimentation.
Activity
aaishwarymishra commentedon May 26, 2026
@vfdev-5
vfdev-5 commentedon May 27, 2026
@aaishwarymishra can you provide a simple small runnable code + config to see in details how hydra works. You should also discuss pros/cons of omegaconf by hydra replacement
aaishwarymishra commentedon May 27, 2026
so before we were using argpase and manually parsing the yaml but with the hydra decorator it does it automatically.
pros:
python main.py -m optimizer.lr=1e-3,1e-4 dataset.dataloader.batch_size=32,64it's the main purpose of using hydra, for trainite as its hard to do ourself.cons:
@vfdev-5
Arun-sunny23 commentedon Sep 13, 2026
Hi! I noticed this discussion — is this still open for someone to help with, @aaishwarymishra? I'd like to contribute if so. I could start by putting together the runnable example @vfdev-5 asked for, based on what's already been discussed here.
aaishwarymishra commentedon Sep 13, 2026
We are not sure how this could be implemented but you can give it a try :)
we dont want to use hydara yet as it could be hard for people to learn. But the idea is same to let users use the grid search for experimentation.
Arun-sunny23 commentedon Sep 13, 2026
Got it, thanks! I'll start working on a simple grid-search implementation without Hydra.
tamrind69 commentedon Nov 19, 2026
implemented in #205
can be closed
@aaishwarymishra