Graphium: Scaling molecular GNNs to infinity.
Project description
Scaling molecular GNNs to infinity
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 -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.
- Diagram for Muti-task network in molGPS
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file graphium-2.0.1.tar.gz.
File metadata
- Download URL: graphium-2.0.1.tar.gz
- Upload date:
- Size: 2.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5805485ad38a7f95f55037b9fd5b4e47510f4c268dbf3a57236739e2c9acf1ba
|
|
| MD5 |
ad9a1f7fd663e88cfe8ffa45ca5ad25c
|
|
| BLAKE2b-256 |
872905754f564be1f113fdb1e4d96792adba32e3c2fbf5a121a5907f55c8991f
|
File details
Details for the file graphium-2.0.1-py3-none-any.whl.
File metadata
- Download URL: graphium-2.0.1-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.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a9763fdcbd9d4883f872c8bbbb261f02e2ea4b18724166a1a5f786298672898
|
|
| MD5 |
db308715424cb50b95f7debfc8486adf
|
|
| BLAKE2b-256 |
894565886191ac9871ff28cea619a5d9643c9d36e6f4a6331502374bc5292de1
|