From 101b444cd0f2ce11123466995ba9007f16933664 Mon Sep 17 00:00:00 2001 From: Boris Dayma Date: Mon, 28 Feb 2022 19:18:10 -0600 Subject: [PATCH] =?UTF-8?q?fix(wandb):=E2=80=AFno=20results=20if=20not=20s?= =?UTF-8?q?ucceeded=20(#74)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openai/wandb_logger.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/openai/wandb_logger.py b/openai/wandb_logger.py index 7bdacd711c..fd2df9d7b6 100644 --- a/openai/wandb_logger.py +++ b/openai/wandb_logger.py @@ -101,10 +101,11 @@ def _log_fine_tune( status = fine_tune.get("status") # check run completed successfully - if show_individual_warnings and status != "succeeded": - print( - f'Fine-tune {fine_tune_id} has the status "{status}" and will not be logged' - ) + if status != "succeeded": + if show_individual_warnings: + print( + f'Fine-tune {fine_tune_id} has the status "{status}" and will not be logged' + ) return # check run has not been logged already