ksuit.configs.static_config

Attributes

Classes

StaticConfig

Loads and provides access to static runtime settings.

Module Contents

ksuit.configs.static_config.MASTER_PORT = 'MASTER_PORT'
class ksuit.configs.static_config.StaticConfig(config=None)

Loads and provides access to static runtime settings.

Parameters:

config (ksuit.schemas.schema.StaticConfigSchema | None)

ALLOWED_KEYS: frozenset[str]
static from_uri(uri)

A helper function to construct a StaticConfig from a URI.

Parameters:

uri (str) – Input URI of the config path to load.

Returns:

  • An instance of StaticConfig.

Return type:

StaticConfig

property output_path: pathlib.Path

Base output directory for logs, checkpoints, etc.

Return type:

pathlib.Path

property global_dataset_paths: collections.abc.Mapping[str, pathlib.Path]

Mapping of dataset keys to global paths.

Return type:

collections.abc.Mapping[str, pathlib.Path]

property local_dataset_path: pathlib.Path | None

Optional local dataset staging directory.

Return type:

pathlib.Path | None

property data_source_modes: collections.abc.Mapping[str, str]

Data source mode per dataset (“global” or “local”).

Return type:

collections.abc.Mapping[str, str]

property default_cudnn_benchmark: bool

Whether to enable cuDNN benchmark mode by default.

Return type:

bool

property default_cudnn_deterministic: bool

Whether to enforce deterministic cuDNN behavior by default.

Return type:

bool

property master_port: int

Port number for distributed master node, from environment or config.

Return type:

int

log()

Log the static configuration to the logger.

Parameters:

detailed – Include dataset, cudnn, and distributed details.

Returns:

None

Return type:

None