You are viewing v1.2.1 version.
A newer version
v1.23.3 is available.
Configuration
IncConfig
from_pretrained
< source >( config_name_or_path: str config_file_name: typing.Optional[str] = None **kwargs ) → config
Parameters
-
config_name_or_path (
str
) — Repository name in the Hugging Face Hub or path to a local directory containing the configuration file. -
config_file_name (
str
, optional) — Name of the configuration file. -
cache_dir (
str
, optional) — Path to a directory in which a downloaded configuration should be cached if the standard cache should not be used. -
force_download (
bool
, optional, defaults toFalse
) — Whether or not to force to (re-)download the configuration files and override the cached versions if they exist. -
resume_download (
bool
, optional, defaults toFalse
) — Whether or not to delete incompletely received file. Attempts to resume the download if such a file exists. -
revision(
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, sorevision
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.