Configs
Last updated
Last updated
Helper module for using model configs. For more information, see the corresponding .
Example: Load an AutoConfig
.
Copied
static
inner
Create a new PreTrainedTokenizer instance.
configJSON
Object
The JSON of the config.
Loads a pre-trained config from the given pretrained_model_name_or_path
.
Error
Throws an error if the config.json is not found in the `pretrained_model_name_or_path`.
pretrained_model_name_or_path
string
The path to the pre-trained config.
options
PretrainedOptions
Additional options for loading the config.
Helper class which is used to instantiate pretrained configs with the from_pretrained
function.
Loads a config from the specified path.
pretrained_model_name_or_path
string
The path to the config directory.
options
PretrainedOptions
Additional options for loading the config.
⇒ Promise.<PretrainedConfig>
: PretrainedConfig.from_pretrained
⇒ Promise.<Array>
: *
Base class for all configuration classes. For more information, see the corresponding .
Kind: static class of
⇒ Promise.<PretrainedConfig>
Kind: static method of
Returns: Promise.<PretrainedConfig>
- A new instance of the PretrainedConfig
class.
Throws:
Kind: static class of
Kind: static method of
Kind: inner method of
Returns: Promise.<Array>
- A promise that resolves with information about the loaded config.
Kind: inner typedef of