neuraltrain.models.base.BaseModelConfig¶
- pydantic model neuraltrain.models.base.BaseModelConfig[source][source]¶
Base class for model configurations.
Two families share this base:
Brain-model configs – the top-level models built from a build context. They subclass
BaseBrainModelConfigand implementbuild(...)with context-named parameters; the factory-facingbuild_from_context(ctx)is provided for free.Sub-component configs (e.g. transformers, mergers, MLP heads) which are composed manually inside larger models and whose
buildtakes bespoke arguments.
Both families therefore implement
build; it is kept permissive on this base so subclasses can override it with their own signatures.