Skip to main content

Equivariant convolutional neural networks for the group E(3) of 3 dimensional rotations, translations, and mirrors.

Project description

e3nn-jax Coverage Status

:rocket: 44% faster than pytorch*

*Speed comparison done with a full model (MACE) during training (revMD-17) on a GPU (NVIDIA RTX A5000)

Documentation Documentation Status

:boom: Warning :boom:

Please always check the ChangeLog for breaking changes.

Installation

To install the latest released version:

pip install --upgrade e3nn-jax

To install the latest GitHub version:

pip install git+https://github.com/e3nn/e3nn-jax.git

To install from a local copy for development, we recommend creating a virtual enviroment:

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

To check that the tests are running:

pip install pytest
pytest e3nn_jax/_src/tensor_products_test.py

What is different from the PyTorch version?

  • No more shared_weights and internal_weights in TensorProduct. Extensive use of jax.vmap instead (see example below)
  • Support of python structure IrrepsArray that contains a contiguous version of the data and a list of jnp.ndarray for the data. This allows to avoid unnecessary jnp.concatenante followed by indexing to reverse the concatenation (even that jax.jit is probably able to unroll the concatenations)
  • Support of None in the list of jnp.ndarray to avoid unnecessary computation with zeros (basically imposing 0 * x = 0, which is not simplified by default by jax because 0 * nan = nan)

Examples

The examples are moved in the documentation.

Citing

@misc{e3nn_paper,
    doi = {10.48550/ARXIV.2207.09453},
    url = {https://arxiv.org/abs/2207.09453},
    author = {Geiger, Mario and Smidt, Tess},
    keywords = {Machine Learning (cs.LG), Artificial Intelligence (cs.AI), Neural and Evolutionary Computing (cs.NE), FOS: Computer and information sciences, FOS: Computer and information sciences}, 
    title = {e3nn: Euclidean Neural Networks},
    publisher = {arXiv},
    year = {2022},
    copyright = {Creative Commons Attribution 4.0 International}
}

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

e3nn_jax-0.17.3.tar.gz (116.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

e3nn_jax-0.17.3-py3-none-any.whl (144.7 kB view details)

Uploaded Python 3

File details

Details for the file e3nn_jax-0.17.3.tar.gz.

File metadata

  • Download URL: e3nn_jax-0.17.3.tar.gz
  • Upload date:
  • Size: 116.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for e3nn_jax-0.17.3.tar.gz
Algorithm Hash digest
SHA256 26a02570ac84c7707eeb793d2c674a2d083f7c3ac68c2a8cba109590a78a0978
MD5 1906134938bce7982ab98a1d1d7dae89
BLAKE2b-256 1a412494a4f6597ed336131f839e0ecfa2625054902700516827825298c3fd68

See more details on using hashes here.

File details

Details for the file e3nn_jax-0.17.3-py3-none-any.whl.

File metadata

  • Download URL: e3nn_jax-0.17.3-py3-none-any.whl
  • Upload date:
  • Size: 144.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for e3nn_jax-0.17.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5357580eb614ffb9d9dd1550ebfcc44b1064f59c48ed61f70f2c7bc8ff4d0982
MD5 a41f5ecd4a19d514f28489330e961cd6
BLAKE2b-256 b5a66061dba9e87d61d3cdd073d4089ddfd7068a4d7fd65124d93cb3df0a3b92

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