Coder Social home page Coder Social logo

eastonman / deepmd_on_pytorch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shishaochen/deepmd_on_pytorch

0.0 0.0 0.0 1.71 MB

Reproduce partial features of DeePMD-kit using PyTorch.

License: GNU Lesser General Public License v3.0

Python 100.00%

deepmd_on_pytorch's Introduction

DeePMD-kit on PyTorch

For better understand DeePMD-kit, we implement its partial features using PyTorch and expose interface consuing descriptors.

Technical details of our custom torch.autograd.Function is explained at DeePMD 描述符 se_a 前向和反向.

Unit Tests

To ensure result consistency between DeePMD-kit and our PyTorch version, 7 unit tests are implemented.

Execute them one by one.

cd tests
find . -name '*.py' | xargs -I {} python3 -u {}

E2E demo

To verify RMSE decrease during training, a demo INPUT config is prepared.

ln -s tests/water/data data
python3 -u deepmd_pt/main.py tests/water/se_e2_a.json >train.log 2>&1 &
tail -f lcurve.log  # RMSE values of energy and loss are collected

Furthermore, we can draw 2D-line diagram based on the lcurve.out file.

python3 -u visualize.py  # Output is `rmse_over_step.png`

Possible graph could be: rmse_over_step.png

deepmd_on_pytorch's People

Contributors

shishaochen avatar

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.