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

Simulate multiple initial conditions simultaneously? #6

Closed
jeevster opened this issue Sep 26, 2023 · 1 comment
Closed

Simulate multiple initial conditions simultaneously? #6

jeevster opened this issue Sep 26, 2023 · 1 comment

Comments

@jeevster
Copy link

Is there a way in the codebase to simulate MD with the trained potentials on multiple initial conditions in parallel (e.g using the existing Simulator class from mdsim/md/ase_utils)? Would be great if this could be done in a way that takes advantage of Pytorch vectorization.

@kyonofx
Copy link
Owner

kyonofx commented Sep 27, 2023

Thanks for your question!

The current code does not support batching. The simulation code is currently under ASE, which does not support batched integration/thermostat control.

One can implement an integrator/thermostat, and then the code can be made parallelizable by keeping separate atom states and thermostats. I feel this will be nontrivial but not too much work. Unfortunately, I currently don't have the bandwidth to work on this, but it is certainly something very useful to have. I think the torch thermostat implemented here https://github.com/torchmd/mdgrad is a good place to start.

@kyonofx kyonofx closed this as completed Oct 30, 2024
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