Skip to main content

Graphium: Scaling molecular GNNs to infinity.

Project description

Scaling molecular GNNs to infinity


test release code-check doc

A deep learning library focused on graph representation learning for real-world chemical tasks.

  • ✅ State-of-the-art GNN architectures.
  • 🐍 Extensible API: build your own GNN model and train it with ease.
  • ⚗️ Rich featurization: powerful and flexible built-in molecular featurization.
  • 🧠 Pretrained models: for fast and easy inference or transfer learning.
  • ⮔ Read-to-use training loop based on Pytorch Lightning.
  • 🔌 Have a new dataset? Graphium provides a simple plug-and-play interface. Change the path, the name of the columns to predict, the atomic featurization, and you’re ready to play!

Documentation

Visit https://graphium-docs.datamol.io/.

Installation for developers

For CPU and GPU developers

Use mamba:

# Install Graphium's dependencies in a new environment named `graphium`
mamba env create -f env.yml -n graphium

# Install Graphium in dev mode
mamba activate graphium
pip install --no-deps -e .

For IPU developers

mkdir ~/.venv                               # Create the folder for the environment
python3 -m venv ~/.venv/graphium_ipu        # Create the environment
source ~/.venv/graphium_ipu/bin/activate    # Activate the environment

# Installing the poptorch SDK. Make sure to change the path
pip install PATH_TO_SDK/poptorch-3.2.0+109946_bb50ce43ab_ubuntu_20_04-cp38-cp38-linux_x86_64.whl

# Activate poplar SDK.
source PATH_TO_SDK/enable

# Install the IPU specific and graphium requirements
PACKAGE_NAME=pytorch pip install -r requirements_ipu.txt

# Install Graphium in dev mode
pip install --no-deps -e .

Training a model

To learn how to train a model, we invite you to look at the documentation, or the jupyter notebooks available here.

If you are not familiar with PyTorch or PyTorch-Lightning, we highly recommend going through their tutorial first.

License

Under the Apache-2.0 license. See LICENSE.

Documentation

  • Diagram for data processing in molGPS.
Data Processing Chart
  • Diagram for Muti-task network in molGPS
Full Graph Multi-task Network

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graphium-2.0.2.tar.gz (2.9 MB view details)

Uploaded Source

Built Distribution

graphium-2.0.2-py3-none-any.whl (866.8 kB view details)

Uploaded Python 3

File details

Details for the file graphium-2.0.2.tar.gz.

File metadata

  • Download URL: graphium-2.0.2.tar.gz
  • Upload date:
  • Size: 2.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for graphium-2.0.2.tar.gz
Algorithm Hash digest
SHA256 cbb9593ac8b60c96d60a1df3fca3405c76aae243d34007b4372cf3f02bfa5173
MD5 24210e0d13ad1b6bad01509263955531
BLAKE2b-256 8a7427082a39c4b0d81dafd7731b44262de67f5ef8eb40f3553c3c5e4e8c3577

See more details on using hashes here.

File details

Details for the file graphium-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: graphium-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 866.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for graphium-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c79626381b51b2ff00c4fc42b272a2a833df5464d7c6c671b1b8eb80f0f4d8ef
MD5 23e240bc68e8042947ef19e0ffa33d28
BLAKE2b-256 f16f7296f7f90cb22f3216fa2a0df5e102af96bf5d34d00438aae14980df2692

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page