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
Looking for overriding the group parameter in config.
Motivation
Is your feature request related to a problem? Please describe.
Yes, this feature request is related to a problem I am encountering with configuration management. When I have a main config file and an experiment config file, I want to override the group parameter defined in the main file. For example:
In the main file:
model:
loss:
_target_: aparam_1: 0
In the experiment file:
model:
loss:
_target_: bparam_2: 0
Currently, it seems that the parameters from the main file are not fully overridden by the experiment file, resulting in a merged configuration that includes both param_1 and param_2. This is problematic because param_1 is not supported by _target_: b.
Pitch
Describe the solution you'd like
I would like a feature that allows the full override of a group parameter in the configuration. Specifically, when running with the experiment config file, the loss parameter should only contain param_2 and not param_1, as param_1 is not supported by _target_: b.
Describe alternatives you've considered
An alternative solution could be to add a special parameter like _override_ that explicitly indicates that the group parameter should be fully overridden. For example:
Are you willing to open a pull request? (See CONTRIBUTING)
Yes, I am willing to open a pull request to implement this feature.
Additional context
Add any other context or screenshots about the feature request here.
This feature would greatly simplify configuration management in scenarios where different experiment configurations need to fully override parameters defined in a main config file. It would help avoid conflicts and ensure that only the relevant parameters for the specified target are included.
Thank you for considering this feature request!
The text was updated successfully, but these errors were encountered:
Indeed, what your propose a good practice for above case. However, there are many cases that enable to delete inherated config group is help. For example, the config experiment/a_param1_9_with_other_config_override and config experiment/b_param2_10_with_other_config_override only diffs on model group. Let experiment/b_param2_10_with_other_config_override inherite from experiment/a_param1_9_with_other_config_override and only change model group will help reduce lots of duplicated code for other_config_override.
I have being using hydra / omegaconf for more than 3 years. #2993 has a good example. My colleagues and I want this feature~(inheritate for most of config but totally override one group) for a long time.
🚀 Feature Request
Looking for overriding the group parameter in config.
Motivation
Is your feature request related to a problem? Please describe.
Yes, this feature request is related to a problem I am encountering with configuration management. When I have a main config file and an experiment config file, I want to override the group parameter defined in the main file. For example:
In the main file:
In the experiment file:
Currently, it seems that the parameters from the main file are not fully overridden by the experiment file, resulting in a merged configuration that includes both
param_1
andparam_2
. This is problematic becauseparam_1
is not supported by_target_: b
.Pitch
Describe the solution you'd like
I would like a feature that allows the full override of a group parameter in the configuration. Specifically, when running with the experiment config file, the
loss
parameter should only containparam_2
and notparam_1
, asparam_1
is not supported by_target_: b
.Describe alternatives you've considered
An alternative solution could be to add a special parameter like
_override_
that explicitly indicates that the group parameter should be fully overridden. For example:Are you willing to open a pull request? (See CONTRIBUTING)
Yes, I am willing to open a pull request to implement this feature.
Additional context
Add any other context or screenshots about the feature request here.
This feature would greatly simplify configuration management in scenarios where different experiment configurations need to fully override parameters defined in a main config file. It would help avoid conflicts and ensure that only the relevant parameters for the specified target are included.
Thank you for considering this feature request!
The text was updated successfully, but these errors were encountered: