( config_name_or_path: str config_file_name: typing.Optional[str] = None **kwargs ) → config
Parameters
str) —
Repository name in the Hugging Face Hub or path to a local directory containing the configuration file.
str, optional) —
Name of the configuration file.
str, optional) —
Path to a directory in which a downloaded configuration should be cached if the standard cache should
not be used.
bool, optional, defaults to False) —
Whether or not to force to (re-)download the configuration files and override the cached versions if
they exist.
bool, optional, defaults to False) —
Whether or not to delete incompletely received file. Attempts to resume the download if such a file
exists.
str, optional) —
The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a
git-based system for storing models and other artifacts on huggingface.co, so revision can be any
identifier allowed by git.
Returns
config
IncConfig object.
Instantiate an IncConfig object from a configuration file which can either be hosted on huggingface.co or from a local directory path.