Skip to content

Add support for interpolation from parallel config branches #11

Description

@tonyzamyatin

In Hydra, interpolation currently only works if the reference value is defined in a higher-level node in the config hierarchy. However, interpolation fails when the config tries to reference a value from a parallel branch in the hierarchy (even though this should work in principle).

For example, the fp_length needed to initialize the input size of the MLP is currently added to the top-level config during runtime via the property system although it is already defined in the representation config. Scenarios like this occur occasionally and are annoying to deal with.

To fix this, we need to check whether Hydra really cannot do this, and possibly implement a custom config parser that resolves these values in advance. It may also be worthwhile to make a PR to Hydra itself.

This improvement would significantly enhance the usability of the ChemTorch config system.

Activity

  1. added this to the v0.1.0 milestone on Aug 1, 2025
  2. removed this from the v0.1.0 milestone on Sep 22, 2025
  3. changed the title [-]Improve Hydra interpolation to resolve values from parallel branches in config hierarchy[/-] [+]Add support for interpolation from parallel config branches[/+] on Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions