Skip to main content

E(n) Equivariant GNN in jax

Reimplementation of EGNN in jax. Original work by Victor Garcia Satorras, Emiel Hogeboom and Max Welling.

Installation

python -m pip install egnn-jax

Or clone this repository and build locally

git clone https://github.com/gerkone/egnn-jax
cd painn-jax
python -m pip install -e .

GPU support

Upgrade jax to the gpu version

pip install --upgrade "jax[cuda]==0.4.10" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html

Validation

N-body (charged) is included for validation from the original paper. Times are model only on batches of 100 graphs, in (global) single precision.

MSE Inference [ms]*
torch (original) .0071 8.27
jax (ours) .0093 0.94

* remeasured (Quadro RTX 4000)

Validation install

The N-Body experiments are only included in the github repo, so it needs to be cloned first.

git clone https://github.com/gerkone/egnn-jax

They are adapted from the original implementation, so additionally torch and torch_geometric are needed (cpu versions are enough).

python -m pip install -r nbody/requirements.txt

Valdation usage

The charged N-body dataset has to be locally generated in the directory /nbody/data.

python -u generate_dataset.py --num-train 3000 --seed 43 --sufix small

Then, the model can be trained and evaluated with

python validate.py --epochs=1000 --batch-size=100 --lr=1e-4 --weight-decay=1e-12

Acknowledgements

This implementation heavily borrows from the original pytorch code.

Metadata

Release files for egnn-jax 0.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 egnn-jax 0.3
File Size Uploaded Provenance Actions
egnn_jax-0.3.tar.gz 5.8 kB Without provenance Details for egnn_jax-0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for egnn-jax 0.3
File Interpreter ABI Platform Actions
egnn_jax-0.3-py3-none-any.whl Python 3 none any Details for egnn_jax-0.3-py3-none-any.whl

Total release size: 12.9 kB

Release files / egnn_jax-0.3.tar.gz

Download URL egnn_jax-0.3.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
143f957f76d79574c6dae476195a1f65e08e82b1f400cc4071ea65e7ea9765b1
BLAKE2b-256 checksum
How to use checksums
d40a0f7274851cb5d07ae73527ae105197f72b14a242f17b3f1aedbb9e1a866f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Release files / egnn_jax-0.3-py3-none-any.whl

Download URL egnn_jax-0.3-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
21abca26b84a7ee9a048444fdcbc6cc54f3833133c26d9ea70d3c9c03f17159b
BLAKE2b-256 checksum
How to use checksums
d39a0a97608371395e01cb5487dfb4b8a8b9468aaf3a8ee6052df3db2bbc0cae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Security for egnn-jax 0.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3 This release

2 release files No provenance

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