Skip to main content

Protein design with Foundry

Foundry provides tooling and infrastructure for using and training all classes of models for protein design, including design (RFD3), inverse folding (ProteinMPNN) and protein folding (RF3).

All models within Foundry rely on AtomWorks - a unified framework for manipulating and processing biomolecular structures - for both training and inference.

Getting Started

Quickstart guide

Installation

Use pip 26.2.2 or newer (python -m pip install --upgrade pip); older pip releases still trust the withdrawn emSign root CA certificate.

pip install "rc-foundry[all]"

Intel XPU Installation

For Intel XPU devices, install PyTorch with XPU support first, then install Foundry.

pip install torch --index-url https://download.pytorch.org/whl/xpu
pip install "rc-foundry[all]"

macOS (Apple Silicon) Installation

MPS support is available via a community fork. Install PyTorch first, then install directly from the fork:

pip install torch
pip install "rc-foundry[all] @ git+https://github.com/fnachon/foundry.git"

All three models — RFD3, RF3, and ProteinMPNN/LigandMPNN — run on Apple Silicon MPS.

Downloading weights Models can be downloaded to a target folder with:

foundry install base-models --checkpoint-dir <path/to/ckpt/dir>

where checkpoint-dir will be ~/.foundry/checkpoints by default. Foundry always searches ~/.foundry/checkpoints plus any colon-separated entries in $FOUNDRY_CHECKPOINT_DIRS during inference or subsequent commands to find checkpoints. base-models installs the latest RFD3, RF3 and MPNN variants - you can also download all of the models supported (including multiple checkpoints of RF3) with all, or by listing the models sequentially (e.g. foundry install rfd3 rf3 ...). To list the registry of available checkpoints:

foundry list-available

To check what you already have downloaded (searches ~/.foundry/checkpoints plus $FOUNDRY_CHECKPOINT_DIRS if set):

foundry list-installed

See examples/all.ipynb for how to run each model and design proteins end-to-end in a notebook.

Docker Image

There is an official Foundry image maintained by the Rosetta Commons. The default image comes with the model weights for the available models, but you can use the slim tag to either use pre-exiting model weights or use the image to download the available model weights.

For more information and example syntax, see the Overview on DockerHub.

The recipe to create the Docker image can be found in foundry/examples/docker and can be used as a "blue-print" for creating your own images.

Google Colab

For an interactive Google Colab notebook walking through a basic design pipeline with RFD3, MPNN, and RF3, please see the IPD Design Pipeline Tutorial.

RFdiffusion3 (RFD3)

RFdiffusion3 is an all-atom generative model capable of designing protein structures under complex constraints.

RFdiffusion3 generation trajectory.

See models/rfd3/README.md for complete documentation.

RFdiffusion3NA (RFD3NA)

RFdiffusion3NA is an extension of RFDiffusion3 capable of designing also nucleic acid structures under complex constraints.

RFdiffusion3NA multi polymer

See models/rfd3na/README.md for complete documentation.

RosettaFold3 (RF3)

RF3 is a structure prediction neural network that narrows the gap between closed-source AF-3 and open-source alternatives.

Protein-DNA complex prediction

See models/rf3/README.md for complete documentation.

RFOptimization (RFO)

RFOptimization combines RF3 gradient-guided sequence optimization, Boltz-2 structure prediction, and external ProteinMPNN/LigandMPNN sequence redesign. Start with the RFO project guide, including the separate MPNN installation instructions.

ProteinMPNN

ProteinMPNN and LigandMPNN are lightweight inverse-folding models which can be use to design diverse sequences for backbones under constrained conditions.

See models/mpnn/README.md for complete documentation.


Development

Code Organization

Foundry 1.0.0 ships the tools in one rc-foundry distribution. Each tool owns its runtime infrastructure under models/<tool>/src/<tool>/_core/. Model checkpoint registries live in <tool>/checkpoints.py. Structure I/O and featurization continue to use AtomWorks 3. RFO explicitly uses RF3 for prediction.

The shared foundry Python package has been removed. Custom Python imports and Hydra _target_ paths must use the corresponding tool's namespace (for example, foundry.utils.torch becomes rfd3._core.utils.torch for RFD3). Existing released checkpoints are translated when loaded; weights are unchanged. The foundry checkpoint CLI, model CLIs, checkpoint locations, and FOUNDRY_* environment variables are retained. Numerical settings, including RFD3's fast/legacy modes, are unchanged by this refactor.

Install for development and run the CPU regression suite.

uv pip install -e '.[all,dev]'
pytest

Adding New Models

  1. Create models/<model_name>/src/<model_name>/ with model-owned infrastructure.
  2. Add its package, entry point, and optional dependencies to the root pyproject.toml.
  3. Add model tests under models/<model_name>/tests/ and include them in testpaths.
  4. Register downloadable checkpoints with foundry_cli.checkpoints when applicable.

Pre-commit Formatting

We ship a .pre-commit-config.yaml that runs make format (via ruff format) before each commit. Enable it once per clone:

pip install pre-commit  # if not already installed
pre-commit install

After installation the hook automatically formats the repo whenever you git commit. Use pre-commit run --all-files to apply it manually.

Citation

If you use this repository code or data in your work, please cite the relavant work as below:

@article{corley2025accelerating,
  title={Accelerating biomolecular modeling with atomworks and rf3},
  author={Corley, Nathaniel and Mathis, Simon and Krishna, Rohith and Bauer, Magnus S and Thompson, Tuscan R and Ahern, Woody and Kazman, Maxwell W and Brent, Rafael I and Didi, Kieran and Kubaney, Andrew and others},
  journal={bioRxiv},
  year={2025}
}

@article{butcher2026_rfdiffusion3_science,
    author = {Jasper Butcher  and Rohith Krishna  and Raktim Mitra  and Seth M. Woodbury  and Donghyo Kim  and Rafael I. Brent  and Yanjing Li  and Nathaniel Corley  and Andrew Favor  and Anqi Chen  and Paul T. Kim  and Jonathan Funk  and Gabriela Bastidas Reinoso  and Kejia Wu  and Aiko Muraishi  and Helen E. Eisenach  and Saman Salike  and Simon Mathis  and Tuscan Rock Thompson  and Antonia Ruder  and Enisha Sehgal  and Andrew Kubaney  and Jie Chen  and Yuliya Politanska  and Brian Coventry  and Odin Zhang  and Florence J. Hardy  and Bo Qiang  and Kieran Didi  and Maxwell Kazman  and Lars L. Schaaf  and Frank DiMaio  and David Baker },
    title = {Atomic functional site scaffolding in biopolymers with RFdiffusion3},
    journal = {Science},
    volume = {0},
    number = {0},
    pages = {eaeh2982},
    year = {},
    doi = {10.1126/science.aeh2982},
    URL = {https://www.science.org/doi/abs/10.1126/science.aeh2982},
    eprint = {https://www.science.org/doi/pdf/10.1126/science.aeh2982}
}

@article {butcher2025_rfdiffusion3,
    author = {Butcher, Jasper and Krishna, Rohith and Mitra, Raktim and Brent, Rafael Isaac and Li, Yanjing and Corley, Nathaniel and Kim, Paul T and Funk, Jonathan and Mathis, Simon Valentin and Salike, Saman and Muraishi, Aiko and Eisenach, Helen and Thompson, Tuscan Rock and Chen, Jie and Politanska, Yuliya and Sehgal, Enisha and Coventry, Brian and Zhang, Odin and Qiang, Bo and Didi, Kieran and Kazman, Maxwell and DiMaio, Frank and Baker, David},
    title = {De novo Design of All-atom Biomolecular Interactions with RFdiffusion3},
    elocation-id = {2025.09.18.676967},
    year = {2025},
    doi = {10.1101/2025.09.18.676967},
    publisher = {Cold Spring Harbor Laboratory},
    URL = {https://www.biorxiv.org/content/early/2025/11/19/2025.09.18.676967},
    eprint = {https://www.biorxiv.org/content/early/2025/11/19/2025.09.18.676967.full.pdf},
    journal = {bioRxiv}
}

@article{dauparas2022robust,
  title={Robust deep learning--based protein sequence design using ProteinMPNN},
  author={Dauparas, Justas and Anishchenko, Ivan and Bennett, Nathaniel and Bai, Hua and Ragotte, Robert J and Milles, Lukas F and Wicky, Basile IM and Courbet, Alexis and de Haas, Rob J and Bethel, Neville and others},
  journal={Science},
  volume={378},
  number={6615},
  pages={49--56},
  year={2022},
  publisher={American Association for the Advancement of Science}
}

@article{dauparas2025atomic,
  title={Atomic context-conditioned protein sequence design using LigandMPNN},
  author={Dauparas, Justas and Lee, Gyu Rie and Pecoraro, Robert and An, Linna and Anishchenko, Ivan and Glasscock, Cameron and Baker, David},
  journal={Nature Methods},
  pages={1--7},
  year={2025},
  publisher={Nature Publishing Group US New York}
}

Acknowledgments

We thank Rachel Clune and Hope Woods from the RosettaCommons for their collaboration on the codebase, documentation, tutorials and examples.

Metadata

Release files for rc-foundry 1.0.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 rc-foundry 1.0.0
File Size Uploaded Provenance Actions
rc_foundry-1.0.0.tar.gz 65.1 MB Without provenance Details for rc_foundry-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rc-foundry 1.0.0
File Interpreter ABI Platform Actions
rc_foundry-1.0.0-py3-none-any.whl Python 3 none any Details for rc_foundry-1.0.0-py3-none-any.whl

Total release size: 66.4 MB

Release files / rc_foundry-1.0.0.tar.gz

Download URL rc_foundry-1.0.0.tar.gz
Size 65.1 MB
Tags Source
SHA-256 checksum
How to use checksums
b1edcd82be946e80c7d7e83bb13a77f46a64729f43570e28567be65d78f126db
BLAKE2b-256 checksum
How to use checksums
032e74274dd489c88413b2044ed4fb8f165469d9c7385978f0425516ecfc1cb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / rc_foundry-1.0.0-py3-none-any.whl

Download URL rc_foundry-1.0.0-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
b8ecf145d094fbe0465cde21e17d65f516e184d8dfe365580c5bedcdc3c12d43
BLAKE2b-256 checksum
How to use checksums
9ac4a807dba7b20d8651201710ce3a86c79d776f393a062f73903d2cb533b695
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for rc-foundry 1.0.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