Skip to content

Commit

Permalink
Merge pull request #168 from bratao/main
Browse files Browse the repository at this point in the history
Disable Wandb if no wandb project is specified
  • Loading branch information
winglian authored Jun 9, 2023
2 parents 281dc3d + f4df266 commit febe902
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/axolotl/utils/wandb.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ def setup_wandb_env_vars(cfg):
os.environ["WANDB_LOG_MODEL"] = cfg.wandb_log_model
if cfg.wandb_run_id and len(cfg.wandb_run_id) > 0:
os.environ["WANDB_RUN_ID"] = cfg.wandb_run_id
else:
os.environ["WANDB_DISABLED"] = "true"

0 comments on commit febe902

Please sign in to comment.