Coder Social home page Coder Social logo

Comments (7)

gabor1 avatar gabor1 commented on August 20, 2024

In MB I don't know but we regularly train databases with several hundred thousand atoms. Note that with MPI training you can use lots of memory on multiple nodes (or are you already doing that and that's what 1-2 TB refers to?)

from quip.

MES-physics avatar MES-physics commented on August 20, 2024

Just one node , not MPI.

from quip.

gabor1 avatar gabor1 commented on August 20, 2024

So if you switch to multiple nodes you can significantly increase database sizes and reduce training times.

from quip.

MES-physics avatar MES-physics commented on August 20, 2024

Thanks. How do I find how many atoms are in my xyz files?

from quip.

jameskermode avatar jameskermode commented on August 20, 2024

You could load it into ASE and sum the lengths of all the Atoms objects, with something like (not tested)

from ase.io import read
dataset = read("file.xyz", index=":")
total_atoms = sum([len(atoms) for atoms in dataset])

or if you have only a single species eg Si then grep -Ec ‘^Si' file.xyz would suffice (this counts the number of lines starting with Si).

from quip.

gabor1 avatar gabor1 commented on August 20, 2024

If you have many elements, you can also grep -c 'Lattice' file.xyz which will count the number of structures, and subtract twice this number from the result of wc file.xyz to get the overall number of atoms.

from quip.

Sideboard avatar Sideboard commented on August 20, 2024

You can also sum up the atom numbers at the start of each frame/configuration:
grep '^[0-9]\+$' data.xyz | awk '{s+=$1} END {print s}'

Number of frames accordingly:
grep '^[0-9]\+$' data.xyz | wc -l

from quip.

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.