winglian commited on
Commit
febe902
2 Parent(s): 281dc3d f4df266

Merge pull request #168 from bratao/main

Browse files

Disable Wandb if no wandb project is specified

Files changed (1) hide show
  1. src/axolotl/utils/wandb.py +2 -0
src/axolotl/utils/wandb.py CHANGED
@@ -15,3 +15,5 @@ def setup_wandb_env_vars(cfg):
15
  os.environ["WANDB_LOG_MODEL"] = cfg.wandb_log_model
16
  if cfg.wandb_run_id and len(cfg.wandb_run_id) > 0:
17
  os.environ["WANDB_RUN_ID"] = cfg.wandb_run_id
 
 
 
15
  os.environ["WANDB_LOG_MODEL"] = cfg.wandb_log_model
16
  if cfg.wandb_run_id and len(cfg.wandb_run_id) > 0:
17
  os.environ["WANDB_RUN_ID"] = cfg.wandb_run_id
18
+ else:
19
+ os.environ["WANDB_DISABLED"] = "true"