File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1515 UpdateModelProvenanceDetails ,
1616)
1717
18+ from ads .aqua import ODSC_MODEL_COMPARTMENT_OCID
1819from ads .aqua .base import AquaApp
1920from ads .aqua .data import AquaResourceIdentifier , Resource , Tags
2021from ads .aqua .exception import AquaFileExistsError , AquaValueError
@@ -192,12 +193,11 @@ def create(
192193 )
193194
194195 source = self .get_source (create_fine_tuning_details .ft_source_id )
195- # TODO: add the following validation for fine tuning aqua service model. Revisit it when all service models are available
196- # if source.compartment_id != ODSC_MODEL_COMPARTMENT_OCID:
197- # raise AquaValueError(
198- # f"Fine tuning is only supported for Aqua service models in {ODSC_MODEL_COMPARTMENT_OCID}. "
199- # "Use a valid Aqua service model id instead."
200- # )
196+ if source .compartment_id != ODSC_MODEL_COMPARTMENT_OCID :
197+ raise AquaValueError (
198+ f"Fine tuning is only supported for Aqua service models in { ODSC_MODEL_COMPARTMENT_OCID } . "
199+ "Use a valid Aqua service model id instead."
200+ )
201201
202202 target_compartment = (
203203 create_fine_tuning_details .compartment_id or COMPARTMENT_OCID
You can’t perform that action at this time.
0 commit comments