Skip to content

hydra composition: Workflow discrepancies #8355

Open
@daavoo

Description

@daavoo

When using Hydra Composition for configuring DVC experiments, there are a few discrepancies with respect to the "regular" params workflow. This could cause confusion to existing users of dvc params when migrating to Hydra Composition:

  • The latest state is not preserved

Without Hydra Composition, if modifications are done via --set-param and then the experiment is persisted, the next exp run with no arguments will reuse the latest modifications applied.

With Hydra Composition, the next exp run with no arguments will still run the composition and dump to params.yaml, overriding the latest --set-param modifications.

Users would need to manually edit the files in hydra.config_dir and/or the default list values in hydra.config_name in order to reflect the latest modifications via --set-param.

  • Source of configuration needs to be tracked separately

Without Hydra Composition, tracking the params is enough. A change in params file would result in a new experiment.

With Hydra Composition, tracking only params.yaml could result in unexpected behavior, as manual modifications to files in hydra.config_dir would not be detected by DVC.

Users would need to also track hydra.config_dir.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A: experimentsRelated to dvc expdiscussionrequires active participation to reach a conclusion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions