nemo_automodel.config.cli#

Module Contents#

Functions#

parse_cli_argv

Parses CLI args, pulls out –config and collects other –dotted.path options.

parse_args_and_load_config

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])

nemo_automodel.config.cli.parse_args_and_load_config(cfg_path=None)[source]#

Loads YAML, applies overrides via ConfigNode.set_by_dotted.