Skip to content

Commit 3a6e5c1

Browse files
VipulMascarenhasmayoor
authored andcommitted
Add validation for watch logs
1 parent d668a14 commit 3a6e5c1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ads/aqua/finetuning/finetuning.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,15 @@ def create(
150150
f"Logging is required for fine tuning if replica is larger than {DEFAULT_FT_REPLICA}."
151151
)
152152

153+
if create_fine_tuning_details.watch_logs and not (
154+
create_fine_tuning_details.log_id
155+
and create_fine_tuning_details.log_group_id
156+
):
157+
raise AquaValueError(
158+
"Logging is required for fine tuning if watch_logs is set to True. "
159+
"Please provide log_id and log_group_id with the request parameters."
160+
)
161+
153162
ft_parameters = self._get_finetuning_params(
154163
create_fine_tuning_details.ft_parameters
155164
)

0 commit comments

Comments
 (0)