Lightning-AI/pytorch-lightning

W&B `dir` flag doesn't work.

Open

#18,601 建立於 2023年9月20日

在 GitHub 查看
 (4 留言) (3 反應) (0 負責人)Python (3,233 fork)batch import
bughelp wantedlogger: wandbver: 2.0.x

倉庫指標

Star
 (26,687 star)
PR 合併指標
 (平均合併 9天 15小時) (30 天內合併 3 個 PR)

描述

Bug description

Initialising WandbLogger with save_dir=... properly sets the directory for the wandb folder with the logs files. dir= doesn't work and wandb is saved in the os.cwd().

What version are you seeing the problem on?

v2.0

How to reproduce the bug

from lightning.pytorch.loggers import WandbLogger
WandbLogger(project="abc-123", config=vars(args), save_dir=cluster.log_dir, mode=("disabled" if args.debug else "online")))

vs

from lightning.pytorch.loggers import WandbLogger
WandbLogger(project="abc-123", config=vars(args), dir=cluster.log_dir, mode=("disabled" if args.debug else "online")))

yield different results.



### Error messages and logs

Error messages and logs here please

N?A

### Environment

Name Version Build Channel

lightning 2.0.2 pypi_0 pypi lightning-cloud 0.5.38 pypi_0 pypi lightning-utilities 0.9.0 pypi_0 pypi pytorch-lightning 2.0.9 pypi_0 pypi wandb 0.15.10 pypi_0 pypi


Ubuntu 22.04. Python 3.10.

### More info

N/A

cc @awaelchli @morganmcg1 @borisdayma @scottire @parambharat

貢獻者指南