GPU-accelerated PyTorch reimplementation of the Rosetta energy function
Actively maintained. Last release 3 weeks ago, commits in 22 of the last 26 weeks. A safe choice.
pip install tmol
TMol provides all-atom scoring, packing, minimization, and FastRelax in PyTorch. It batches proteins, nucleic acids, ligands, and complexes on CPU or CUDA, with gradients through coordinate scoring. On Apple silicon, CPU runs move their heaviest work onto the GPU automatically.
Documentation · Tutorials · API reference
Install
TMol 1.0 requires Python 3.12+ and PyTorch 2.11+. Install from PyPI. For GPU use, first install PyTorch with the matching CUDA major, then choose one command:
python -m pip install tmol # CPU, including Apple Silicon
python -m pip install "tmol[cu12]" # CUDA 12-enabled PyTorch
python -m pip install "tmol[cu13]" # CUDA 13-enabled PyTorch
The base package contains the Python API, data, and CPU kernels. GPU extras add
tmol-ops-cu12 or tmol-ops-cu13 at the same version. GPU use also needs a
compatible NVIDIA driver; pip does not detect GPUs or select a PyTorch CUDA build.
The
covers requirements, verification, upgrades, and source builds. TMol wheels work
across supported PyTorch minor versions; no per-Torch wheel selection is needed.