Skip to content

base

base

Shared Pydantic base model and enumerations for NeMo Safe Synthesizer configs.

Classes:

Name Description
NSSBaseModel

Base model for all Safe Synthesizer configuration and result models.

LRScheduler

Learning-rate scheduler names accepted by the training pipeline.

NSSBaseModel pydantic-model

Bases: BaseModel

Base model for all Safe Synthesizer configuration and result models.

Applies pydantic_model_config (strict schema validation, attribute construction, and "validation"-only JSON schema mode) so that every subclass inherits consistent Pydantic behavior.

dict(**kwargs)

Return a dict representation via model_dump for backward compatibility.

Source code in src/nemo_safe_synthesizer/config/base.py
def dict(self, **kwargs: Any) -> dict[str, Any]:
    """Return a dict representation via ``model_dump`` for backward compatibility."""
    return self.model_dump(**kwargs)

LRScheduler

Bases: str, Enum

Learning-rate scheduler names accepted by the training pipeline.