Open zhaohm14 opened 2 months ago
The explanation for why this happens is here: https://github.com/python/cpython/issues/110770#issuecomment-1759986100
The AdvancedProfiler in Lightning enables multiple profilers in a nested fashion, which is apparently not supported by Python but so far was not complaining, until Python 3.12. To resolve this, the AdvancedProfiler will have to be reworked somehow. So there is some work needed here.
Thanks a lot for your help!
I'd like to keep the issue open, because we need to work on this (help from community appreciated).
Bug description
When I try to use profiler='advanced' when creating a trainer, this error will be raised inside trainer.fit():
It will be ok if use profiler='simple'
What version are you seeing the problem on?
master
How to reproduce the bug
Error messages and logs
Environment
Current environment
``` #- Lightning Component (e.g. Trainer, LightningModule, LightningApp, LightningWork, LightningFlow): #- PyTorch Lightning Version (e.g., 1.5.0): #- Lightning App Version (e.g., 0.5.2): #- PyTorch Version (e.g., 2.0): #- Python version (e.g., 3.9): #- OS (e.g., Linux): #- CUDA/cuDNN version: #- GPU models and configuration: #- How you installed Lightning(`conda`, `pip`, source): #- Running environment of LightningApp (e.g. local, cloud): ```More info
No response
cc @carmocca