Coder Social home page Coder Social logo

Comments (3)

Linux-cpp-lisp avatar Linux-cpp-lisp commented on July 21, 2024 1

Your atom type definitions look like they may be wrong: you seem to want, for example, LAMMPS atom type 4 to be Hydrogen, but are assigning it NequIP/Allegro type N (the fourth NequIP type you list).

From the README:

The names after the model path deployed.pth indicate, in order, the names of the Allegro model's atom types to use for LAMMPS atom types 1, 2, and so on. The number of names given must be equal to the number of atom types in the LAMMPS configuration (not the Allegro model!). The given names must be consistent with the names specified in the Allegro training YAML in chemical_symbol_to_type or type_names.

I guess we could explain this more explicitly.

Given your masses/LAMMPS group labels, I think the correct line would be:

pair_coeff   * * deployed.pth B C F H N

(If you find it more helpful to see the correspondance in code, consider these two lines from the unit tests:

"""
# note that ASE outputs lammps types in alphabetical order of chemical symbols
# since we use chem symbols in this test, just put the same
pair_coeff	* * {deployed_model} {' '.join(sorted(set(config["chemical_symbols"])))}
{newline.join('        mass  %i 1.0' % i for i in range(1, num_types + 1))}
"""

)

from pair_allegro.

Linux-cpp-lisp avatar Linux-cpp-lisp commented on July 21, 2024

I've also clarified this in the README.

from pair_allegro.

PythonFZ avatar PythonFZ commented on July 21, 2024

Thanks a lot! With the new atom types everything worked as expected.

from pair_allegro.

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.