Optimum documentation

Configuration

You are viewing v1.2.1 version. A newer version v1.19.0 is available.
Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Configuration

IncConfig

class optimum.intel.IncConfig

< >

( config_path: str )

from_pretrained

< >

( 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 to False) — Whether or not to force to (re-)download the configuration files and override the cached versions if they exist.
  • resume_download (bool, optional, defaults to False) — 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, 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.