Skip to main content

HuggingFaceModelInfo

Information about a HuggingFace model to store.

Attributes

AttributeTypeDescription
repostrThe HuggingFace repository ID (e.g., 'meta-llama/Llama-2-7b-hf').
artifact_name`strNone`
architecture`strNone`
taskstr = autoModel task (e.g., 'generate', 'classify', 'embed').
modalitytuple[str, ...] = ("text",)Modalities supported by the model (e.g., 'text', 'image').
serial_format`strNone`
model_type`strNone`
short_description`strNone`
shard_config`ShardConfigNone`

Constructor

Signature

def HuggingFaceModelInfo(
repo: str,
artifact_name: str | None = None,
architecture: str | None = None,
task: str = "auto",
modality: tuple[str, ...] = ("text",),
serial_format: str | None = None,
model_type: str | None = None,
short_description: str | None = None,
shard_config: ShardConfig | None = None
) - > null

Parameters

NameTypeDescription
repostrThe HuggingFace repository ID (e.g., 'meta-llama/Llama-2-7b-hf').
artifact_name`strNone` = None
architecture`strNone` = None
taskstr = "auto"Model task (e.g., 'generate', 'classify', 'embed').
modalitytuple[str, ...] = ("text",)Modalities supported by the model (e.g., 'text', 'image').
serial_format`strNone` = None
model_type`strNone` = None
short_description`strNone` = None
shard_config`ShardConfigNone` = None

Signature

def HuggingFaceModelInfo(
repo: str,
artifact_name: str | None = null,
architecture: str | None = null,
task: str = "auto",
modality: tuple[str, ...] = ("text",),
serial_format: str | None = null,
model_type: str | None = null,
short_description: str | None = null,
shard_config: ShardConfig | None = null
) - > null

Parameters

NameTypeDescription
repostrThe HuggingFace repository ID, such as 'meta-llama/Llama-2-7b-hf', used to identify the source model.
artifact_name`strNone` = null
architecture`strNone` = null
taskstr = "auto"The intended model task, such as 'generate', 'classify', or 'embed', used to determine inference behavior.
modalitytuple[str, ...] = ("text",)A collection of supported data modalities, such as 'text' or 'image'.
serial_format`strNone` = null
model_type`strNone` = null
short_description`strNone` = null
shard_config`ShardConfigNone` = null