You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I tried to run jerex_train.py in a Kaggle environment using the default configurations (except distribution.gpus=[0] distribution.prepare_data_per_node=true, the latter due to a conflict error with DataModule configuration), and got the following error:
Errorexecutingjobwithoverrides: ['distribution.gpus=[0]', 'distribution.prepare_data_per_node=true']
Traceback (mostrecentcalllast):
File"jerex_train.py", line20, intrainmodel.train(cfg)
File"/kaggle/working/jerex/model.py", line341, intraintrainer.fit(model, datamodule=data_module)
File"/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line769, infitself._fit_impl, model, train_dataloaders, val_dataloaders, datamodule, ckpt_pathFile"/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line721, in_call_and_handle_interruptreturntrainer_fn(*args, **kwargs)
File"/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line809, in_fit_implresults=self._run(model, ckpt_path=self.ckpt_path)
File"/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line1215, in_runself.strategy.setup(self)
File"/opt/conda/lib/python3.7/site-packages/pytorch_lightning/strategies/single_device.py", line72, insetupsuper().setup(trainer)
File"/opt/conda/lib/python3.7/site-packages/pytorch_lightning/strategies/strategy.py", line139, insetupself.setup_optimizers(trainer)
File"/opt/conda/lib/python3.7/site-packages/pytorch_lightning/strategies/strategy.py", line129, insetup_optimizersself.lightning_moduleFile"/opt/conda/lib/python3.7/site-packages/pytorch_lightning/core/optimizer.py", line180, in_init_optimizers_and_lr_schedulersoptim_conf=model.trainer._call_lightning_module_hook("configure_optimizers", pl_module=model)
File"/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line1593, in_call_lightning_module_hookoutput=fn(*args, **kwargs)
File"/kaggle/working/jerex/model.py", line194, inconfigure_optimizersdataloader=self.train_dataloader()
File"/opt/conda/lib/python3.7/site-packages/pytorch_lightning/core/hooks.py", line494, intrain_dataloaderraiseMisconfigurationException("`train_dataloader` must be implemented to be used with the Lightning Trainer")
pytorch_lightning.utilities.exceptions.MisconfigurationException: `train_dataloader`mustbeimplementedtobeusedwiththeLightningTrainerSettheenvironmentvariableHYDRA_FULL_ERROR=1foracompletestacktrace.
The text was updated successfully, but these errors were encountered:
Hi,
I tried to run jerex_train.py in a Kaggle environment using the default configurations (except distribution.gpus=[0] distribution.prepare_data_per_node=true, the latter due to a conflict error with DataModule configuration), and got the following error:
The text was updated successfully, but these errors were encountered: