nvalchemi.training.BaseSpec#
- pydantic model nvalchemi.training.BaseSpec[source]#
Base class for JSON-serializable, no-pickle hyperparameter specs.
Concrete spec classes are built dynamically by
create_model_spec()viapydantic.create_model(); each carries one field per__init__kwarg of its target class plus the two metadata fields defined here.Notes
revalidate_instances="never"is deliberate: specs are immutable records of past state; revalidating on access would reject any already-typed field values (e.g. rehydratedtorch.Tensorobjects) that were stored through aBeforeValidator.- field cls_path: str [Required]#
Dotted import path of the target callable.
- Constraints:
func = <function _ensure_importable at 0xeb0b2465ec00>
- field timestamp: str [Required]#
ISO-8601 UTC timestamp of spec creation.