FRAME_FM package

Subpackages

Submodules

FRAME_FM.cli module

Click entrypoint.

FRAME_FM.cli.check_configs_directory()[source]

Check if the configs directory exists, and warn the user if not.

FRAME_FM.cli.check_torchx_config()[source]

Ensure .torchxconfig exists to avoid TorchX initialization errors.

FRAME_FM.cli.display_contents_of_config_file(torchx_only: bool, config_file: str) None[source]

Display the contents of a config file.

Parameters:
  • torchx_only – If True, only display the contents of the torchx config.

  • config_file – The file to search for within the config directory.

FRAME_FM.cli.edit_config_file(config_file: str, key_value_pairs: str) None[source]

Edit the config file, raising errors if the format is incorrect, or the key is missing.

FRAME_FM.cli.edit_torch_config_file(key_value_pairs: str) None[source]

Edit the key-value pairs within the torchxconfig TOML.

Parameters:

key_value_pairs – String representations of keys and their new values to be edited.

FRAME_FM.cli.get_hydra_cfg(overrides: tuple[str, ...])[source]

Safely compose Hydra config, clearing any existing global state first.

FRAME_FM.cli.get_torchx_config() dict[source]

Reads .torchxconfig manually to avoid import errors.

FRAME_FM.cli.launch_torchx_job(cfg, platform_cfg, scheduler: str, overrides: tuple[str, ...])[source]

Dispatches the command to TorchX.

FRAME_FM.cli.show_config_files(torchx_only: bool) None[source]

Output a structured list of configuration folders and their YAML contents.

Parameters:

torchx_only – If True, only locate and show the full path to the torchx config.

FRAME_FM.cli.train_run_with_local_hydra(verbose: bool, overrides: tuple[str, ...]) None[source]
FRAME_FM.cli.view_hydra_defaults() None[source]

Display the Hydra default values from the config.

Module contents