nemo_automodel.components.config._arg_parser
#
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.components.config._arg_parser.parse_cli_argv(default_cfg_path=None)[source]#
Parses CLI args, pulls out –config and collects other –dotted.path options.
- Parameters:
default_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])