Skip to content

How to use a specific model for training? #18

Answered by ilyes319
RISHAV01CODER asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, you can install the mace code: https://github.com/ACEsuit/mace

Then run the following script:

from mace.calculators import mace_mp
from ase import build
from ase.md import Langevin
from ase.md.velocitydistribution import MaxwellBoltzmannDistribution
from ase import units

macemp = mace_mp(model="https://github.com/ACEsuit/mace-mp/releases/download/mace_mp_0b/mace_agnesi_medium.model") # downlaod the model at the given url
atoms = build.molecule('H2O')
atoms.calc = macemp

# Initialize velocities.
T_init = 300  # Initial temperature in K
MaxwellBoltzmannDistribution(atoms, T_init * units.kB)

# Set up the Langevin dynamics engine for NVT ensemble.
dyn = Langevin(atoms, 0.5 * units.f…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@RISHAV01CODER
Comment options

Answer selected by ilyes319
Comment options

You must be logged in to vote
1 reply
@RISHAV01CODER
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants