question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sweep+pytorch lightning hangs

See original GitHub issue

wandb --version 0.9.2 python --version 3.8

  • Weights and Biases version: 0.9.2
  • Python version: 3.8
  • Operating System: Windows

Description

Hello, when I try to run a sweep with a model built with Pytorch lightning it always hangs. It never runs even the first configuration.

What I Did

a minimal working example is in this notebook: https://github.com/AyushExel/COVID19WB/blob/master/main.ipynb
For the author it seems to work but I log on with my wandb account it just hangs:
image
Any help would be appreciated.
Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
serg06commented, Dec 4, 2020

I use regular Pytorch + wandb (not Lightning), but I was able to fix this issue recently in my code, so I’ll post the solution here: I just encapsulated all the top-level code (besides imports, functions, and class definitions) in if __name__ == '__main__':. I even had to stick the wandb.init and wandb.config stuff under there.

0reactions
ariG23498commented, Dec 4, 2020

Hey @kevinkwshin In the past few months we’ve majorly reworked the CLI and UI for Weights & Biases. We’re closing stale issues. Please comment to reopen. 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

sweep+pytorch lightning hangs · Issue #1139 · wandb/ ...
Hello, when I try to run a sweep with a model built with Pytorch lightning it always hangs. It never runs even the...
Read more >
Speed Up Model Training - PyTorch Lightning - Read the Docs
When you are limited with the resources, it becomes hard to speed up model training and reduce the training time without affecting the...
Read more >
Weights & Biases sweep cannot import modules with ...
My pytorch-lightning code works with a Weights and Biases logger. I am trying to do a parameter sweep using a W&B parameter sweep....
Read more >
Digging Into KITTI With Weights & Biases With PyTorch- ...
This is a simple demo for performing semantic segmentation on the Kitti dataset using Pytorch-Lightning and optimizing the neural network by ...
Read more >
Grid Team, Author at Grid.ai - Page 2 of 3
Founded by the creators of PyTorch Lightning, Grid is a platform designed to ... Grid allows running hyperparameter sweeps without changing a single...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found