gravitino.client.generic_model_version.GenericModelVersion¶
- class gravitino.client.generic_model_version.GenericModelVersion(model_version_dto: ModelVersionDTO)¶
Bases:
ModelVersion
- __init__(model_version_dto: ModelVersionDTO)¶
Methods
__init__
(model_version_dto)aliases
()The aliases of this model version.
audit_info
()comment
()The comment of this model version.
The properties of the model version.
uri
()The unnamed URI of the model artifact.
uris
()The name and corresponding URI of the model artifact.
version
()The version of this model object.
Attributes
The property name for the default URI name of the model version.
The reserved URI name to indicate the URI name is unknown.
- PROPERTY_DEFAULT_URI_NAME = 'default-uri-name'¶
The property name for the default URI name of the model version.
- URI_NAME_UNKNOWN = 'unknown'¶
The reserved URI name to indicate the URI name is unknown.
- aliases() List[str] ¶
The aliases of this model version. The aliases are the alternative names of the model version. The aliases are optional. The aliases are unique for a model version. If the alias is already set to one model version, it cannot be set to another model version.
- Returns:
The aliases of the model version.
- comment() str | None ¶
The comment of this model version. This comment can be different from the comment of the model to provide more detailed information about this version.
- Returns:
The comment of the model version. None is returned if no comment is set.
- properties() Dict[str, str] ¶
The properties of the model version. The properties are key-value pairs that can be used to store additional information of the model version. The properties are optional.
- Returns:
The properties of the model version. An empty dictionary is returned if no properties are set.
- uri() str ¶
The unnamed URI of the model artifact. The URI is the location of the model artifact. The URI can be a file path or a remote URI.
- Returns:
The URI of the model artifact.
- uris() Dict[str, str] ¶
The name and corresponding URI of the model artifact. The key is the name of the URI, and the value is the location of the model artifact, which can be a file path or a remote URI.
The “unknown” URI name is reserved for the compatibility with single URI.
- Returns:
The URIs of the model version, the key is the name of the URI and the value is the URI of the model artifact.
- version() int ¶
The version of this model object. The version number is an integer number starts from 0. Each time the model checkpoint / snapshot is linked to the registered, the version number will be increased by 1.
- Returns:
The version of the model object.