Merge pull request #168 from bratao/main
Browse filesDisable Wandb if no wandb project is specified
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"
|