AttributeError: Can't get attribute 'NewsSummaryDataset' on <module '__main__' (built-in)> #15350
Unanswered
gokul427
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 3 comments 6 replies
-
To debug your issue, I'd start by running a simpler script: |
Beta Was this translation helpful? Give feedback.
6 replies
-
Is there a fix now? I also encountered this issue on Spyder. The above fix didn't work either. It gave the following error: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Just removing workers ( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Getting below error when I fit the model, please help. I think due to below error, sanity validation step hangs.
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\gokul\anaconda3\envs\py38torch\lib\multiprocessing\spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "C:\Users\gokul\anaconda3\envs\py38torch\lib\multiprocessing\spawn.py", line 126, in _main
self = reduction.pickle.load(from_parent)
AttributeError: Can't get attribute 'NewsSummaryDataset' on <module 'main' (built-in)>
notebook:
https://drive.google.com/file/d/1S4CycFAd8i5uuOCvunLbZRdHUlbKu840/view?usp=sharing
data:
https://drive.google.com/file/d/11WKKEcZta26EVDCz7x-KjchxZrL7oPNC/view?usp=sharing
cuda 11.6
pytorch-lightning==1.7.7
torch==1.12.1
transformers==4.23.1
Beta Was this translation helpful? Give feedback.
All reactions