File tree Expand file tree Collapse file tree 1 file changed +11
-19
lines changed Expand file tree Collapse file tree 1 file changed +11
-19
lines changed Original file line number Diff line number Diff 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"\n Stopped 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"\n Stopped 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 (
You can’t perform that action at this time.
0 commit comments