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
Running into an module not found error that's in the title of this issue. My conda environment is built using the environment.yml file that is in this repository. When running this command on the provided examples, I get the error.
Loading config file <local directory>/DProQ/configs/Lab_saw_mulitase_gate_af2_decoy_knn10_seed2222.json
Clean pdb files generated.
DIST files generated
DGL files generated
Lightning automatically upgraded your loaded checkpoint from v1.5.10 to v2.0.0. To apply the upgrade to your files permanently, run `python -m pytorch_lightning.utilities.upgrade_checkpoint --file ckpt/pre_train_seed_222.ckpt`
Traceback (most recent call last):
File "inference.py", line 139, in <module>
model = DPROQLi.load_from_checkpoint(ckpt_file)
File "<miniconda directory>/envs/DProQ/lib/python3.8/site-packages/pytorch_lightning/core/module.py", line 1532, in load_from_checkpoint
loaded = _load_from_checkpoint(
File "<miniconda directory>/envs/DProQ/lib/python3.8/site-packages/pytorch_lightning/core/saving.py", line 90, in _load_from_checkpoint
return _load_state(cls, checkpoint, strict=strict, **kwargs)
File "<miniconda directory>/envs/DProQ/lib/python3.8/site-packages/pytorch_lightning/core/saving.py", line 136, in _load_state
obj = cls(**_cls_kwargs)
File "<local directory>/DProQ/src/run_DPROQ_li_multitask_v2_gate.py", line 99, in __init__
super().__init__()
File "<miniconda directory>/envs/DProQ/lib/python3.8/site-packages/pytorch_lightning/core/module.py", line 128, in __init__
self._register_sharded_tensor_state_dict_hooks_if_available()
File "<miniconda directory>/envs/DProQ/lib/python3.8/site-packages/pytorch_lightning/core/module.py", line 1570, in _register_sharded_tensor_state_dict_hooks_if_available
from torch.distributed._shard.sharded_tensor import pre_load_state_dict_hook, state_dict_hook
ModuleNotFoundError: No module named 'torch.distributed._shard'
Seems to occur when loading a checkpoint file. Any help with this would be appreciated, thanks!
The text was updated successfully, but these errors were encountered:
Running into an module not found error that's in the title of this issue. My conda environment is built using the environment.yml file that is in this repository. When running this command on the provided examples, I get the error.
python ./inference.py -c ./examples/6AL0/ -w ./examples/work/ -r ./examples/result
Seems to occur when loading a checkpoint file. Any help with this would be appreciated, thanks!
The text was updated successfully, but these errors were encountered: