Transferable Generative Models Bridge Femtosecond to Nanosecond Time-Step Molecular Dynamics
October 28, 2025 ยท View on GitHub
Inference
To sample a trajetory with 1 ns timesteps for a molecule in a pdb file with TITO, run:
python scripts/sample.py --pdb_path inference_files/test_mol.pdb --model_path inference_files/mdqm9.ckpt --data_set mdqm9 --data_path /proj/berzelius-2025-189/datasets/mdqm9/ --lag 1000 --nested_samples 10 --batch_size 1
Training
To train a TITO model, run:
python scripts/train.py --dataset <mdqm9 or timewarp> --data_path <path to dataset> --epochs <number_of_epochs>
Installation
For the environment installation, first create an environment with python 3.11:
mamba create -n tito python=3.11
Then run:
mamba activate tito
uv pip install -e .
uv pip install torch==2.5.0 --index-url https://download.pytorch.org/whl/cu121
uv pip install torch_scatter torch_sparse torch_cluster -f https://data.pyg.org/whl/torch-2.5.0+cu121.html
uv pip install lightning torch_geometric
Dataset pre-processing
Small molecules
Download the mdqm9-nc dataset from this link. The h5 file, sdf file and splits need to be in the same directory.
Timewarp
Download the Timewarp dataset using scripts/preprocessing/download_timewarp.py and pre-process it with scripts/preprocessing/timewarp_to_h5.py.
Paper
This repository contains code to reproduce the results from:
@misc{https://doi.org/10.48550/arxiv.2510.07589,
doi = {Diez2025},
url = {https://arxiv.org/abs/2510.07589},
author = {Diez, Juan Viguera and Schreiner, Mathias and Olsson, Simon},
title = {Transferable Generative Models Bridge Femtosecond to Nanosecond Time-Step Molecular Dynamics},
publisher = {arXiv},
year = {2025},
copyright = {Creative Commons Attribution 4.0 International}
}