Downloads · 30 days
0
Franklalalala/dptb
dptb is a machine learning model from Franklalalala. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
<p align="center" <img src="docs/deeptb-logo.png" alt="DeePTB Logo" style="width: 80vw; height: auto;" / </p
Downloads · 30 days
0
Access
Public
Updated Nov 24, 2025
Repo size
11.8 MB
Likes
0
Public
Click a slice to open those files.
.png7.1 MB · 28%
From the Hugging Face model README
DeePTB is an innovative Python package that uses deep learning to accelerate ab initio electronic structure simulations. It offers versatile, accurate, and efficient simulations for a wide range of materials and phenomena. Trained on small systems, DeePTB can predict electronic structures of large systems, handle structural perturbations, and integrate with molecular dynamics for finite temperature simulations, providing comprehensive insights into atomic and electronic behavior.
DeePTB-SK: deep learning based local environment dependent Slater-Koster TB.
DeePTB-E3: E3-equivariant neural networks for representing quantum operators.
For more details, see our papers:
Online documentation
For a comprehensive guide and usage tutorials, visit Documentation website.
Contributing
We welcome contributions to DeePTB. Please refer to our contributing guidelines for details.
Installing DeePTB is straightforward. We recommend using a virtual environment for dependency management.
Requirements
From Source
Highly recommended to install DeePTB from source to get the latest features and bug fixes.
Setup Python environment: Using conda (recommended, python >=3.9, <=3.12 ), e.g.,
conda create -n dptb_venv python=3.10
conda activate dptb_venv
or using venv (make sure python >=3.9,<=3.12)
python -m venv dptb_venv
source dptb_venv/bin/activate
Clone DeePTB and Navigate to the root directory:
git clone https://github.com/deepmodeling/DeePTB.git
cd DeePTB
Install torch:
pip install "torch>=2.0.0,<=2.5.0"
Install torch-scatter (two ways):
python docs/auto_install_torch_scatter.py
pip install torch-scatter -f https://data.pyg.org/whl/torch-${version}+${CUDA}.html
where ${version} is the version of torch, e.g., 2.5.0, and ${CUDA} is the CUDA version, e.g., cpu, cu118, cu121, cu124. See torch_scatter doc for more details.Install DeePTB:
pip install .
Easy Installation
note: not fully tested, please use the source installation for a stable version.
pip install dptb
To ensure the code is correctly installed, please run the unit tests first:
pytest ./dptb/tests/
Be careful if not all tests pass!
The following references are required to be cited when using DeePTB. Specifically:
For DeePTB-SK:
Q. Gu, Z. Zhouyin, S. K. Pandey, P. Zhang, L. Zhang, and W. E, Deep Learning Tight-Binding Approach for Large-Scale Electronic Simulations at Finite Temperatures with Ab Initio Accuracy, Nat Commun 15, 6772 (2024).
For DeePTB-E3:
Z. Zhouyin, Z. Gan, S. K. Pandey, L. Zhang, and Q. Gu, Learning Local Equivariant Representations for Quantum Operators, In The 13th International Conference on Learning Representations (ICLR) 2025.