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
[Bug] Reproducing a Hydra run from previous Hydra job configs - WITH SCHEMA #2720
Comments
@noamgot this is a know limitation. $ cat config.yaml
# config.yaml
defaults:
- config_schema
- _self_
x: 123
y: 456
hydra:
callbacks:
save_job_info:
_target_: hydra.experimental.callbacks.PickleJobInfoCallback
|
@Jasha10 No, I wasn't aware of that. thanks! |
This is not a limitation. |
@omry Maybe I should clarify myself: my goal here is to reproduce an existing run (e.g., for debugging), using the auto-generated config file (within the |
馃悰 Bug
Description
This is a particular case of the issue raised in #1805 - except in this case, my yaml config file has a defined schema.
The problem is that the saved config yaml file does not contain the schema, and when using
Omegacong.to_object
on theDictConfig
object, it converts it into a vanilla dict, instead of the desired dataclass.Checklist
To reproduce
Consider this minimal example:
yaml file - config.yaml
code - main.py
Assume that
main.py
andconfig.yaml
are located in the same directory.When running:
There's no problem, and it prints:
But when I try to reproduce this file (naively) with this command:
** Stack trace/error message **
Expected Behavior
From my point of view, I believe that the config.yaml should be saved with the original schema. If it's rather a feature than a bug - I'd love to hear what's the correct way to reproduce a hydra run in such cases.
System information
The text was updated successfully, but these errors were encountered: