CreateModelDetails¶
- class oci.generative_ai.models.CreateModelDetails(**kwargs)¶
Bases:
objectThe data to create a custom model.
Methods:
__init__(**kwargs)Initializes a new CreateModelDetails object with values from keyword arguments.
Attributes:
[Required] Gets the base_model_id of this CreateModelDetails.
[Required] Gets the compartment_id of this CreateModelDetails.
Gets the defined_tags of this CreateModelDetails.
Gets the description of this CreateModelDetails.
Gets the display_name of this CreateModelDetails.
[Required] Gets the fine_tune_details of this CreateModelDetails.
Gets the freeform_tags of this CreateModelDetails.
Gets the vendor of this CreateModelDetails.
Gets the version of this CreateModelDetails.
- __init__(**kwargs)¶
Initializes a new CreateModelDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
display_name (str) – The value to assign to the display_name property of this CreateModelDetails.
compartment_id (str) – The value to assign to the compartment_id property of this CreateModelDetails.
vendor (str) – The value to assign to the vendor property of this CreateModelDetails.
version (str) – The value to assign to the version property of this CreateModelDetails.
description (str) – The value to assign to the description property of this CreateModelDetails.
base_model_id (str) – The value to assign to the base_model_id property of this CreateModelDetails.
fine_tune_details (oci.generative_ai.models.FineTuneDetails) – The value to assign to the fine_tune_details property of this CreateModelDetails.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateModelDetails.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateModelDetails.
- property base_model_id¶
[Required] Gets the base_model_id of this CreateModelDetails. The OCID of the base model that’s used for fine-tuning.
- Returns
The base_model_id of this CreateModelDetails.
- Return type
str
- property compartment_id¶
[Required] Gets the compartment_id of this CreateModelDetails. The compartment OCID for fine-tuned models. For pretrained models, this value is null.
- Returns
The compartment_id of this CreateModelDetails.
- Return type
str
- property defined_tags¶
Gets the defined_tags of this CreateModelDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {“Operations”: {“CostCenter”: “42”}}
- Returns
The defined_tags of this CreateModelDetails.
- Return type
dict(str, dict(str, object))
- property description¶
Gets the description of this CreateModelDetails. An optional description of the model.
- Returns
The description of this CreateModelDetails.
- Return type
str
- property display_name¶
Gets the display_name of this CreateModelDetails. A user-friendly name.
- Returns
The display_name of this CreateModelDetails.
- Return type
str
- property fine_tune_details¶
[Required] Gets the fine_tune_details of this CreateModelDetails.
- Returns
The fine_tune_details of this CreateModelDetails.
- Return type
- property freeform_tags¶
Gets the freeform_tags of this CreateModelDetails. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {“Department”: “Finance”}
- Returns
The freeform_tags of this CreateModelDetails.
- Return type
dict(str, str)
- property vendor¶
Gets the vendor of this CreateModelDetails. The provider of the model.
- Returns
The vendor of this CreateModelDetails.
- Return type
str
- property version¶
Gets the version of this CreateModelDetails. The version of the model.
- Returns
The version of this CreateModelDetails.
- Return type
str