Skip to content

rxn4chemistry/MultimodalAnalytical

Repository files navigation

Analytical Foundation Models

This repository contains the official implementation of the results shown in:

It provides the complete codebase needed to reproduce our results and train models on spectra obtained via IR and NMR spectroscopy. The framework is build on PyTorch, PyTorch Lightning and Hugginface. To install it follow the instructions below.

Installation

To install the code base ensure that you have at least Python 3.10 installed. Then follow the steps below. Typically installation takes less than two minutes.

pip install uv
uv pip install -e .
uv pip install -e .[dev]

Usage

An example to train a model is provided in scripts/train_model.sh. The parameters present need to changed according to the desired settings. To change the data for the training the config, column, modality, ... parameters need to be changed. As an example to change the column in the datafile the IR spectra are drawn from change the following parameters. However, we recommended to follow the instructions in the paper replication guides. data.IR.column=ir_spectra \

Replication

Complete instructions for reproducing the results presented in our papers are provided in the papers folder. These documents contains step-by-step guidance, including data preparation, model training parameters, and evaluation procedures to replicate our experiments.

About

Predicting molecular structure from multimodal spectroscopic data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •