Add model compression support for se_t type descriptor#1175
Add model compression support for se_t type descriptor#1175njzjz merged 24 commits intodeepmodeling:develfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## devel #1175 +/- ##
==========================================
+ Coverage 75.95% 76.03% +0.08%
==========================================
Files 91 91
Lines 7260 7358 +98
==========================================
+ Hits 5514 5595 +81
- Misses 1746 1763 +17
Continue to review full report at Codecov.
|
|
An error ‘incompatible model version’ occurred when using the produced model.pb to run lammps. terminate called after throwing an instance of 'std::runtime_error' |
You should manually compile the deepmd-kit c++ interface from scratch to match the 1.1 model version. |
With the help of @liangadam , we have added the model compression support for the
se_ttype descriptor. The main changes are:se_ttype;TabulateFusiontoTabulateFusionSeAforse_atype;TabulateFusionSeTforse_ttype model compression, and put the corresponding CPU and GPU implementations in tabulate.cc and tabulate.cu;se_t.py;se_tis 10 times larger thanse_a.By using the default water example benchmark system, we found that the lammps output of the se_t compressed model is consistent with the original model. And with the embedding net size setting[25, 50, 100], [4, 8, 16], the compressed model gains speedup by a factor of 20(single V100 GPU) and 12(CPU) correspondingly.
TODO: