Skip to content

Commit

Permalink
remove finetuning validation
Browse files Browse the repository at this point in the history
  • Loading branch information
VipulMascarenhas committed Jun 11, 2024
1 parent 1d69c7d commit e14954e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions ads/aqua/finetuning/finetuning.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,13 @@ def create(
)

source = self.get_source(create_fine_tuning_details.ft_source_id)
if source.compartment_id != ODSC_MODEL_COMPARTMENT_OCID:
raise AquaValueError(
f"Fine tuning is only supported for Aqua service models in {ODSC_MODEL_COMPARTMENT_OCID}. "
"Use a valid Aqua service model id instead."
)

# todo: revisit validation for fine tuned models
# if source.compartment_id != ODSC_MODEL_COMPARTMENT_OCID:
# raise AquaValueError(
# f"Fine tuning is only supported for Aqua service models in {ODSC_MODEL_COMPARTMENT_OCID}. "
# "Use a valid Aqua service model id instead."
# )

target_compartment = (
create_fine_tuning_details.compartment_id or COMPARTMENT_OCID
Expand Down

0 comments on commit e14954e

Please sign in to comment.