This repository contains tutorials and examples for DeePTB - a deep learning package for accelerating ab initio electronic structure simulations.
All tutorials are available in two versions:
- Standard Jupyter Notebooks: For local execution
- Google Colab Notebooks: For online execution (no installation required!)
Learn how to use built-in base models to plot band structures for given crystal structures.
Learn how to train a DeePTB-SK model from scratch using first-principles data.
Advanced training techniques and optimization strategies for DeePTB-SK models.
Learn how to use E3-equivariant neural networks for representing quantum operators.
Advanced applications and use cases of DeePTB models.
- Python 3.10+
- UV package manager (recommended)
# Clone DeePTB repository
git clone https://github.com/deepmodeling/DeePTB.git
cd DeePTB
# Install using UV
uv sync
# Or install using pip
pip install -e .# Clone this repository
git clone https://github.com/DeePTB-Lab/Recipes.git
cd Recipes/deeptb_tutorials/v2.2
# Launch Jupyter
jupyter notebookSimply click the "Open in Colab" badge above any tutorial! The Colab version will:
- ✅ Automatically detect your environment (GPU/CPU)
- ✅ Install DeePTB and all dependencies
- ✅ Download required data files
- ✅ Ready to run in 5-7 minutes
💡 Tip: First-time setup takes 5-7 minutes. Subsequent runs will be faster if you keep the runtime alive.
- Tutorials: Step-by-step guides for using DeePTB
- Data: Example datasets for training and testing
- Scripts: Utility scripts for data processing and conversion
- Automatic environment detection (Colab/Binder/Local)
- Smart CUDA version detection (nvidia-smi → torch → default)
- Fallback installation methods (UV → pip)
- Progress indicators and detailed logging
- Support for repeated execution
- Environment detection
- UV package manager installation
- DeePTB repository cloning
- Dependency installation (PyTorch, torch_scatter, etc.)
- Tutorial data download
- Installation verification
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the LGPL-3.0 License - see the LICENSE file for details.
- DeePTB development team
- DeepModeling community
- All contributors to this repository
Author: Gu, Qiangqiang (顾强强)
Email: [email protected]
Date: 2025-11-21
Version: v2.2