Skip to main content

An AI-driven materials science toolkit based on PaddlePaddle.

Project description

PaddleMaterials

PaddleMaterials

Python 3.10+ PyPI version Apache 2.0 License GitHub Stars

🚀 Introduction

PaddleMaterials is an end-to-end AI4Materials toolkit built on the PaddlePaddle deep learning framework. Designed as a data-mechanism dual-driven platform for developing and deploying foundation models in materials science, PPMat enables researchers to efficiently build AI models and accelerate material discovery using pretrained models.

🧩 Core Capabilities

Task Description Typical Applications
Property Prediction (PP) Predict material properties from structure Forward design or predict formation energy, band gap, elastic moduli etc.
Structure Generation (SG) Generate novel crystal structures Inverse design or structure generation
Machine Learning Interatomic Potential (MLIP) Surrogate Model for DFT as ML potentials Molecular dynamics simulations
Electronic Structure (ES) Surrogate Model for DFT to predict physical field Predict electronic density
Spectrum Elucidation (SE) Reconstruct structures from spectra NMR structure elucidation
Spectrum Enhancement (SPEN) Enhance microscopy and spectrum signals STEM image enhancement, denoising

🧱 Supported Materials

  • Inorganic Crystals - Well-supported with multiple datasets and pretrained models
  • Organic Molecules - Support for multiple datasets and pretrained models including small molecules and partial polymers

✨ Why PaddleMaterials?

  • Rich Pretrained Models & AI-ready Datasets - 50+ pretrained models ready for inference and Multiple curated datasets for training
  • Multi-Task Integration - Unified framework across tasks of PP, SG, MLIP, ES, SE, SPEN etc.
  • Multi-Hardware Support - Full support for NVIDIA GPUs and MetaX GPUs and Intel CPUs
  • Production-Ready - Easy to use with standandlize design & distributed training, mixed precision, checkpoint recovery

📑 Support Tasks

Task Description Link
Property Prediction (PP) Predict formation energy, band gap, elastic properties README
Structure Generation (SG) Generate new crystal structures with diffusion models README
Machine Learning Interatomic Potential (MLIP) DFT-accurate potentials for molecular dynamics README
Electronic Structure (ES) Predict electronic structure properties README
Spectrum Elucidation (SE) Reconstruct molecular structures from NMR spectra README
Spectrum Enhancement (SPEN) Enhance microscopy and spectral signals README

🤖 Available Pretrained Models

Task Models Dataset
Property Prediction MEGNet, iComformer, DimeNet++, SphereNet MP2018, MP2024, JARVIS, QM9, etc.
Structure Generation MatterGen, DiffCSP MP20, ALEX, etc.
Machine Learning Interatomic Potential CHGNet, MatterSim, SphereNet MPTRJ, MD17, etc.
Electronic Structure InfGCN QM9_ES, MP_ES, OMol25_MC_ES, etc.
Spectrum Elucidation DiffNMR MSD_NMR, etc.
Spectrum Enhancement SFIN SFIN-HAADF/BF, etc.

Full model list: See MODEL_REGISTRY


🚀 Get Started

🔧 Installation

Please refer to the installation document for your hardware environment. See SupportedHardwareList for more multi-hardware adaptation information.


⚡ Easy Inference

Property Prediction

Predict material formation energy using a pretrained 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/' \
    --save_path='result.csv'

Structure Generation

Generate novel crystal structures using a pretrained MatterGen model:

python structure_generation/sample.py \
    --model_name='mattergen_mp20' \
    --weights_name='latest.pdparams' \
    --save_path='result_mattergen_mp20/' \
    --mode='by_num_atoms' \
    --num_atoms=4

Interatomic Potentials

Predict energy and forces using a pretrained 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/' \
    --save_path='result.csv'

Electronic Structure

Predict electron density using a pretrained InfGCN checkpoint:

python electronic_structure/predict.py \
    --config='electronic_structure/configs/infgcn/infgcn_qm9.yaml' \
    --checkpoint='path/to/infgcn_qm9.pdparams' \
    --split='validation' \
    --index=0 \
    --output_dir='output/infgcn_qm9/validation_0' \
    --save_pred_cube

See the InfGCN prediction guide for dataset and checkpoint preparation.

Spectrum Elucidation

Run NMR spectrum elucidation using a pretrained DiffNMR checkpoint:

python spectrum_elucidation/sample.py \
    --config_path='spectrum_elucidation/configs/diffnmr/DiffNMR.yaml' \
    --checkpoint_path='path/to/DiffNMR_nless15_best.pdparams' \
    --save_path='result_diffnmr_nless15/'

Spectrum Enhancement

Enhance STEM images using a pretrained SFIN model:

python spectrum_enhancement/predict.py \
    --model_name='sfin_haadf_enhance' \
    --split='val'

🏋️ Start Training

For training and fine-tuning, refer to the documentation.


🤝 Contributors & Cooperation & Community

Star History Chart

Thanks to all contributors who have helped build PaddleMaterials!

Thanks for the following organiziton for cooprative support!

Join the PaddleMaterials WeChat group to discuss with us!

🛠️ Contribute to PaddleMaterials

For developer, please refer to architecture.


📜 License

PaddleMaterials is licensed under the Apache License 2.0.


🎓 Citation

@misc{paddlematerials2025,
  title={PaddleMaterials, a deep learning toolkit based on PaddlePaddle for material science.},
  author={PaddleMaterials Contributors},
  howpublished = {\url{https://github.com/PaddlePaddle/PaddleMaterials}},
  year={2025}
}

🙏 Acknowledgements

This repository references code from the following projects:

PaddleScience | Matgl | CDVAE | DiffCSP | MatterGen | MatterSim | CHGNet | AIRS

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ppmat-0.2.1.tar.gz (631.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ppmat-0.2.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

File details

Details for the file ppmat-0.2.1.tar.gz.

File metadata

  • Download URL: ppmat-0.2.1.tar.gz
  • Upload date:
  • Size: 631.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for ppmat-0.2.1.tar.gz
Algorithm Hash digest
SHA256 22c306dc4b5781cba7bcec5ab292657645740516f0b5da2556460eaf5c7fdf79
MD5 4f53fcbbbc0c18c3963a3d00f13784d6
BLAKE2b-256 d34c8382f4959d07d2109045616518fcb6131b8482ed2cfbd4e3f7a6a273c132

See more details on using hashes here.

Provenance

The following attestation bundles were made for ppmat-0.2.1.tar.gz:

Publisher: publish-pypi.yml on PaddlePaddle/PaddleMaterials

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ppmat-0.2.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for ppmat-0.2.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 cca8804804ffded6059d258876ba3b8cef93e5ab49f294c8d4ac12b29168c521
MD5 dc7bb01587c53442f2881e0bbe5b1294
BLAKE2b-256 21318e968f9013b5e7248fa28405e196fbf5292c0da4c4a696c808005576d117

See more details on using hashes here.

Provenance

The following attestation bundles were made for ppmat-0.2.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: publish-pypi.yml on PaddlePaddle/PaddleMaterials

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page