Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
274 commits
Select commit Hold shift + click to select a range
1d675e9
update
zhiminzhang0830 Jul 23, 2024
0d019b8
update readme
zhiminzhang0830 Jul 24, 2024
801973f
update config
zhiminzhang0830 Jul 24, 2024
8c6f81c
update
zhiminzhang0830 Jul 24, 2024
b758057
del pdb
zhiminzhang0830 Jul 24, 2024
eed6358
update config
zhiminzhang0830 Jul 24, 2024
7f23f6d
update readme
zhiminzhang0830 Jul 25, 2024
beee69c
add io code
zhiminzhang0830 Jul 27, 2024
9cbcea7
del useless code and add prediction_keys
zhiminzhang0830 Jul 27, 2024
60386f5
update main
zhiminzhang0830 Jul 27, 2024
96de807
update megnet 3d pretrain cfg
zhiminzhang0830 Jul 27, 2024
f6b3124
update 2d config
zhiminzhang0830 Jul 29, 2024
ee840a6
update
zhiminzhang0830 Jul 29, 2024
7beb17b
add old config
zhiminzhang0830 Jul 29, 2024
5b62e30
add result for 3d exp
zhiminzhang0830 Jul 29, 2024
3ed118d
update readme
zhiminzhang0830 Jul 29, 2024
bebdc95
update readme
zhiminzhang0830 Jul 29, 2024
f628de1
Initial commit
XiaoguangHu01 Aug 7, 2024
717d7a4
Merge remote-tracking branch 'pp4mat/master' into develop
zhiminzhang0830 Aug 8, 2024
511bbbd
Merge pull request #1 from zhiminzhang0830/develop
cxxly Aug 12, 2024
854babe
feat: atom type diffusion with d3pm
zhiminzhang0830 Aug 13, 2024
fb57507
chore: delete useless code
zhiminzhang0830 Aug 13, 2024
d880928
chore: move data utils to dataset
zhiminzhang0830 Aug 13, 2024
7e9aa60
chore: move some function to utils
zhiminzhang0830 Aug 13, 2024
5776255
chore: rename diff_utils.py to noise_schedule.py
zhiminzhang0830 Aug 13, 2024
1a350a9
chore: move time embedding to time_embedding.py file
zhiminzhang0830 Aug 13, 2024
ee0465e
chore: replace MAX_ATOMIC_NUM with num_classes
zhiminzhang0830 Aug 13, 2024
6646796
fix: change the atomic type ID to start from 0
zhiminzhang0830 Aug 13, 2024
a82cd26
chore: delete useless code
zhiminzhang0830 Aug 13, 2024
9c9a361
refactor: refactor time generation
zhiminzhang0830 Aug 13, 2024
57ce903
fix: fix bug in traj_stack
zhiminzhang0830 Aug 13, 2024
2b0c520
fix: add d3pm config
zhiminzhang0830 Aug 14, 2024
a30ccb7
Merge pull request #2 from zhiminzhang0830/d3pm
zhiminzhang0830 Aug 15, 2024
776abd9
chore: update pre-commit config
zhiminzhang0830 Aug 19, 2024
6df93d7
feat: add gemnet layers
zhiminzhang0830 Aug 19, 2024
43d93f3
feat: add gemnet
zhiminzhang0830 Aug 19, 2024
7ab7228
feat: add utils for gemnet
zhiminzhang0830 Aug 19, 2024
3d646bb
feat: add mattergen(only coordinate diffusion)
zhiminzhang0830 Aug 19, 2024
69e250f
feat: add config for mattergen
zhiminzhang0830 Aug 19, 2024
95ab8ab
style: update main
zhiminzhang0830 Aug 19, 2024
0d882f8
Merge pull request #3 from zhiminzhang0830/gemnet
zhiminzhang0830 Aug 28, 2024
2196532
add diffusion for coord as mattergen
zhiminzhang0830 Aug 30, 2024
d60abef
Merge pull request #4 from zhiminzhang0830/gemnet
zhiminzhang0830 Sep 3, 2024
f9ab8d2
feat: add lattice diffusion
zhiminzhang0830 Sep 3, 2024
50822ea
feat: update embedding_block.py for support index from 0
zhiminzhang0830 Sep 10, 2024
6370eb0
feat: add diffsion for atom type
zhiminzhang0830 Sep 10, 2024
f2efbfc
feat: change lattice params
zhiminzhang0830 Sep 10, 2024
ff1fa44
feat: update configs
zhiminzhang0830 Sep 10, 2024
0f77486
update configs
zhiminzhang0830 Sep 10, 2024
cc40b5a
add train.sh
zhiminzhang0830 Sep 10, 2024
0bf23d8
update gitignore
zhiminzhang0830 Sep 10, 2024
7763637
Merge pull request #5 from zhiminzhang0830/gemnet
zhiminzhang0830 Sep 10, 2024
afc6600
feat: add logger (#6)
zhiminzhang0830 Sep 10, 2024
277a7f3
feat: add support for saving checkpoints (#7)
zhiminzhang0830 Sep 10, 2024
a743753
chore: delete duplicate code (#8)
zhiminzhang0830 Sep 10, 2024
b911fc0
feat: add diffusion for lattices (#9)
zhiminzhang0830 Sep 11, 2024
3152da0
add diffcsp_pp model
leeleolay Sep 11, 2024
655efeb
feat: add support for resume training (#11)
zhiminzhang0830 Sep 11, 2024
fa9d748
Lattice diffusion (#12)
zhiminzhang0830 Sep 13, 2024
2b435ec
feat: the first version of MartenGen was implemented through fraction…
zhiminzhang0830 Sep 15, 2024
1d7fcf7
Merge branch 'develop' into develop
leeleolay Sep 26, 2024
222d41a
add diffcsp_pp model (#10)
leeleolay Sep 26, 2024
e11ded4
Mat per (#14)
zhiminzhang0830 Oct 10, 2024
445913a
add reconstruct metrics (#15)
zhiminzhang0830 Oct 11, 2024
8e908cc
docs: add logo (#16)
zhiminzhang0830 Oct 11, 2024
18231e8
Merge branch 'PaddlePaddle:develop' into develop
leeleolay Oct 11, 2024
46777ae
feat: add gen metircts (#17)
zhiminzhang0830 Oct 11, 2024
2f05202
docs: update readme (#18)
zhiminzhang0830 Oct 11, 2024
d5465bb
fix: sparse tensor error (#19)
zhiminzhang0830 Oct 14, 2024
3f47182
fix: sample error when training (#20)
zhiminzhang0830 Oct 14, 2024
5fd9005
feat: add TensorCrystDataset (#21)
zhiminzhang0830 Oct 14, 2024
cbb4685
Merge branch 'PaddlePaddle:develop' into develop
leeleolay Oct 15, 2024
6cbf211
add diffcsp with typel and add the sample function
leeleolay Oct 15, 2024
30bc60c
Merge pull request #22 from leeleolay/develop
leeleolay Oct 15, 2024
8a61d4e
add property metric (#23)
zhiminzhang0830 Oct 15, 2024
b6152d9
fix: spacegroup in SampleDataset (#24)
zhiminzhang0830 Oct 15, 2024
62286f4
feat: add eval code (#25)
zhiminzhang0830 Oct 19, 2024
d08d6bf
update requirements (#26)
zhiminzhang0830 Oct 19, 2024
fa84d38
Chore: modify eval (#27)
zhiminzhang0830 Oct 28, 2024
efeee73
feat: add more num_atoms distributions (#28)
zhiminzhang0830 Oct 28, 2024
7f30015
add evaluation metrics results for diffcsp_mp_20_w_type model (#29)
zhiminzhang0830 Oct 31, 2024
9a76b5e
feat: add evaluation metrics results for diffcsp_mp20 model (#30)
zhiminzhang0830 Oct 31, 2024
b419a1c
feat: add diffcsp d3pm (#31)
zhiminzhang0830 Oct 31, 2024
9261bab
chore: update gitignore
zhiminzhang0830 Nov 6, 2024
d2845e2
feat: add transform for dataset
zhiminzhang0830 Nov 6, 2024
d81edf2
feat: add datasets
zhiminzhang0830 Nov 6, 2024
27577f5
feat: add losses
zhiminzhang0830 Nov 6, 2024
428d3eb
feat: add metrics
zhiminzhang0830 Nov 6, 2024
fa05a4c
feat: add models
zhiminzhang0830 Nov 6, 2024
fe8456c
feat: add optimizer
zhiminzhang0830 Nov 6, 2024
adb846f
feat: add trainer
zhiminzhang0830 Nov 6, 2024
91130e0
feat: add utils
zhiminzhang0830 Nov 6, 2024
2bf605f
feat: add megnet_mp18
zhiminzhang0830 Nov 6, 2024
517a241
feat: update readme
zhiminzhang0830 Nov 6, 2024
5a97fa2
feat: update readme
zhiminzhang0830 Nov 6, 2024
4807afb
Merge pull request #32 from zhiminzhang0830/megnet
leeleolay Nov 6, 2024
654c6c4
feat: support mp20 dataset (#33)
zhiminzhang0830 Nov 11, 2024
f8a6c15
feat: add dimenet model (#34)
zhiminzhang0830 Nov 11, 2024
b0c5858
fix: add property_names params (#35)
zhiminzhang0830 Nov 11, 2024
a69d162
fix: initializer bugs and scale shared grad bugs (#36)
zhiminzhang0830 Nov 12, 2024
5943d27
feat: add gemnet model for property prediction (#37)
zhiminzhang0830 Nov 15, 2024
21a7e7b
feat: add absorbing noise scheduler (#38)
zhiminzhang0830 Nov 21, 2024
0a957cb
feat: add grad clip (#39)
zhiminzhang0830 Nov 22, 2024
2be66a7
feat: add config(gemnet_mp18) (#40)
zhiminzhang0830 Nov 22, 2024
880f144
feat: add code for fix pgl (#41)
zhiminzhang0830 Nov 22, 2024
359e7f7
feat: update readme (#42)
zhiminzhang0830 Nov 25, 2024
74186ed
uploat pictures
leeleolay Nov 27, 2024
ba3cba7
Rename property prediction.png to property_prediction.png
leeleolay Nov 27, 2024
dde6567
Rename strcture generation.png to strcture_generation.png
leeleolay Nov 27, 2024
c26f6bf
Rename strcture_generation.png to structure_generation.png
leeleolay Nov 27, 2024
6e5a2f0
Update README.md
leeleolay Nov 27, 2024
a84dd26
Add files via upload
leeleolay Nov 27, 2024
0f584c2
Delete docs/structure_generation.png
leeleolay Nov 27, 2024
83fe1db
Rename 截屏2024-11-27 14.57.46.png to structure_generation.png
leeleolay Nov 27, 2024
242316c
feat: add support for structure_array (#43)
zhiminzhang0830 Nov 28, 2024
c678b89
feat: add diffcsp in ppmat (#44)
zhiminzhang0830 Nov 28, 2024
efa1ba3
feat: add csp metric (#45)
zhiminzhang0830 Dec 1, 2024
d8836d3
feat: add the complete diffcsp training process to ppmat (#46)
zhiminzhang0830 Dec 2, 2024
7c29d5a
Update README.md with English test
leeleolay Dec 2, 2024
93a8732
feat: add predict code (#47)
zhiminzhang0830 Dec 3, 2024
64291b1
feat: add a feature to merge command-line parameters into the configu…
zhiminzhang0830 Dec 3, 2024
aa6c40a
feat: add predict for property prediction and fix some bugs (#49)
zhiminzhang0830 Dec 3, 2024
bee74a3
feat: update diffcsp_mp20 model (#50)
zhiminzhang0830 Dec 4, 2024
108a6c8
chore: update readme (#51)
zhiminzhang0830 Dec 4, 2024
ebaa9c7
fix: delete duplicate keys in configs (#52)
zhiminzhang0830 Dec 4, 2024
a2ebb8c
feat: add diffcsp_with_type model and generation metrics (#53)
zhiminzhang0830 Dec 5, 2024
073a2f4
feat: add d3pm models and fix some bugs (#54)
zhiminzhang0830 Dec 5, 2024
74ffaf8
feat: add diffcsp absorbing model and fix spelling erros (#55)
zhiminzhang0830 Dec 6, 2024
d7af7a4
feat: add band gap config and results for megnet trained on mp18 (#56)
zhiminzhang0830 Dec 7, 2024
313e634
feat: add band gap config and results for dimenet trained on mp18 (#57)
zhiminzhang0830 Dec 9, 2024
9acf827
feat: update models (#58)
zhiminzhang0830 Dec 11, 2024
8546c7f
Update README.md
zhiminzhang0830 Dec 11, 2024
78a4fa8
feat: add mp2018_train_6k dataset and fix some bugs (#59)
zhiminzhang0830 Dec 12, 2024
c4265af
feat: add megnet config and results on mp2018_train_6k dataset (#60)
zhiminzhang0830 Dec 12, 2024
a9fb264
Update README.md
zhiminzhang0830 Dec 12, 2024
1baaa1f
feat: add comformer graph method (#61)
zhiminzhang0830 Dec 13, 2024
de7bd06
feat: add comformer model (#62)
zhiminzhang0830 Dec 13, 2024
4e28bfc
feat: add comformer configs and results (#63)
zhiminzhang0830 Dec 13, 2024
356a1da
feat: add megnet_mp2018_train_6k_band_gap (#64)
zhiminzhang0830 Dec 16, 2024
c85e960
fix: rename mp2018_train_6k to mp2018_train_60k (#65)
zhiminzhang0830 Dec 17, 2024
b9eaa7b
feat: add configs and result for comformer_mp2018_train_60k_band_gap …
zhiminzhang0830 Dec 17, 2024
539650a
feat: add cif dataset, support 2d data (#67)
zhiminzhang0830 Dec 18, 2024
21cccce
feat: add megnet and comformer configs and results and update predict…
zhiminzhang0830 Dec 18, 2024
2661275
feat: add mp2024 dataset (#69)
zhiminzhang0830 Dec 24, 2024
47970a0
feat: add chgnet (#70)
zhiminzhang0830 Dec 24, 2024
4116ed6
feat: add configs and results of comformer_mp2024_train_130k_e_form (…
zhiminzhang0830 Dec 24, 2024
f46d391
feat: add make_graphs and datasets for chgnet and fix some bugs (#72)
zhiminzhang0830 Dec 25, 2024
af3263a
fix: fix some bugs (#73)
zhiminzhang0830 Dec 26, 2024
51de3b7
feat: add an ugly training demo for chgnet (#74)
zhiminzhang0830 Dec 26, 2024
4ea7b2f
feat: add configs and results of comformer_2d_0621_train_18k_e_form_f…
zhiminzhang0830 Dec 26, 2024
47f64e2
feat: add trainer for chgnet (#76)
zhiminzhang0830 Dec 30, 2024
e509819
feat: add setting_eager_mode (#77)
zhiminzhang0830 Dec 31, 2024
bb4c142
feat: add train chgnet script (#78)
zhiminzhang0830 Dec 31, 2024
2ff5bbb
feat: update chgnet trainer and add chgnet_v2(parallel version) (#79)
zhiminzhang0830 Jan 4, 2025
824496a
add digress model_draft version (#80)
leeleolay Jan 6, 2025
111c52c
Digress revise v1 (#81)
leeleolay Jan 7, 2025
ffd50ea
feat: update chgnet v2 (#82)
zhiminzhang0830 Jan 9, 2025
1652582
feat: support distributed load dataset (#85)
zhiminzhang0830 Jan 9, 2025
7ec04b6
feat: support the use of CPU during structural optimization. (#86)
zhiminzhang0830 Jan 12, 2025
b1b2f66
feat: save trajectory when optimizing the structure (#88)
zhiminzhang0830 Jan 15, 2025
c87ef56
feat: add property_names to dataset (#93)
zhiminzhang0830 Jan 20, 2025
617ba4e
feat: add diffcsp guidance (#100)
zhiminzhang0830 Feb 13, 2025
c2b5848
feat: Add DiffCSP with guidance (supporting type/D3PM), enabling mult…
zhiminzhang0830 Feb 13, 2025
335c188
chore: delete meterials_discovery and remove stability_prediction and…
zhiminzhang0830 Feb 20, 2025
d5e1841
feat: update mattergen (#108)
zhiminzhang0830 Mar 5, 2025
fb0b6ee
feat: updata MP dataset (#109)
zhiminzhang0830 Mar 13, 2025
335ed2e
feat: add config for 2d 30k and add accumulate_grad_batches (#111)
zhiminzhang0830 Mar 18, 2025
7f84784
refactor: refactoring the ppmat project (#110)
zhiminzhang0830 Mar 18, 2025
a3d372b
feat: build-in paddle_scatter (#112)
zhiminzhang0830 Mar 20, 2025
0424c3d
feat: add mean distance input to the mattergen model (#113)
zhiminzhang0830 Mar 25, 2025
2c927e3
feat: support graph without edges (#114)
zhiminzhang0830 Mar 27, 2025
6e44e92
feat: add mean distance v2 (#115)
zhiminzhang0830 Apr 10, 2025
19c54b4
feat: update new ppmat (#117)
zhiminzhang0830 Apr 14, 2025
6f273f4
feat: update experimental and add gemnet config for cifdataset (#118)
zhiminzhang0830 Apr 21, 2025
9f81d54
feat: add prediction script for property prediction task and mp2018 d…
zhiminzhang0830 Apr 21, 2025
8ed314d
feat: add train/sample script, add diffcsp and fix some bugs (#120)
zhiminzhang0830 Apr 23, 2025
969387c
feat: update mp2018/mp20 dataset (#121)
zhiminzhang0830 Apr 23, 2025
2a3bfdc
feat: update documentation for DiffCSP and comformer (#122)
zhiminzhang0830 Apr 23, 2025
992c81c
fix: fix sparse tensor in dimenet and gemnet (#123)
zhiminzhang0830 Apr 25, 2025
54f78ac
fix: fix mp2018/mp20 dataset, fix diffcsp and update optimizer/lr and…
zhiminzhang0830 Apr 25, 2025
cdd4b4a
feat: update trainer, logger and AverageMeter (#125)
zhiminzhang0830 Apr 27, 2025
a7347fb
feat: update ppmat and fix some errors (#126)
zhiminzhang0830 Apr 29, 2025
0cbd0c3
feat: update comformer configs and result on G\K, and fix some module…
zhiminzhang0830 May 6, 2025
ba510f1
feat: Add MEGNet/DiffCSP/Comformer models with config/docs & multiple…
zhiminzhang0830 May 8, 2025
b8ef9d2
fix: delete duplicate data (#129)
zhiminzhang0830 May 8, 2025
48dd847
fix: delete duplicate data (#130)
zhiminzhang0830 May 8, 2025
4ce4dd9
feat: add LatticePolarDecomposition preprocess (#131)
zhiminzhang0830 May 8, 2025
04e41e3
feat: add mattergen to ppmat (#132)
zhiminzhang0830 May 26, 2025
b4f3b57
feat: add mattergen_mp20_dft_band_gap (#134)
zhiminzhang0830 May 26, 2025
6bc8f56
fix: fix StandardScalerPaddle (#135)
zhiminzhang0830 May 26, 2025
ab48875
feat: add mattergen_mp20_dft_bulk_modulus, add mattergen_mp20_dft_mag…
zhiminzhang0830 May 26, 2025
a27ab9f
feat: add AlexMP20MatterGenDataset (#137)
zhiminzhang0830 May 26, 2025
68a0068
feat: add mattergen_alex_mp20 (#138)
zhiminzhang0830 May 27, 2025
acf95a5
fix: move the local scatter to the utlis directory and replace paddle…
zhiminzhang0830 May 27, 2025
79ee3e9
feat: add mattergen_alex_mp20_dft_band_gap, add mattergen_alex_mp20_c…
zhiminzhang0830 May 27, 2025
b830050
fix: correct dataset config, fix bugs (#141)
zhiminzhang0830 May 27, 2025
f9cb695
feat: add mattergen_alex_mp20_dft_mag_density (#142)
zhiminzhang0830 May 28, 2025
d35f149
feat: add mattergen_alex_mp20_ml_bulk_modulus, mattergen_alex_mp20_sp…
zhiminzhang0830 May 29, 2025
d84bc0c
feat: add multi property conditional constraints, fix bugs about val_…
zhiminzhang0830 May 29, 2025
1b349cf
feat: add chgnet model, fix some bugs (#145)
zhiminzhang0830 Jun 4, 2025
23898ad
feat: add train/prediction for interatomic_potentials, add chgnet con…
zhiminzhang0830 Jun 9, 2025
0a8c0a4
fix: verify equivalence of structure/graph configurations with cached…
zhiminzhang0830 Jun 9, 2025
7831b04
Add MP2024 dataset (#149)
JunnHuo Jun 11, 2025
e015d27
feat: add losses (#151)
zhiminzhang0830 Jun 19, 2025
1481804
Modify train loop (#152)
JunnHuo Jun 24, 2025
2d5761f
feat: add 2d_12 dist (#155)
zhiminzhang0830 Jun 27, 2025
65ab173
add dimenet++ (#146)
leeleolay Jul 1, 2025
d779901
feat: add MatterSim (#153)
zhiminzhang0830 Jul 2, 2025
3351c99
fix: add distributed initialization (#156)
zhiminzhang0830 Jul 2, 2025
2de78a8
fix: fix bugs in downloading files in a distributed environment (#157)
zhiminzhang0830 Jul 2, 2025
199acae
feat: add installation documentation and license (#159)
zhiminzhang0830 Jul 3, 2025
9b68c2f
feat: update setup and requirements (#160)
zhiminzhang0830 Jul 3, 2025
30acd8b
Add test task and partial README update (#158)
JunnHuo Jul 3, 2025
ac985d1
feat: add get started, update install doc (#162)
zhiminzhang0830 Jul 3, 2025
ca99275
feat: add configuration file instruction document (#163)
zhiminzhang0830 Jul 3, 2025
fd83fa7
add BOS linker to model init (#164)
JunnHuo Jul 4, 2025
d047e15
fix: update pretrained model, set canocial=False at mattergen, modify…
zhiminzhang0830 Jul 4, 2025
a1c0717
refactor: move experimental/* to home (#166)
zhiminzhang0830 Jul 4, 2025
ceb8572
update install/readme documents (#167)
zhiminzhang0830 Jul 4, 2025
df61d02
feat: add the function of automatically finding configuration files, …
zhiminzhang0830 Jul 4, 2025
351d61f
add readme task (#169)
leeleolay Jul 4, 2025
227aeb4
feat: update chgnet/mattersim/diffcsp/mattergen doc (#170)
zhiminzhang0830 Jul 4, 2025
eb770f4
update readme (#171)
zhiminzhang0830 Jul 4, 2025
ffa885e
Update README.md
leeleolay Jul 4, 2025
6f5c002
update readme (#172)
zhiminzhang0830 Jul 5, 2025
f581d2f
Update README.md
leeleolay Jul 5, 2025
75566a1
Update Install.md
leeleolay Jul 5, 2025
8ddfba0
Update Install_cn.md
leeleolay Jul 5, 2025
9172dc6
Update README.md
leeleolay Jul 5, 2025
a44ac6d
Update README.md
leeleolay Jul 5, 2025
a1a601b
Update README.md
leeleolay Jul 5, 2025
1b5ef0b
feat: add ml2ddb (#173)
zhiminzhang0830 Jul 5, 2025
2bc9f50
feat: add partner (#174)
zhiminzhang0830 Jul 7, 2025
50ea8ef
fix: fix chgnet model download link (#175)
zhiminzhang0830 Jul 8, 2025
b4ac426
fix: set nan to 0 (#177)
zhiminzhang0830 Jul 11, 2025
d6d7d97
update logo (#178)
leeleolay Jul 22, 2025
f7052aa
fix: update reshape (#179)
zhiminzhang0830 Jul 25, 2025
9879800
update readme (#180)
leeleolay Jul 28, 2025
7b5c49b
update overview (#183)
leeleolay Jul 29, 2025
451c057
update name & logo (#185)
leeleolay Jul 29, 2025
ac4359a
fix words error (#186)
leeleolay Jul 29, 2025
672be93
update readme (#187)
leeleolay Aug 11, 2025
5a99cb3
matbench_dataset适配 (#181)
jiangandhao Aug 13, 2025
663316d
integrate DiffNMR and fix bugs (#189)
leeleolay Sep 22, 2025
86dc396
fix (#192)
zhiminzhang0830 Sep 28, 2025
ab2c8ef
set output data type as 'int32' of paddle.cumsum for CHGNet model. (#…
ShenshenYan Oct 10, 2025
25c1220
from metax:fix diffnmr model and config and fix AlexMP20MatterGenData…
ShenshenYan Oct 31, 2025
2356071
update overview map and metax support info (#201)
leeleolay Oct 31, 2025
b0b5116
Update jarvis_dataset.py (#203)
scyyh11 Nov 12, 2025
6384e31
Add Feature-Guided Inverse Design of LDPs model under project directory
Wei-jie-Wu Nov 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
35 changes: 35 additions & 0 deletions .clang_format.hook
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/bash

# Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

set -e

readonly VERSION="13.0.0"

version=$(clang-format -version)

if ! [[ $(python -V 2>&1 | awk '{print $2}' | awk -F '.' '{print $1$2}') -ge 36 ]]; then
echo "clang-format installation by pip need python version great equal 3.6,
please change the default python to higher version."
exit 1
fi

if ! [[ $version == *"$VERSION"* ]]; then
# low version of pip may not have the source of clang-format whl
pip install --upgrade pip
pip install clang-format==13.0.0
fi

clang-format $@
36 changes: 35 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,38 @@ ppsci/_version.py
__pycache__/
stability_prediction/data_bak/*
stability_prediction/log/*
stability_prediction/checkpoints/*
stability_prediction/checkpoints/*

structure_prediction/data/*
structure_prediction/data_bak/*
structure_prediction/log/*
structure_prediction/checkpoints/*

data/*
log/*

output/*
experimental/output/*
experimental/output
experimental/data
experimental/log/
experimental/log2/

output/*experimental/data/
experimental/output/
experimental/
log2/
log3/
log_step2/
log_step3/
nohup.out
ppmat/models/mattersim/threebody_indices.c
step2_latest.log_nobug
step3_15_H_without_formular.ckpt
pretrained/
result*
spectrum_elucidation/retrival_database
test/samplers
outputs


31 changes: 25 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,61 @@ repos:
rev: 5.11.5
hooks:
- id: isort
args: ["--multi-line=7", "--sl"]
args: ["--multi-line=7", "--sl", "--profile", "black", "--filter-files"]
exclude: '(jointContribution|legacy)/.*'

- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
exclude: '(jointContribution|legacy)/.*'

# - repo: https://github.com/charliermarsh/ruff-pre-commit
# rev: "v0.0.272"
# hooks:
# - id: ruff
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.272"
hooks:
- id: ruff
exclude: '(jointContribution|legacy)/.*'

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: a11d9314b22d8f8c7556443875b731ef05965464
hooks:
- id: check-merge-conflict
exclude: '(jointContribution|legacy)/.*'
- id: check-symlinks
exclude: '(jointContribution|legacy)/.*'
- id: detect-private-key
exclude: '(jointContribution|legacy)/.*'
files: (?!.*paddle)^.*$
- id: end-of-file-fixer
exclude: '(jointContribution|legacy)/.*'
- id: trailing-whitespace
exclude: '(jointContribution|legacy)/.*'
- id: check-case-conflict
exclude: '(jointContribution|legacy)/.*'
- id: check-yaml
exclude: "mkdocs.yml"
# exclude: "mkdocs.yml"
exclude: (^jointContribution/.* | "mkdocs.yml" | ^legacy/.*)
- id: pretty-format-json
exclude: '(jointContribution|legacy)/.*'
args: [--autofix]
- id: requirements-txt-fixer
exclude: '(jointContribution|legacy)/.*'

- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.0.1
hooks:
- id: forbid-crlf
files: \.md$
exclude: '(jointContribution|legacy)/.*'
- id: remove-crlf
files: \.md$
exclude: '(jointContribution|legacy)/.*'
- id: forbid-tabs
files: \.md$
exclude: '(jointContribution|legacy)/.*'
- id: remove-tabs
files: \.md$
exclude: '(jointContribution|legacy)/.*'

- repo: local
hooks:
Expand All @@ -51,3 +67,6 @@ repos:
entry: bash .clang_format.hook -i
language: system
files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|cuh|proto)$
exclude: '(jointContribution|legacy)/.*'

exclude: '(jointContribution|legacy)/.*'
56 changes: 56 additions & 0 deletions Install.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Installation 🔧

[简体中文](./Install_cn.md)

## 1. Installation Instructions

We recommend using a conda virtual environment to manage dependencies. You can install conda via [Miniforge](https://github.com/conda-forge/miniforge).

### 1.1 Create Virtual Environment
Create and activate a new conda virtual environment:

conda create -n ppmat python=3.10
conda activate ppmat

We currently develop under Python 3.10 environment and recommend using Python 3.10 or newer.

### 1.2 Install PaddlePaddle
Install the appropriate PaddlePaddle version based on your CUDA version. Refer to the [PaddlePaddle Official Website](https://www.paddlepaddle.org.cn/install/quick) for installation commands. We recommend installing PaddlePaddle version >= 3.1 or the develop version.

For example, in a CUDA 12.6 environment, install the paddlepaddle-gpu version:

python -m pip install paddlepaddle-gpu==3.1.0 -i https://www.paddlepaddle.org.cn/packages/stable/cu126/

After installation, verify the installation with:

python -c "import paddle; paddle.utils.run_check()"

If you see "PaddlePaddle is installed successfully! Let's start deep learning with PaddlePaddle now.", the installation was successful.

### 1.3 Install PaddleMaterials from Source:

# Clone PaddleMaterials repository
git clone https://github.com/PaddlePaddle/PaddleMaterials.git

# Navigate to PaddleMaterials directory
cd PaddleMaterials

# Install dependencies
pip install --upgrade pip setuptools wheel
pip install setuptools_scm
pip install Cython

# Install in editable mode
pip install -e .

## 2. Run Examples

Predict material properties using the MegNet model:

python property_prediction/predict.py --model_name='megnet_mp2018_train_60k_e_form' --weights_name='best.pdparams' --cif_file_path='./property_prediction/example_data/cifs/'

Predict energy and forces using the MatterSim model:

python interatomic_potentials/predict.py --model_name='mattersim_1M' --weights_name='mattersim-v1.0.0-1M_model.pdparams' --cif_file_path='./interatomic_potentials/example_data/cifs/'

For more usage instructions, refer to the [Get Started](./get_started.md) documentation.
58 changes: 58 additions & 0 deletions Install_cn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@

# Installation 🔧

[English](./Install.md)

## 1. 安装说明

我们推荐使用conda虚拟环境来管理依赖包,你可以通过安装[Miniforge](https://github.com/conda-forge/miniforge)使用conda。

### 1.1 创建虚拟环境
创建一个新的conda虚拟环境,并激活环境:

conda create -n ppmat python=3.10
conda activate ppmat

目前我们在python 3.10环境下进行开发,因此建议使用python 3.10或者更高的版本。

### 1.2 安装PaddlePaddle
根据你的cuda版本安装对应版本的PaddlePaddle,具体安装命令可参考[PaddlePaddle官网](https://www.paddlepaddle.org.cn/install/quick)。我们推荐安装PaddlePaddle >= 3.1或者develop版本。

例如,对于cuda12.6环境,安装paddlepaddle-gpu版本:

python -m pip install paddlepaddle-gpu==3.1.0 -i https://www.paddlepaddle.org.cn/packages/stable/cu126/

安装完毕之后,运行以下命令,验证 Paddle 是否安装成功。

python -c "import paddle; paddle.utils.run_check()"

如果出现 PaddlePaddle is installed successfully! Let's start deep learning with PaddlePaddle now. 信息,说明已成功安装。

### 1.3 源码安装PaddleMaterials:

# clone PaddleMaterials
git clone https://github.com/PaddlePaddle/PaddleMaterials.git

# 切换到PaddleMaterials目录
cd PaddleMaterials

# 安装依赖
pip install --upgrade pip setuptools wheel
pip install setuptools_scm
pip install Cython

# 以可编辑模式安装PaddleMaterials
pip install -e .


## 2. 运行示例

使用 MegNet 模型预测材料属性:

python property_prediction/predict.py --model_name='megnet_mp2018_train_60k_e_form' --weights_name='best.pdparams' --cif_file_path='./property_prediction/example_data/cifs/'

使用 MatterSim 模型预测能量和力:

python interatomic_potentials/predict.py --model_name='mattersim_1M' --weights_name='mattersim-v1.0.0-1M_model.pdparams' --cif_file_path='./interatomic_potentials/example_data/cifs/'

更多的使用说明可以参考[Get Started](./get_started.md)。
Loading