You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifis_main_processandargs.wandb_args: # thoughtfully we should only init wandb once, instead of multiple ranks to avoid network traffics and unwanted behaviors.
325
-
wandb_logger=WandbLogger(args)
324
+
# if is_main_process and args.wandb_args: # thoughtfully we should only init wandb once, instead of multiple ranks to avoid network traffics and unwanted behaviors.
325
+
#wandb_logger = WandbLogger()
326
326
327
327
results, samples=cli_evaluate_single(args)
328
328
results_list.append(results)
329
329
330
330
accelerator.wait_for_everyone()
331
331
ifis_main_processandargs.wandb_args:
332
-
wandb_logger.post_init(results)
333
-
wandb_logger.log_eval_result()
334
-
ifargs.wandb_log_samplesandsamplesisnotNone:
335
-
wandb_logger.log_eval_samples(samples)
336
-
337
-
wandb_logger.finish()
332
+
try:
333
+
wandb_logger.post_init(results)
334
+
wandb_logger.log_eval_result()
335
+
ifargs.wandb_log_samplesandsamplesisnotNone:
336
+
wandb_logger.log_eval_samples(samples)
337
+
exceptExceptionase:
338
+
eval_logger.info(f"Logging to Weights and Biases failed due to {e}")
0 commit comments