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
Describe the bug
After initial standalone install with WLS2 Ubuntu 22.04.2 LTS running on Windows 11 and pytorch-lightning 2.0.0, I got below mentioned error. After downgrading to 1.7.2 the error disappeared.
To Reproduce
Steps to reproduce the behavior:
Start WSL2
conda activate graphnet
cd graphnet
cd examples
cd 04_training
python 01_train_model.py
Expected behavior
TypeError: `devices` selected with `CPUAccelerator` should be an int > 0.
Full traceback
Please include the full error message to allow for debugging
Traceback (most recent call last):
File "01_train_model.py", line 171, in <module>
main(
File "01_train_model.py", line 97, in main
model.fit(
File "/home/jonathan/graphnet/src/graphnet/models/model.py", line 93, in fit
self._construct_trainers(
File "/home/jonathan/graphnet/src/graphnet/models/model.py", line 50, in _construct_trainers
self._trainer = Trainer(
File "/home/jonathan/anaconda3/envs/graphnet/lib/python3.8/site-packages/pytorch_lightning/utilities/argparse.py", line 69, in insert_env_defaults
return fn(self, **kwargs)
File "/home/jonathan/anaconda3/envs/graphnet/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 393, in __init__
self._accelerator_connector = _AcceleratorConnector(
File "/home/jonathan/anaconda3/envs/graphnet/lib/python3.8/site-packages/pytorch_lightning/trainer/connectors/accelerator_connector.py", line 157, in __init__
self._set_parallel_devices_and_init_accelerator()
File "/home/jonathan/anaconda3/envs/graphnet/lib/python3.8/site-packages/pytorch_lightning/trainer/connectors/accelerator_connector.py", line 391, in _set_parallel_devices_and_init_accelerator
self._devices_flag = accelerator_cls.parse_devices(self._devices_flag)
File "/home/jonathan/anaconda3/envs/graphnet/lib/python3.8/site-packages/pytorch_lightning/accelerators/cpu.py", line 47, in parse_devices
devices = _parse_cpu_cores(devices)
File "/home/jonathan/anaconda3/envs/graphnet/lib/python3.8/site-packages/lightning_fabric/accelerators/cpu.py", line 85, in _parse_cpu_cores
raise TypeError("`devices` selected with `CPUAccelerator` should be an int > 0.")
TypeError: `devices` selected with `CPUAccelerator` should be an int > 0.
Describe the bug
After initial standalone install with WLS2 Ubuntu 22.04.2 LTS running on Windows 11 and pytorch-lightning 2.0.0, I got below mentioned error. After downgrading to 1.7.2 the error disappeared.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Full traceback
Please include the full error message to allow for debugging
Additional context
The text was updated successfully, but these errors were encountered: