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
When running multiple experiments with hierarchical configurations, there's a need to completely override specific config groups (like optimizer settings) while preserving other non-group configurations. Currently, Hydra merges all configurations, which can lead to unwanted parameter inheritance.
qsh-zh
changed the title
[Feature Request] Allow Complete Group Override While Inheriting Non-Group Configs in Hierarchical Experiments
[Feature Request] Allow complete group override while Inheriting other Configs
Nov 22, 2024
🚀 Feature Request
When running multiple experiments with hierarchical configurations, there's a need to completely override specific config groups (like optimizer settings) while preserving other non-group configurations. Currently, Hydra merges all configurations, which can lead to unwanted parameter inheritance.
Here is concrete example
If I run first experiment
# python train.py experiment=first optim: lr: 0.002 betas: - 0.9 - 0.999 eps: 0.0001 weight_decay: 0.01 extra_param: this_should_be_deleted_in_second_experiment other_important_param: this_should_be_not_deleted_in_second_experiment
If I run second experiment
# python train.py experiment=second optim: lr: 0.05 momentum: 0.9 weight_decay: 0.01 eps: 0.0001 extra_param: this_should_be_deleted_in_second_experiment other_important_param: this_should_be_not_deleted_in_second_experiment
what do I expected
other_important_param
extra_param
andweight_decay
andeps
should be removed.# python train.py experiment=second optim: lr: 0.05 momentum: 0.9 other_important_param: this_should_be_not_deleted_in_second_experiment
Motivation
See above example
Pitch
Are you willing to open a pull request? (See CONTRIBUTING)
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: