Lightning-AI / Lightning-AI/pytorch-lightning

Console output failed to be logged with offline WandbLogger

Open
#14,173 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

logger: wandb question
Dominant language
Python
Stars
31.4k
Forks
3.8k
Avg merge
6d 7h
Merged PRs (30d)
6

Description

## 🐛 Bug

### To Reproduce

https://colab.research.google.com/drive/1k-wWyw-_8P987-Ay7n-rtEZiGU2pIrev#scrollTo=zK7-Gg69kMnG
### Expected behavior

The wandb will save the console outputs in the file `wandb/latest-run/files/output.log`, but no such file when using `WandbLogger`.

### Environment

- Lightning Component (e.g. Trainer, LightningModule, LightningApp, LightningWork, LightningFlow):
- PyTorch Lightning Version (e.g., 1.5.0): 1.7.1
- Lightning App Version (e.g., 0.5.2): N/A
- PyTorch Version (e.g., 1.10): 1.12.0+cu113
- Python version (e.g., 3.9): 3.7.13
- OS (e.g., Linux): Linux
- CUDA/cuDNN version: cu113
- GPU models and configuration: N/A
- How you installed PyTorch (`conda`, `pip`, source): pip
- If compiling from source, the output of `torch.__config__.show()`: N/A
- Running environment of LightningApp (e.g. local, cloud): local
- Any other relevant information: N/A

### Additional context
Wandb related: https://github.com/wandb/wandb/issues/3978

cc @awaelchli @morganmcg1 @borisdayma @scottire @parambharat @manangoel99

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Colab reproduction and the WandbLogger behavior in offline mode, then review the related wandb issue for context. Confirm the difference between the expected wandb/latest-run/files/output.log and the current result; done means console output is captured in that file when using WandbLogger.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
observability-sre
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.