Skip to content

Commit 101b444

Browse files
authored
fix(wandb): no results if not succeeded (#74)
1 parent 5485234 commit 101b444

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

openai/wandb_logger.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,11 @@ def _log_fine_tune(
101101
status = fine_tune.get("status")
102102

103103
# check run completed successfully
104-
if show_individual_warnings and status != "succeeded":
105-
print(
106-
f'Fine-tune {fine_tune_id} has the status "{status}" and will not be logged'
107-
)
104+
if status != "succeeded":
105+
if show_individual_warnings:
106+
print(
107+
f'Fine-tune {fine_tune_id} has the status "{status}" and will not be logged'
108+
)
108109
return
109110

110111
# check run has not been logged already

0 commit comments

Comments
 (0)