When is output_subdir created || override output_subdir and hydra.run.dir after instantiation #2819
Unanswered
JuanFMontesinos
asked this question in
Q&A
Replies: 2 comments 1 reply
-
What if you create a symlink in your mlflow folder that points to Hydra's run dir? This way you can access everything from your mlflow folder without messing with any of Hydra's internals. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @odelalleau thanks for the suggestion.
Esentially creates a main function that mimics hydra's one without touching the internals. Just injecting the path before hydra.main is called. Do you find anything where this solution can break hydra internally? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there,
I'm trying to nicely integrate hydra with MLFlow. I've started with the a mnist toy example :)
First of all I'm pretty begginer with hydra.
Hydra creates the output folder at hydra.run.dir and then copies the config at output_subdir.
Then I instantiate the mlflow experiment and it creates its own file structure which is
mlruns->experiment->run
Actually, I would like to override hydra.run.dir to point towards mlruns.experiment.run
The main clash is that cofig files are read by hydra and then the MLflow experiment is created, but I cannot know before hand the mlflow experiment path.
Is this possible without reinstantiating hydra and without breakiung the internal way of working?
My attempt has been instantiating hydra to obtain the cfg, then just clearing the instance and calling it again with the mlflow path
So a pseudo code would be
I've notice that this way the .hydra folder (output_subdir) is not created at hydra.run.dir/output_subdir (namely mlflow_exp_dir/.hydra)
So I assume this is never done in the compose function.
In summary the questions would be:
Beta Was this translation helpful? Give feedback.
All reactions