Skip to main content

NEP自动训练

Project description

PyPI Downloads Requires Python 3.10+

安装

可以通过pip安装:

pip install NepTrain

如果你想在主分支上使用最新未发布的更改,你可以直接从GitHub安装:

pip install -U git+https://github.com/aboys-cb/NepTrain

社区支持

软件架构

建议使用 Python 3.10 以上版本。旧版本可能会报错类型错误。 推荐使用GPUMD3.9.5以上的版本。

使用方式

修改vim ~/.NepTrain 修改赝势文件路径, 如果没有这个文件,请任意执行一次NepTrain init

制作训练集(可选)

针对结构或者结构文件生成微扰训练集

0.03的晶格形变+0.1的原子扰动

NepTrain perturb ./structure/Cs16Ag8Bi8I48.vasp --num 2000 --cell 0.03 -d 0.1  
NepTrain select perturb.xyz -max 100  

1. 初始化

首先先初始化下 会在当前目录下创建提交脚本

NepTrain init

3. 提交任务

在修改提交脚本以及任务配置后,在登陆节点运行以下命令即可

NepTrain train job.yaml

如果是后台运行 配合nohup即可

nohup NepTrain train job.yaml &

如果中途出现异常停止了,目录下有一个restart.yaml 执行以下命令即可

NepTrain train restart.yaml

以下是单独使用部分功能的命令demo

  • 很多参数都是默认的可通过-h查看 比如NepTrain vasp -h

计算VASP单点能

NepTrain vasp demo.xyz -np 64 -g --kpoints 20  

如果想修改执行目录 输出目录 以及指定incar 参考以下命令

NepTrain vasp demo.xyz -np 64 --directory ./cache -g --incar=./INCAR --kpoints 20 -o ./result/result.xyz

执行主动学习

对./structure的结构跑300k、500k 10ps的md

NepTrain gpumd ./structure  -t 10 -T 300 500

更多细节参数执行NepTrain gpumd -h

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

neptrain-1.5.1.tar.gz (284.8 kB view details)

Uploaded Source

File details

Details for the file neptrain-1.5.1.tar.gz.

File metadata

  • Download URL: neptrain-1.5.1.tar.gz
  • Upload date:
  • Size: 284.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for neptrain-1.5.1.tar.gz
Algorithm Hash digest
SHA256 fe6aaa22823c6e61401b658f3c320969a0bf8c83a95ab3edc97c4c8ee5644bec
MD5 a8f36559daa79accce97eebf4788bb84
BLAKE2b-256 0a2fa35201dc36be52ed02f3a8cbb9044795db2392ee07e102d2adb4e90b14c7

See more details on using hashes here.

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