-
Notifications
You must be signed in to change notification settings - Fork 518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Paddle support to Deepmd and Lammps #1699
base: paddle-backup
Are you sure you want to change the base?
Add Paddle support to Deepmd and Lammps #1699
Conversation
…d inference part with lammps/gromacs Add PaddleDeepPot add & fix add pairpaddledeepmd lmp_compile add paddle_inference Add PaddleDeepPot and change CMakeLists.txt not compile ipi fix compile error add nlist finish nlist case move input tensor to paddle_common add multi model fix half fix fix 2 fix 3 fix error fix error2 fix error3 fix error3 fix error fix error fix error finish fixes (multi model issue commented) fix last compiling issue fix pair_paddledeepmd issues updatet fix fix error fix fix fix rename pair files remove unnecessary files change some wrong float back to double remove tf fix env.sh.in add custom op, change c++11 to c++14 add pd_infer_custom_op lib task fix linking env.sh.in update add deeppot UT CPU native run works in lmp_serial! remove test_copy folder update paddle lib path improve math lib function add compiling scripts remove logging update update improve cmake custom ops fix for training fix output mapping update fix findTF with py and without cpp Update README.md remove settig folder
update bash script add test files fixed training and inference for same commit sha remove setting update model path
@njzjz Read the Docs build failed! Coule you help me solve this problem:how to fix this error? |
How to compile and run:
compile_deepmd.sh
compile_lammps.sh
|
Update in.lammps revise in script Delete model.pdiparams Delete model.pdiparams.info Delete model.pdmodel Delete .bashrc test Delete compile_paddle.sh Delete compile_lammps.sh Delete compile_deepmd.sh Update env.sh.in Update FindFluid.cmake revise pd_ops install location change absolute path to $paddle_root update Update .gitmodules update
The training and inference results of water are in example/water/train and example/water/lmp , please check and merge codes @amcadmus |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Please do not add large models (example/water/lmp/model.ckpt/model.pdiaparams, example/water/lmp/model.ckpt/model.pdiaparams) to the source code.
- please do not commit format change of source/CMakeList.txt in this PR.
- please do not change the mode from 644 to 755 if they are not executable.
- codes in source/api_cc/src/common.cc are commented out. If they are not needed, please remove them.
- the high precision floating point format is change from
double
tofloat
, this may not be necessary. Removing-DHIGH_PREC
should work?
2.1 the file source/api_cc/src/common.cc is needed, because I only achieve input and output funciton of paddle tensor, other function is needed to keep the whole function of api_cc
Thanks for you suggestions |
#define FLOAT_PREC double | ||
#define FLOAT_PREC float |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This type change can be handle by setting the option -DHIGH_PREC
@wanghan-iapcm Due to the precision of op in paddle framework, I need to transfer op of deepmd model into float32 from double 64. What should I do to make it success. Thanks! |
Add PaddleDeepPot and change CMakeLists.txt for Paddle inference lib
Improve Paddle custom ops
fix for training
fix output mapping
fix findTF with py and without cpp
Update README.md