Skip to content

Commit e57cd81

Browse files
VipulMascarenhasmayoor
authored andcommitted
Remove redundant check
1 parent 58c38d9 commit e57cd81

File tree

1 file changed

+11
-19
lines changed

1 file changed

+11
-19
lines changed

ads/aqua/finetuning/finetuning.py

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -427,25 +427,17 @@ def create(
427427
)
428428

429429
if create_fine_tuning_details.watch_logs:
430-
if (
431-
create_fine_tuning_details.log_id
432-
and create_fine_tuning_details.log_group_id
433-
):
434-
logger.info(
435-
f"Watching fine-tuning job run logs for {ft_job_run.id}. Press Ctrl+C stop watching logs.\n"
436-
)
437-
try:
438-
ft_job_run.watch()
439-
except KeyboardInterrupt:
440-
logger.info(f"\nStopped watching logs for {ft_job_run.id}.\n")
441-
time.sleep(2)
442-
except Exception as ex:
443-
logger.debug(
444-
f"Something unexpected occurred while watching logs.\n{str(ex)}"
445-
)
446-
else:
447-
logger.info(
448-
"Logging details are not provided, set `log_id` and `log_group_id` to watch logs."
430+
logger.info(
431+
f"Watching fine-tuning job run logs for {ft_job_run.id}. Press Ctrl+C stop watching logs.\n"
432+
)
433+
try:
434+
ft_job_run.watch()
435+
except KeyboardInterrupt:
436+
logger.info(f"\nStopped watching logs for {ft_job_run.id}.\n")
437+
time.sleep(1)
438+
except Exception as ex:
439+
logger.debug(
440+
f"Something unexpected occurred while watching logs.\n{str(ex)}"
449441
)
450442

451443
return AquaFineTuningSummary(

0 commit comments

Comments
 (0)