nemo_automodel.config.cli
#
Module Contents#
Functions#
Parses CLI args, pulls out –config and collects other –dotted.path options. |
|
Loads YAML, applies overrides via ConfigNode.set_by_dotted. |
API#
- nemo_automodel.config.cli.parse_cli_argv(cfg_path=None)[source]#
Parses CLI args, pulls out –config and collects other –dotted.path options.
- Parameters:
cfg_path (str, optional) – Default config (yaml) path. Defaults to None.
- Raises:
ValueError – if there’s no –config and cfg_path = None
ValueError – if there’s –config but not yaml file passed
- Returns:
the config path along with the config overrides.
- Return type:
(str, list[str])