NEP
Model Introduction
NEP (Neural Evolution Potential) is a MatPL-based neural-network potential training example that learns material interaction information, including energies, forces, and virials, from atomic-structure data.
Model Description
NEP is built on the MatPL framework and trained with data from atomic systems such as Cu and LiSiC. It supports interatomic-potential training and molecular dynamics simulations for materials systems.
Use Cases
| Use case | Description |
|---|---|
| NEP training for Cu systems | Train a Cu potential with demo/nep_Cu/Cu_nep_train.json |
| NEP training for LiSiC systems | Train a LiSiC potential with demo/nep_LiSiC/LiSiC_nep_train.json |
| SLURM job submission | See demo/nep_Cu/submit.sh for cluster training |
| Custom data migration | Convert your data to a MatPL-supported format such as pwmat/movement, then replace the training path |
Usage
1. Using OneCode
Try intelligent, one-click AI4S programming in the OneCode online environment:
Try intelligent, one-click AI4S programming
2. Manual Installation and Usage
Hardware requirements
- A DCU or GPU is recommended for training.
- A CPU can be used for import checks and small-configuration connectivity tests, but full training will be slow.
- DCU users must install DTK in advance. DTK 25.04.2 or later, or the OneScience-recommended version matching the current cluster, is recommended.
Download the Model Package
hf download OneScience-Group/NEP
cd nep
Install the Runtime Environment
DCU environment
# Activate DTK and conda first
conda create -n onescience311 python=3.11 -y
conda activate onescience311
# uv installation is also supported
pip install onescience[matchem-dcu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai
GPU environment
# Activate conda first
conda create -n onescience311 python=3.11 -y libstdcxx-ng=12 libgcc-ng=12 gcc_linux-64=12 gxx_linux-64=12
conda activate onescience311
# uv installation is also supported
pip install onescience[matchem-gpu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai
Install MatPL
# The test_pip environment is used by default. To use another conda environment:
# export MATCHEM_CONDA_NAME=your_env
bash matpl_install.sh
Training Data
Training data is not bundled with this repository. Using the MatPL dataset as an example, download it from Hugging Face to data/ in the repository root:
hf download OneScience-Group/MatPL --repo-type dataset
After downloading, the data is located at data/MatPL/.
Training
Single GPU:
cd demo/nep_Cu
MatPL train Cu_nep_train.json
SLURM:
cd demo/nep_Cu
bash submit.sh
Trained Weights
This repository does not currently include trained weights. You can obtain them by following the training procedure above.
Official OneScience Resources
| Platform | OneScience Main Repository | Skills Repository |
|---|---|---|
| Gitee | https://gitee.com/onescience-ai/onescience | https://gitee.com/onescience-ai/oneskills |
| GitHub | https://github.com/onescience-ai/OneScience | https://github.com/onescience-ai/oneskills |
Citation and License
- The NEP example code comes from the OneScience repository. This repository retains source attribution and has been organized for automated execution in the OneScience Hugging Face environment.
- If you use NEP or MatPL training results in research, please cite the relevant OneScience projects, MatPL/NEP methods, and the datasets used.
中文说明
模型简介
NEP(Neural Evolution Potential)是基于 MatPL 的神经网络势函数训练示例,从原子结构数据中学习材料相互作用信息,包括能量、力和维里量。
模型描述
NEP 基于 MatPL 框架,使用 Cu 和 LiSiC 等原子体系的数据训练,支持材料体系的原子间势函数训练和分子动力学模拟。
使用场景
| 使用场景 | 说明 |
|---|---|
| Cu 体系的 NEP 训练 | 使用 demo/nep_Cu/Cu_nep_train.json 训练 Cu 势函数 |
| LiSiC 体系的 NEP 训练 | 使用 demo/nep_LiSiC/LiSiC_nep_train.json 训练 LiSiC 势函数 |
| 提交 SLURM 作业 | 集群训练参见 demo/nep_Cu/submit.sh |
| 自定义数据迁移 | 将数据转换为 MatPL 支持的格式,例如 pwmat/movement,然后替换训练路径 |
使用方法
1. 使用 OneCode
在 OneCode 在线环境中体验智能一键 AI4S 编程。
2. 手动安装与使用
硬件要求
- 建议使用 DCU 或 GPU 进行训练。
- 可使用 CPU 进行导入检查和小配置连通性测试,完整训练会较慢。
- DCU 用户必须提前安装 DTK。建议使用 DTK 25.04.2 或更高版本,或使用 OneScience 推荐的与当前集群匹配的版本。
下载模型包
hf download OneScience-Group/NEP
cd nep
安装运行环境
DCU 环境
# Activate DTK and conda first
conda create -n onescience311 python=3.11 -y
conda activate onescience311
# uv installation is also supported
pip install onescience[matchem-dcu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai
GPU 环境
# Activate conda first
conda create -n onescience311 python=3.11 -y libstdcxx-ng=12 libgcc-ng=12 gcc_linux-64=12 gxx_linux-64=12
conda activate onescience311
# uv installation is also supported
pip install onescience[matchem-gpu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai
安装 MatPL
# The test_pip environment is used by default. To use another conda environment:
# export MATCHEM_CONDA_NAME=your_env
bash matpl_install.sh
训练数据
本仓库未随附训练数据。以 MatPL 数据集为例,可从 Hugging Face 下载至仓库根目录下的 data/。
hf download OneScience-Group/MatPL --repo-type dataset
下载后,数据位于 data/MatPL/。
训练
单 GPU
cd demo/nep_Cu
MatPL train Cu_nep_train.json
SLURM
cd demo/nep_Cu
bash submit.sh
训练权重
本仓库目前未包含已训练权重。可按上述训练流程获得这些权重。
OneScience 官方资源
| 平台 | OneScience 主仓库 | Skills 仓库 |
|---|---|---|
| Gitee | https://gitee.com/onescience-ai/onescience | https://gitee.com/onescience-ai/oneskills |
| GitHub | https://github.com/onescience-ai/OneScience | https://github.com/onescience-ai/oneskills |
引用与许可证
- NEP 示例代码来自 OneScience 仓库。本仓库保留来源署名,并已组织为可在 OneScience Hugging Face 环境中自动运行的形式。
- 如果在研究中使用 NEP 或 MatPL 的训练结果,请引用相关 OneScience 项目、MatPL/NEP 方法和所用数据集。
- Downloads last month
- 7