Skip to main content

NEP自动训练

Project description

PyPI Downloads Requires Python 3.10+

Installation

You can install it via pip:

pip install NepTrain

If you want to use the latest changes from the main branch, you can install it directly from GitHub:

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

Community Support

Software Architecture

It is recommended to use Python 3.10 or higher. Older versions might cause type errors. We also recommend using GPUMD version 3.9.5 or higher.

Usage

Modify the vim ~/.NepTrain file to change the pseudopotential file path. If this file doesn't exist, simply run NepTrain init once to generate it.

Creating Training Set (Optional)

Generate a perturbation training set for structures or structure files.

For example, apply a 0.03 lattice distortion and 0.1 atomic perturbation:

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

1. Initialization

First, initialize NepTrain. This will create a submission script in the current directory:

NepTrain init

3. Submit Job

After modifying the submission script and job configuration, you can submit the job by running the following command on a login node:

NepTrain train job.yaml

For running the job in the background, use nohup

nohup NepTrain train job.yaml &

If the job is interrupted, there will be a restart.yaml file in the directory. To resume the job, run:

NepTrain train restart.yaml

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.7.0.tar.gz (290.4 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: neptrain-1.7.0.tar.gz
  • Upload date:
  • Size: 290.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for neptrain-1.7.0.tar.gz
Algorithm Hash digest
SHA256 e93fdd36919a9636a52dfe72d38ea121c7175f831b897143f7ddafc8b9b3b3c8
MD5 49bea18344a194d7c28f819c180144c4
BLAKE2b-256 c9ac5bfa92845a9a21dc89bf68dbe93f9d197fc2acfd11b8c1f4e43f041e3534

See more details on using hashes here.

Provenance

The following attestation bundles were made for neptrain-1.7.0.tar.gz:

Publisher: python-publish.yml on aboys-cb/NepTrain

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