Orchestrate: Config¶
Boundary types shared by the Typer CLI and the stage primitives.
ResolvedConfig is the handoff from render +
validate_config into
build / train /
evaluate; InstantiatedRun is the wired
(trainer, model, datamodule) triple produced by
build_run.
graphids.orchestrate.config¶
config ¶
Orchestrate data types.
Boundary types shared by the CLI and the stage primitives.
ResolvedConfig is the handoff from render → validate into
build / train / evaluate; InstantiatedRun is the wired
(trainer, model, datamodule) triple produced by instantiate.
InstantiatedRun
dataclass
¶
A wired (trainer, model, datamodule) triple built from a rendered config.
ResolvedConfig
dataclass
¶
ResolvedConfig(rendered: dict[str, Any], validated: ValidatedConfig, stage_name: str, run_dir: Path | None, ckpt_file: Path | None)
Rendered, validated config ready for instantiation.
Stage primitives (orchestrate/stage.py) consume this directly:
they read rendered + validated for building trainer/model,
run_dir / ckpt_file for marker + OTel export wiring, and
stage_name for log fields. run_dir is None only for
smoke invocations of the Typer CLI with no default_root_dir
set — markers and file exporters are skipped in that case.
from_rendered
classmethod
¶
Validate a pre-rendered dict and pull run_dir from jsonnet.