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 15
15
UpdateModelProvenanceDetails ,
16
16
)
17
17
18
+ from ads .aqua import ODSC_MODEL_COMPARTMENT_OCID
18
19
from ads .aqua .base import AquaApp
19
20
from ads .aqua .data import AquaResourceIdentifier , Resource , Tags
20
21
from ads .aqua .exception import AquaFileExistsError , AquaValueError
@@ -192,12 +193,11 @@ def create(
192
193
)
193
194
194
195
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
+ )
201
201
202
202
target_compartment = (
203
203
create_fine_tuning_details .compartment_id or COMPARTMENT_OCID
You can’t perform that action at this time.
0 commit comments