CreateModelDetails

class oci.generative_ai.models.CreateModelDetails(**kwargs)

Bases: object

The data to create a custom model.

Methods

__init__(**kwargs) Initializes a new CreateModelDetails object with values from keyword arguments.

Attributes

base_model_id [Required] Gets the base_model_id of this CreateModelDetails.
compartment_id [Required] Gets the compartment_id of this CreateModelDetails.
defined_tags Gets the defined_tags of this CreateModelDetails.
description Gets the description of this CreateModelDetails.
display_name Gets the display_name of this CreateModelDetails.
fine_tune_details [Required] Gets the fine_tune_details of this CreateModelDetails.
freeform_tags Gets the freeform_tags of this CreateModelDetails.
vendor Gets the vendor of this CreateModelDetails.
version 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.
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
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
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))
description

Gets the description of this CreateModelDetails. An optional description of the model.

Returns:The description of this CreateModelDetails.
Return type:str
display_name

Gets the display_name of this CreateModelDetails. A user-friendly name.

Returns:The display_name of this CreateModelDetails.
Return type:str
fine_tune_details

[Required] Gets the fine_tune_details of this CreateModelDetails.

Returns:The fine_tune_details of this CreateModelDetails.
Return type:oci.generative_ai.models.FineTuneDetails
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)
vendor

Gets the vendor of this CreateModelDetails. The provider of the model.

Returns:The vendor of this CreateModelDetails.
Return type:str
version

Gets the version of this CreateModelDetails. The version of the model.

Returns:The version of this CreateModelDetails.
Return type:str