Skip to content
 
 

Repository files navigation

Enhancing geometric representations for molecules with equivariant vector-scalar interactive message passing

Overview

ViSNet (shorted for “Vector-Scalar interactive graph neural Network”) is an equivariant geometry-enhanced graph neural for molecules that significantly alleviate the dilemma between computational costs and sufficient utilization of geometric information.

News

Jan 2024

Aug 2023

Nov 2022

Environments

  • Clone this repository

  • Install the dependencies

conda create -y -n visnet python=3.9
conda activate visnet
conda install pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 cudatoolkit=11.3 -c pytorch
conda install pyg==2.1.0 -c pyg
pip install pytorch-lightning==1.8.0
pip install ase ase[test] ogb

Getting started

To train ViSNet on MD17, just run:

CUDA_VISIBLE_DEVICES=0 python train.py --conf examples/ViSNet-MD17.yml --dataset-arg aspirin --dataset-root /path/to/data --log-dir /path/to/log

One can modify the dataset-arg to train another molecule like ethanol.

To train ViSNet on QM9, just run:

CUDA_VISIBLE_DEVICES=0 python train.py --conf examples/ViSNet-QM9.yml --dataset-arg energy_U0 --dataset-root /path/to/data --log-dir /path/to/log

One can modify the dataset-arg to train another property like energy_U.

We have also provided example training configuration files for other datasets within the examples, which can be used in a similar way.

Inference

Once ViSNet is trained, to use a pretrained checkpoint for inference, simply run:

CUDA_VISIBLE_DEVICES=0 python train.py --conf examples/ViSNet-MD17.yml --dataset-arg aspirin --dataset-root /path/to/data --log-dir /path/to/log --task inference --load-model /path/to/ckpt
CUDA_VISIBLE_DEVICES=0 python train.py --conf examples/ViSNet-QM9.yml --dataset-arg energy_U0 --dataset-root /path/to/data --log-dir /path/to/log --task inference --load-model /path/to/ckpt

Contact

Please contact Tong Wang (Project Lead) for technical support.

License

This project is licensed under the terms of the MIT license.

About

AI-powered ab initio biomolecular dynamics simulation

Resources

Code of conduct

Security policy

Stars

580 stars

Watchers

9 watching

Forks

Releases

Packages

Used by

Contributors

Languages