xnn.common.config.options#
Config options that nothing uses are ignored, with a warning.
A registered model’s from_config reads its options (ModelConfig.extra)
through model_options(), which records every key read and the default a
missing one falls back to; so do the build steps around it (pretrained
weights, LoRA, heads, dispersion, long-range).
build_model() then warns about the options
that nothing read, and the config loaders about keys they do not know: a
misspelled option, or one carried over from another code’s config (whose keys
the translation tables may not cover), is ignored, and the user is told so.
The resolved options (those given and the defaults used,
ModelOptions.resolved()) are what a saved model records, so that it
rebuilds as it was trained whatever later versions choose as defaults.
Module Attributes
|
Functions
|
The options of a model config, for a |
|
Warn that |
Classes
|
A copy of |
Exceptions
A config key or option that xnn does not use, and ignores. |