|
Mila 0.13.48
Deep Neural Network Library
|
Base configuration for all deployable Mila models. More...
Classes | |
| class | Mila::Dnn::ModelConfig |
| Abstract base configuration for all deployable Mila models. More... | |
Namespaces | |
| namespace | Mila |
| Mila main API namespace. | |
| namespace | Mila::Dnn |
Base configuration for all deployable Mila models.
ModelConfig carries model-wide deployment concerns that are common to all models and independent of network architecture. It is intentionally decoupled from ComponentConfig, which is purely structural (dimensions, features, flags).
Deployment concerns owned here:
Construction is via fluent setters on the concrete subclass. context_length is required and has no default — subclasses must enforce this.
ModelConfig is the public API surface for deployment configuration. BuildContext is the internal carrier through the component tree. fromPretrained() projects ModelConfig into BuildContext once — they are never the same object.