# Uplifting Biomolecular Modeling

> Claude-written inference speedups for 36 open biology models

- Category: Science & Biomedical AI / Protein & Molecular Structure
- Language: Python
- Licence: Apache-2.0 (kit code; each stock/ upstream keeps its own licence)
- Repository: https://github.com/anthropics/uplifting-biomolecular-modeling
- Canonical page: https://ai-tldr.dev/tools/uplifting-biomolecular-modeling/
- Updated: 2026-09-17

## In short

Uplifting Biomolecular Modeling is a collection of 36 inference optimization kits for open-source biology models, published by Anthropic under the Apache-2.0 licence. It sits in the Protein & Molecular Structure category of the Science & Biomedical AI tools and is open-source, written in Python and licensed Apache-2.0 (kit code; each stock/ upstream keeps its own licence).

## Overview

Uplifting Biomolecular Modeling is a collection of 36 inference optimization kits for open-source biology models, published by Anthropic under the Apache-2.0 licence. Each kit targets one upstream project — cofolding and structure prediction, binder design and hallucination, inverse folding, protein language models, or genomics — and adds drop-in speedups you switch on with a mode flag. The optimizations were written by Claude in just under four weeks, supervised by two Anthropic staff with biomolecular expertise and no prior optimization background.

A kit is laid out so you can always check its work. The pinned upstream release sits in a stock/ directory, the kit's own code sits in opt/, and CHANGES.md records what each mode alters. Per-GPU settings live in configs/ as cards you select on the command line, and every kit exposes the same run.sh entry point with install, check and run steps. Environments are pinned: each kit ships a Dockerfile, an Apptainer definition for HPC clusters, and a requirements.lock for a plain Python virtual environment.

The modes are the main interface. off is the unmodified upstream release; exact produces identical outputs about 1.6x faster; fast accepts small numeric differences that stay within normal seed-to-seed variation for roughly 4x; and big minimises peak GPU memory for inputs the other modes cannot hold, splitting one prediction across several GPUs on a host with --n_gpu. Shared CUDA kernels in common/opt_core — FlashPairformer plus triangle-attention and triangle-multiplication kernels — provide most of the gain for the structure-prediction kits.

The repository states that it is not maintained and is a reference release accompanying Anthropic's research post, and it does not accept pull requests. Because each kit pins a specific upstream version, a newer release of an underlying project will not be picked up automatically. Treat the kits as a snapshot to run or to copy optimizations from, rather than a dependency to track.

## What it does

- 36 kits spanning cofolding, structure prediction, binder design, inverse folding, protein language models and genomics
- Four modes per kit: off, exact (identical outputs, ~1.6x), fast (~4x, small numeric differences) and big (lowest peak GPU memory)
- Shared GPU kernels in common/opt_core — FlashPairformer, triangle-attention and triangle-multiplication — reported 2.7-3.2x faster than standard implementations
- big mode models systems above 10,000 tokens on one GPU node, with reported inference past 70,000 tokens, and splits a prediction across GPUs with --n_gpu
- Pinned upstream release kept in each kit's stock/ directory so optimized results can be compared against the original
- Three reproducible setup routes per kit: Docker, Apptainer for HPC clusters, or a pinned Python virtual environment
- Per-GPU config cards (for example h100, a100) selected with --config
- Apache-2.0 kit code; each stock/ upstream stays under its own licence

## Getting started

Every kit follows the same three steps from inside its own directory: install with the weights path, run a dry-run check, then run a command with a config card and a mode.

1. Install a kit

   Change into the kit directory you want — for example boltz2, colabfold or openfold3 — and install it, pointing at the directory holding that kit's model weights.

```bash
cd boltz2
bash run.sh install --weights /weights/boltz2
```

2. Run the dry-run check

   The check command verifies the environment and the weights before you spend GPU time on a real prediction.

```bash
bash run.sh check
```

3. Run with a config and a mode

   Pass the config card matching your GPU and the mode you want. Use exact for outputs identical to the unoptimized release, fast for the largest speedup, or big when the input will not fit in memory otherwise.

```bash
bash run.sh <command> --config h100 --mode fast
```

4. Use a library-style kit

   The library-style kits — enformer, esmc, gpnstar and flashzoi — are enabled through an environment variable in your own script instead of run.sh.

```bash
ENFORMER_OPT=exact python your_script.py
```

5. Or build the container

   Each kit ships a Dockerfile under environment/ if you would rather not pin the stack yourself; run the install, check and run steps inside the container.

```bash
docker build -t boltz2-kit:dev environment/
docker run --rm -it --gpus all boltz2-kit:dev bash
```

## When to use it

- Run more structure predictions or binder designs on a fixed GPU budget by switching an existing pipeline to fast mode
- Model large complexes that do not fit in memory on a stock release, using big mode across several GPUs on one node
- Reproduce an existing result exactly while still running faster, using exact mode's identical outputs
- Copy the FlashPairformer and triangle-attention kernels into another structure-prediction codebase
- Stand up a pinned, reproducible environment for a biology model from the kit's Dockerfile or Apptainer definition

## Version history

- 2026-09-17 Initial release: Anthropic published the repository alongside its research post: 36 inference optimization kits for open biology models, written by Claude in just under four weeks. Reported about 4x average speedup in fast mode and 1.6x with identical outputs in exact mode, plus a new big mode for inputs that previously did not fit in memory.
