Giter VIP home page Giter VIP logo

Comments (5)

CheukHinHoJerry avatar CheukHinHoJerry commented on August 24, 2024

ASE calculator is not a must as long as you provide a dictionary that is correct for calling model.forward. Take a look at
https://github.com/ACEsuit/mace/blob/main/mace/data/atomic_data.py and how it is used in testing scripts etc.

If you want to use it in C++, maybe you can look at how it is used in lammps.

from mace.

bernstei avatar bernstei commented on August 24, 2024

Isn't the neighbor list calculated in python, which would therefore make it impossible to run in pure C++ without some significant supporting code?

from mace.

CheukHinHoJerry avatar CheukHinHoJerry commented on August 24, 2024

Yes. I would imagine you will have to write an interface for it though not something easy. (please correct me if I am wrong.)

from mace.

ilyes319 avatar ilyes319 commented on August 24, 2024

Hey @CheukHinHoJerry,

Yes it is totally possible to run MACE in C++ using torchscript. This exactly how we made the lammps interface, see here: https://github.com/ACEsuit/lammps/blob/mace/src/ML-MACE/pair_mace.cpp#L308.
As @CheukHinHoJerry you will just need to provide the right input dictionary. To construct the NL you should be able to use the C++ matscipy NN.

from mace.

Hsuchein avatar Hsuchein commented on August 24, 2024

I guess you're right. I find a code in eval_configs.py, which use output = model(batch.to_dict(), compute_stress=args.compute_stress) to obtain the force and energy. Is that means what I should do is to provide the model with right dictionary, does it make sense?

Furthermore, I am not quite sure about nblist you guys mentioned, should I provide the model with nblist?

from mace.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.