Skip to main content

TMol

PyPI version Python versions PyPI downloads CI status Documentation Code coverage License

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

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 installation guide covers requirements, verification, upgrades, and source builds. TMol wheels work across supported PyTorch minor versions; no per-Torch wheel selection is needed.

import torch, tmol
print(tmol.__version__, tmol.has_cuda(), torch.cuda.is_available())

Quick start

Score a structure on CPU. With matching CUDA-enabled PyTorch and TMol operators, use torch.device("cuda"):

import torch
import tmol

device = torch.device("cpu")
pose = tmol.pose_stack_from_file("input.pdb", device)

score_function = tmol.beta2016_score_function(device)
score = score_function.render_whole_pose_scoring_module(pose)
print(score(pose.coords))

See the quickstart for scoring, minimization, repacking, FastRelax, batching, and ligand preparation. The visual glossary explains the concepts, and the score playground lets you rotate a side chain and inspect TMol scores in the browser. The tutorials are runnable notebooks, each also available in Colab.

Development

git clone https://github.com/RosettaCommons/tmol.git
cd tmol
python -m pip install "torch>=2.14" "scikit-build-core>=0.10" "cmake>=3.24,<4" "pybind11>=2.12" ninja packaging
python -m pip install --no-build-isolation -e ".[dev]"

The development guide covers builds, tests, benchmarks, and releases. See the contributor guide for code and documentation conventions, or agent skills for reusable coding-agent instructions.

Citation

If you use TMol in your work, please cite:

Andrew Leaver-Fay*, Kieran Didi*, Jeff Flatten*, Alex Ford, Guangfeng Zhou, Nathaniel Corley, Hahnbeom Park, Maxwell W. Kazman, Rafael I. Brent, Joseph Kleinhenz, Henry Solberg, Andrew M. Watkins, Brian Kuhlman, David Baker, Frank DiMaio, tmol: a GPU-accelerated implementation of the Rosetta energy function for machine learning (manuscript in preparation).

* Core contributor.

TMol is available under the terms in LICENSE.

Metadata

Release files for tmol 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tmol 0.3.0
File Size Uploaded Provenance Actions
tmol-0.3.0.tar.gz 64.1 MB Without provenance Details for tmol-0.3.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for tmol 0.3.0
File Actions
tmol-0.3.0-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details for tmol-0.3.0-cp314-cp314-manylinux_2_28_x86_64.whl
tmol-0.3.0-cp314-cp314-manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ ARM64 Details for tmol-0.3.0-cp314-cp314-manylinux_2_28_aarch64.whl
tmol-0.3.0-cp314-cp314-macosx_14_0_arm64.whl CPython 3.14 CPython 3.14 macOS 14.0+ ARM64 Details for tmol-0.3.0-cp314-cp314-macosx_14_0_arm64.whl
tmol-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details for tmol-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl
tmol-0.3.0-cp313-cp313-manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ ARM64 Details for tmol-0.3.0-cp313-cp313-manylinux_2_28_aarch64.whl
tmol-0.3.0-cp313-cp313-macosx_14_0_arm64.whl CPython 3.13 CPython 3.13 macOS 14.0+ ARM64 Details for tmol-0.3.0-cp313-cp313-macosx_14_0_arm64.whl
tmol-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for tmol-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl
tmol-0.3.0-cp312-cp312-manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64 Details for tmol-0.3.0-cp312-cp312-manylinux_2_28_aarch64.whl
tmol-0.3.0-cp312-cp312-macosx_14_0_arm64.whl CPython 3.12 CPython 3.12 macOS 14.0+ ARM64 Details for tmol-0.3.0-cp312-cp312-macosx_14_0_arm64.whl
tmol-0.3.0-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details for tmol-0.3.0-cp311-cp311-manylinux_2_28_x86_64.whl
tmol-0.3.0-cp311-cp311-manylinux_2_28_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ ARM64 Details for tmol-0.3.0-cp311-cp311-manylinux_2_28_aarch64.whl
tmol-0.3.0-cp311-cp311-macosx_14_0_arm64.whl CPython 3.11 CPython 3.11 macOS 14.0+ ARM64 Details for tmol-0.3.0-cp311-cp311-macosx_14_0_arm64.whl

Total release size: 272.4 MB

Release files / tmol-0.3.0.tar.gz

Download URL tmol-0.3.0.tar.gz
Size 64.1 MB
Tags Source
SHA-256 checksum
How to use checksums
57c0b8e75a22383d59e94072de24c5681f3c471dc008b541143a5a7d8b67b238
BLAKE2b-256 checksum
How to use checksums
fdd67ae0a6968f2cfda47e7355a992ff971117f11e8d45585b8602d01fcfcecf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / tmol-0.3.0-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL tmol-0.3.0-cp314-cp314-manylinux_2_28_x86_64.whl
Size 17.4 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
adc44f737a7f20b0a2810cc848b19ac9357c6701611022c1707ce3591a382969
BLAKE2b-256 checksum
How to use checksums
e39890c774ecf0a9cba18623ad320752d34cdc72d068321a618a574ef80bf0aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / tmol-0.3.0-cp314-cp314-manylinux_2_28_aarch64.whl

Download URL tmol-0.3.0-cp314-cp314-manylinux_2_28_aarch64.whl
Size 17.3 MB
Tags CPython 3.14 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
66015880073d9413c491d40f0534ef142def5de694b05d4bdfe5ac95310d0597
BLAKE2b-256 checksum
How to use checksums
92dbfe5762b855decb6552bc441e491eb10b73f7b25bc5fa955640eaa83db4ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / tmol-0.3.0-cp314-cp314-macosx_14_0_arm64.whl

Download URL tmol-0.3.0-cp314-cp314-macosx_14_0_arm64.whl
Size 17.5 MB
Tags CPython 3.14 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
c75c8042ba89d1b121afb1f32a915270c59a11616d1df2b7cc733bf17c8357c1
BLAKE2b-256 checksum
How to use checksums
ba2a7e9b2d1874318fe512ce0f300fa4a825b4b2d270538c2d073e3d127c1148
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / tmol-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL tmol-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl
Size 17.4 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
4c3907a788bdfb2cf1ce973139712e71e12ae913fa2c32b8c5304ed2d5b89876
BLAKE2b-256 checksum
How to use checksums
192e71412526c5888b9586b33ed13cf49efe9b704f616eac2644aa74a6c25986
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / tmol-0.3.0-cp313-cp313-manylinux_2_28_aarch64.whl

Download URL tmol-0.3.0-cp313-cp313-manylinux_2_28_aarch64.whl
Size 17.3 MB
Tags CPython 3.13 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
e4345d3ab05030f050ed3a2e38b202fd13fd1f34d3eb8f38d19c4c6314fe87bf
BLAKE2b-256 checksum
How to use checksums
fee2e06b5e6b5ad066ee0f94ca9bd5450966f3641cbb50c3b65d6001d342110c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / tmol-0.3.0-cp313-cp313-macosx_14_0_arm64.whl

Download URL tmol-0.3.0-cp313-cp313-macosx_14_0_arm64.whl
Size 17.5 MB
Tags CPython 3.13 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
3adad1a5652ad293b2fd4b103f9250a0b773bb38cd085cdb5d21a0fe5b0ceda7
BLAKE2b-256 checksum
How to use checksums
b30d94600ce8a2e1e1a5c90f72931ebb83644f7d41ecc15496279308df62b8c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / tmol-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL tmol-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl
Size 17.4 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
6e46abd15877427f912716649a3c637d490a4b1c33f1b7a22a87e85f566048cd
BLAKE2b-256 checksum
How to use checksums
649e3ff995c909c5cc93e65c63f91ec0b5cb4359b0f15b6442d2f252274e8317
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / tmol-0.3.0-cp312-cp312-manylinux_2_28_aarch64.whl

Download URL tmol-0.3.0-cp312-cp312-manylinux_2_28_aarch64.whl
Size 17.3 MB
Tags CPython 3.12 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
ce944700d30ffdc9b6cf973a7b0e2d768889fc8eea391f692398412161b78878
BLAKE2b-256 checksum
How to use checksums
0f6c79f826a66da70700aa623c1167ae6ad0cb07fd24fb35d1e6dd2399d67843
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / tmol-0.3.0-cp312-cp312-macosx_14_0_arm64.whl

Download URL tmol-0.3.0-cp312-cp312-macosx_14_0_arm64.whl
Size 17.5 MB
Tags CPython 3.12 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
82aa953a6a13f805d07dd2b21b135cf36eac514e5d227054c6bbfab7f7ea062a
BLAKE2b-256 checksum
How to use checksums
2d1c676dce599365e04009171831bcc9f61909c2a4907e40d7d2a80a4387231b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / tmol-0.3.0-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL tmol-0.3.0-cp311-cp311-manylinux_2_28_x86_64.whl
Size 17.4 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
5fb35ff18235219e5a5bfe06be9e7dbd65513a5118ee25867e380c71e2994e28
BLAKE2b-256 checksum
How to use checksums
5d8adf1d4cf6025ef282bb9cf005c2e4c60e5d853e25dd66613c39c1441a5bf7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / tmol-0.3.0-cp311-cp311-manylinux_2_28_aarch64.whl

Download URL tmol-0.3.0-cp311-cp311-manylinux_2_28_aarch64.whl
Size 17.3 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
a9219f744f884fbcdb45c1e7784fcbd2b9d1bbc4a99507c17cdeab329b0cdfaf
BLAKE2b-256 checksum
How to use checksums
9e86b0ad776a67de9d47e8e31789b3988be814fe91b6a915c07715c87f243c8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / tmol-0.3.0-cp311-cp311-macosx_14_0_arm64.whl

Download URL tmol-0.3.0-cp311-cp311-macosx_14_0_arm64.whl
Size 17.4 MB
Tags CPython 3.11 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
30df282c9c8af286697ab345bdeb3a8d55685cb2648860cf5b7e1bd321d73634
BLAKE2b-256 checksum
How to use checksums
54c309f251c09c6b68d54a1820b22c087a67beb26627fa0bcfef1858d91195e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for tmol 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page