Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiprocessing.pool error when trying to perform single point calculation with MLP #75

Open
gtusha opened this issue Dec 1, 2023 · 4 comments

Comments

@gtusha
Copy link

gtusha commented Dec 1, 2023

Hello!
I am experiencing a technical issue when trying to perform a single point calculation on a structure with the MLP that I have trained previously.

The logfile shows no errors up to this point:
2023-12-01 16:20:37 md185 mlptrain.log[1398248] INFO Loaded calculator successfully

But then I get the following error:

File "/home/gtusha/softwares/mlp-train-main-final/mlp-train-main/mlptrain/configurations/configuration_set.py", line 414, in single_point
return self._run_parallel_method(function=_single_point_eval,
File "/home/gtusha/softwares/mlp-train-main-final/mlp-train-main/mlptrain/configurations/configuration_set.py", line 622, in _run_parallel_method
self[i] = result.get(timeout=None)
File "/home/gtusha/miniconda3/envs/mlptrain_final/lib/python3.9/multiprocessing/pool.py", line 771, in get
raise self._value
multiprocessing.pool.MaybeEncodingError: Error sending result: '<multiprocessing.pool.ExceptionWithTraceback object at 0x1527ee90b310>'. Reason: 'TypeError("cannot pickle 'PyCall.jlwrap' object")'

  • The mlp is trained with ACE
  • The error persists independently on the number of cores I use (1 or 2).
  • The script works fine when I perform the single point with ORCA
  • I am using julia 1.9.2
  • I have tried it on different HPC systems

output.log

Thank you for the support!

@juraskov
Copy link
Member

juraskov commented Dec 5, 2023

Hi Gers, thanks for reporting this. Did you use the same version of Julia for training the potential as you now use for the prediction? If you send me your input files I can also try to reproduce your error and give you more info.

Thanks!

Veronika

@gtusha
Copy link
Author

gtusha commented Dec 5, 2023

Hi Veronika.
Yes, I have used the same Julia version in both computations.

I am enclosing the input file and the potential file.
files_sp.zip

Cheers

@juraskov
Copy link
Member

The error is a result of a missing box in the ACE computations. It can be fixed by adding the following lines in the input, after the load_xyz function:

for structure in configurations:
structure.box = Box([100, 100, 100])

I will add the check of the box to the code.

Veronika

@gtusha
Copy link
Author

gtusha commented Dec 11, 2023

Thanks a lot !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants