Understand SPLADE configuration with Hydra
mainSPLADE uses Facebook Hydra for modular configuration management. This allows you to define complex configurations using hierarchical YAML files and override any parameter or entire configuration package via the command line or environment variables.
Key Concepts
- Overriding a parameter: Use the parameter's package path. For example, if a parameter is nested under
init_dict, useinit_dict.parameter_name=value. - Overriding a package: Use the package path to swap out entire configuration modules (e.g.,
train/data=msmarco). - Config Selection: You can select a specific configuration file by setting the
SPLADE_CONFIG_NAMEenvironment variable or by providing a full path viaSPLADE_CONFIG_FULLPATH.