noether.core.schemas.modules.layers¶
Submodules¶
- noether.core.schemas.modules.layers.continuous_sincos_embedding
- noether.core.schemas.modules.layers.drop_path
- noether.core.schemas.modules.layers.layer_scale
- noether.core.schemas.modules.layers.linear_projection
- noether.core.schemas.modules.layers.rope_frequency
- noether.core.schemas.modules.layers.scalar_conditioner
Classes¶
Configuration for Continuous Sine-Cosine Embedding layer. |
|
Configuration for the UnquantizedDropPath layer. |
|
Configuration for Layer Scale module. |
|
Configuration for a LinearProjection layer. |
|
Configuration for RoPE frequency settings. |
Package Contents¶
- class noether.core.schemas.modules.layers.ContinuousSincosEmbeddingConfig(/, **data)¶
Bases:
pydantic.BaseModelConfiguration for Continuous Sine-Cosine Embedding layer.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)
Dimensionality of the output embedding.
- class noether.core.schemas.modules.layers.UnquantizedDropPathConfig(/, **data)¶
Bases:
pydantic.BaseModelConfiguration for the UnquantizedDropPath layer.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)
- class noether.core.schemas.modules.layers.LayerScaleConfig(/, **data)¶
Bases:
pydantic.BaseModelConfiguration for Layer Scale module.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)
Number of dimensions of the input tensor to be scaled.
- class noether.core.schemas.modules.layers.LinearProjectionConfig(/, **data)¶
Bases:
pydantic.BaseModelConfiguration for a LinearProjection layer.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)
- ndim: None | int = None¶
Number of dimensions of the input domain. Either None (Linear projection), 1D (sequence), 2D, or 3D. Defaults to None.
- optional: bool = None¶
If true and input_dim==output_dim (i.e., there is no up/down projection), then the identity mapping is used. Defaults to False.
- init_weights: noether.core.types.InitWeightsMode = None¶
Initialization method of the weights of the MLP. Options are ‘torch’ (i.e., similar to the module) or ‘truncnormal002’, or ‘zero’. Defaults to ‘torch’.
- validate_ndim()¶
Validate the ndim field to ensure it is either None, 1, 2, or 3.
- Return type:
Self
- class noether.core.schemas.modules.layers.RopeFrequencyConfig(/, **data)¶
Bases:
pydantic.BaseModelConfiguration for RoPE frequency settings.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)
Dimensionality of frequencies (in transformers this should be the head dimension).
- input_dim: int = None¶
Dimensionality of the coordinates (e.g., 2 for 2D coordinates, 3 for 3D coordinates).
- max_wavelength: int = None¶
10000.0
- Type:
Theta parameter for the transformer sine/cosine embedding. Default
- implementation: Literal['real', 'complex'] = None¶
“real” -> basic implementation using real coordinates (this is slow and only here for backward compatibility). “complex” -> fast implementation of rotation via complex multiplication. Default: “real”.