Skip to main content

We aim to provide a powerful library for the training of atomistic (or physical point-cloud) machine learning. We want entry-level users to be able to efficiently train models to millions of datapoints, and a modular structure for extensions and contribution.

While hippynn’s development so-far has centered around the HIP-NN architecture, don’t let that discourage you if you are performing research with another model. Get in touch, and let’s work together to provide a high-quality implementation of your work, either as a contribution or an interface extension to your own package.

Features:

Modular set of pytorch layers for atomistic operations

  • Atomistic operations can be tricky to write in native pytorch. Most operations provided here support linear-scaling models.

  • Model energy, force charge & charge moments, bond orders, and more!

  • nn.Modules are written with minimal reference to the rest of the library; if you want to use them in your scripts without using the rest of the features provided here – no problem!

Graph level API for simple and flexible construction of models from pytorch components.

  • Build models based on the abstract physics/mathematics of the problem, without having to think about implementation details.

  • Graph nodes support native python syntax, for example different forms of loss can be directly added.

  • Link predicted values in the model with a database entry to compare predicted and true values

  • IndexType logic records metadata about tensor structure, and provides automatic conversion to compatible structures when possible.

  • Graph API is independent of module implementation.

Plot level API for tracking your training.

  • Using the graph API, define quantities to evaluate before, during, or after training as figures using matplotlib.

Training & Experiment API

  • Integrated with graph level API

  • Pretty-printing loss metrics, generating plots periodically

  • Callbacks and checkpointing

Custom Kernels for fast execution

  • Certain operations are not efficiently written in pure pytorch, we provide alternative implementations with numba and cupy

  • These are directly linked in with pytorch Autograd – use them like native pytorch functions.

  • These provide advantages in memory footprint and speed

  • Includes CPU and GPU execution for custom kernels

Interfaces to other codes

  • ASE: Define ASE calculators based on the graph-level API.

  • PYSEQM: Use PYSEQM calculations as nodes in a graph.

  • LAMMPS: Use models from hippynn in LAMMPS via the MLIAP Unified interface.

Installation Instructions

We recommend installation from source, although you can also get hippynn from conda and pypi, see below. A base installation of hippynn only requires pytorch (installation instructions) and numpy (installation instructions). We recommend you install these first using your package manager of choice, then proceed to install hippynn.

Install hippynn from source:

For detailed instructions, see the documentation section on installation.

Clone the hippynn repository and navigate into it, e.g.:

$ git clone https://github.com/lanl/hippynn.git
$ cd hippynn
$ pip install -e .

The -e specifies an editable install, that is, python will import hippynn from the current directory, which will allow you to tinker with hippynn if you so choose.

If numpy and pytorch are not currently installed, this command will install them using pip.

Once hippynn is installed, you can proceed to add optional packages as needed for various extended functionality.

Documentation

Please see https://lanl.github.io/hippynn/ for the latest documentation. You can also build the documentation locally, see /docs/README.txt

Other things

We are currently under development. At the moment you should be prepared for breaking changes – keep track of what version you are using if you need to maintain consistency.

As we clean up the rough edges, we are preparing a manuscript. If, in the mean time, you are using hippynn in your work, please cite this repository and the HIP-NN paper:

Lubbers, N., Smith, J. S., & Barros, K. (2018). Hierarchical modeling of molecular energies using a deep neural network. The Journal of chemical physics, 148(24), 241715.

See AUTHORS.txt for information on authors.

See LICENSE.txt for licensing information. hippynn is licensed under the BSD-3 license. See COPYRIGHT.txt for copyright information.

Triad National Security, LLC (Triad) owns the copyright to hippynn, which it identifies as project number LA-CC-19-093.

Copyright 2019. Triad National Security, LLC. All rights reserved. This program was produced under U.S. Government contract 89233218CNA000001 for Los Alamos National Laboratory (LANL), which is operated by Triad National Security, LLC for the U.S. Department of Energy/National Nuclear Security Administration. All rights in the program are reserved by Triad National Security, LLC, and the U.S. Department of Energy/National Nuclear Security Administration. The Government is granted for itself and others acting on its behalf a nonexclusive, paid-up, irrevocable worldwide license in this material to reproduce, prepare derivative works, distribute copies to the public, perform publicly and display publicly, and to permit others to do so.

Metadata

Release files for hippynn 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hippynn 0.1.3
File Size Uploaded
hippynn-0.1.3.tar.gz 225.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hippynn 0.1.3
File Interpreter ABI Platform
hippynn-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 481.3 kB

Release files / hippynn-0.1.3.tar.gz

Download URL hippynn-0.1.3.tar.gz
Size 225.3 kB
Tags Source
SHA-256 checksum
How to use checksums
87e10de2e0db01280ac9001720e5c2e4feeed6f3487f98763af2c2126e1bcd4a
BLAKE2b-256 checksum
How to use checksums
a58013840fe366599d1f0f0f561233216e08a122be0ae916bd8f25ea128c3e54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 16, 2025.

Transparency log

Release files / hippynn-0.1.3-py3-none-any.whl

Download URL hippynn-0.1.3-py3-none-any.whl
Size 256.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3b277ae1fd685bde2fc4ea514e6fc90de71267980c8f269f447444d8db7b654
BLAKE2b-256 checksum
How to use checksums
22bbc06f47ddb4f1dbd1ecd2d2b7a7a8bf31713c618472ba5e7473faf7dcd136
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 16, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page