Commit 101b444c

Boris Dayma <boris.dayma@gmail.com>
2022-03-01 09:18:10
fix(wandb): no results if not succeeded (#74)
1 parent 5485234
Changed files (1)
openai/wandb_logger.py
@@ -101,10 +101,11 @@ class WandbLogger:
         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