ValueError: 35 is not a valid Signals when running Scalene memory profiling on PyTorch Lightning AI #1014
Unanswered
belfaunder
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I would like to use Scalene for memory profiling in a PyTorch Lightning AI project, but I am running into a signal-handling issue during teardown.
Behavior:
When I run:
scalene run --memory main.py, the program fails withValueError: 35 is not a valid Signalsduring teardown phase of Lightning AI.Full traceback:
Environment
Python: 3.12.3
lightning 2.6.1
scalene: 2.1.4
torch: 2.10.0
torchvision: 0.25.0
OS: Ubuntu 24.04 running under WSL2
Minimal reproduction example
The full code of main.py module for reproducing is based on example from Lightning AI (https://lightning.ai/docs/pytorch/stable/notebooks/lightning_examples/mnist-hello-world.html):
All reactions