Skip to main content

header

AlphaFold 3

This package provides an implementation of the inference pipeline of AlphaFold 3. See below for how to access the model parameters. You may only use AlphaFold 3 model parameters if received directly from Google. Use is subject to these terms of use.

Any publication that discloses findings arising from using this source code, the model parameters or outputs produced by those should cite the Accurate structure prediction of biomolecular interactions with AlphaFold 3 paper.

Please also refer to the Supplementary Information for a detailed description of the method.

AlphaFold 3 is also available at alphafoldserver.com for non-commercial use, though with a more limited set of ligands and covalent modifications.

For commercial use, AlphaFold 3 is available via Gemini Enterprise Agent Platform on Google Cloud.

If you have any questions, please contact the AlphaFold team at alphafold@google.com.

Obtaining Model Parameters

This repository contains all necessary code for AlphaFold 3 inference. You can download the AlphaFold 3 model parameters from https://storage.googleapis.com/alphafold3/af3.bin.zst. Use is subject to these terms of use.

The model parameters for the SynthID Bio-structure version of AlphaFold 3, which predicts watermarked structures, is available at https://storage.googleapis.com/alphafold3/af3_synthid.bin.zst. See google-deepmind/synthidbio for more details.

The model parameters for AlphaFold 3 Leaving Atom (AF3-LA) can be used as an alternative model fine-tuned for leaving atom handling. The weights are available at https://storage.googleapis.com/alphafold3/af3_leaving_atom.bin.zst and are subject to the same terms of use as the original AlphaFold 3 model parameters. See google-deepmind/alphaprotein-novo for more details.

OpenFold3 Weights (Publicly Available Alternative)

OpenFold3, developed by the AlQuraishi Lab at Columbia University and the OpenFold Consortium, is an independent reproduction of AlphaFold 3 that has released model weights under the Apache 2.0 license. These weights can be used with this codebase as a freely available alternative to the Google DeepMind parameters.

Step 1 — Download OpenFold3 weights:

wget https://openfold.s3.amazonaws.com/staging/of3-p2-155k.pt

Weights are also hosted at huggingface.co/OpenFold/OpenFold3.

Step 2 — Convert to AlphaFold 3 format:

A conversion script is included in this repository:

python convert_of3_weights.py \
  --of3_checkpoint ./of3-p2-155k.pt \
  --output_dir ./af3_of3_params/

This produces af3_of3_params/of3_ported_weights.bin.zst (~1.4 GB).

Step 3 — Run inference:

Pass --of3_weights to run_alphafold.py to enable the architectural adjustments needed for OpenFold3 parameters:

python run_alphafold.py \
  --json_path=fold_input.json \
  --model_dir=./af3_of3_params/ \
  --output_dir=./output/ \
  --of3_weights

The OpenFold3 weights are subject to the Apache 2.0 License and may be used for both academic and commercial purposes, without requiring a separate access request.

Installation and Running Your First Prediction

See the installation documentation.

Cyclic-polymer runtime in this fork

The tested cyclic implementation is published on branch feat/cyclic-offset-runtime. Pin commit bec314811b5d929abf9f3dea7bdb8f4195853540 for reproducible builds. It changes the AF3 relative-position encoding for an explicitly marked head-to-tail cyclic protein chain while leaving ordinary linear inputs unchanged. AF3 and converted OpenFold3 weights use the same engine.

Clone and build it with:

git clone --branch feat/cyclic-offset-runtime \
  https://github.com/kierandidi/alphafold3.git alphafold3-cyclic-runtime
cd alphafold3-cyclic-runtime
git checkout bec314811b5d929abf9f3dea7bdb8f4195853540
DOCKER_BUILDKIT=1 docker build \
  --ulimit nofile=65536:65536 \
  --tag alphafold3:cyclic-bec3148 \
  --file docker/Dockerfile .

The image is designed to run under an arbitrary allocation UID. This smoke test checks both the compiled extension and the cyclic feature contract without model parameters or a GPU:

docker run --rm --user 65534:65534 --entrypoint /usr/bin/env \
  alphafold3:cyclic-bec3148 \
  /alphafold3_venv/bin/python -c \
  "import alphafold3.cpp; from alphafold3.model import features; assert {'cyclic_period', 'cyclic_position'} <= features.TokenFeatures.__dataclass_fields__.keys()"

Important: the model engine does not infer topology from an ordinary AF3 JSON sequence. The caller must add two token features after normal AF3 featurisation:

  • cyclic_period: the chain length on every token of a cyclic chain, otherwise zero;
  • cyclic_position: the zero-based residue ordinal within that chain. This must not be derived from author residue IDs, which may be gapped.

The RFProteina branch feat/cyclic-folding-runtime supplies the tested adapter. Its run_alphafold_batch.py accepts cyclic_chain_ids in each manifest entry; the AF3 oracle adds that field automatically when the input structure contains an explicit terminal carbonyl-C to N bond. To build the same OCI, SIF, and Enroot bundle on another cluster, keep the two repositories as siblings and run:

git clone --branch feat/cyclic-folding-runtime \
  git@github.com:baker-laboratory/RFD4-Proteina-dev.git RFProteina-cyclic
cd RFProteina-cyclic
AF3_CYCLIC_SOURCE_REPO=../alphafold3-cyclic-runtime \
AF3_CYCLIC_OUTPUT_ROOT="$PWD/artifacts/af3-cyclic/bec314811b5d" \
  bash scripts/build_cyclic_af3_runtime.sh
(cd artifacts/af3-cyclic/bec314811b5d && sha256sum --check SHA256SUMS)

The adapter currently enables cyclic offsets for protein chains only. RNA/DNA and unmarked chains remain linear. A terminal bond is still passed through the normal AF3 input path; the offset feature is additional model context, not a replacement for chemical connectivity.

Disulfide and isopeptide macrocycles intentionally keep linear sequence offsets: their N/C termini are still free, and multiple crosslinks cannot be represented by one circular sequence coordinate. Supply each closure through bondedAtomPairs (or mmCIF struct_conn). The featurizer maps ordinary polymer bond atoms to their residue tokens, preserves actual atom tokens for atomized OF3 residues, and feeds all such polymer--polymer crosslinks through the existing bond embedding. This supports nested or multiple crosslinks without falsely wrapping the whole chain. Explicit polymer crosslinks are not discarded when the starting coordinates exceed a normal bond length; an open design can therefore still request a closed prediction.

Container images

Build the shared AF3/OpenFold3 Docker runtime from this checkout:

DOCKER_BUILDKIT=1 docker build \
  --file docker/Dockerfile \
  --tag af3-open:latest \
  .

Alternatively, build the standalone Apptainer image:

apptainer build af3-open.sif apptainer/af3-open.def

Both images contain the code and the one-time OpenFold3 conversion dependency, but no model parameters. Mount either Google AF3 parameters or converted OpenFold3 parameters when running inference.

Once you have installed AlphaFold 3, you can test your setup using e.g. the following input JSON file named fold_input.json:

{
  "name": "2PV7",
  "sequences": [
    {
      "protein": {
        "id": ["A", "B"],
        "sequence": "GMRESYANENQFGFKTINSDIHKIVIVGGYGKLGGLFARYLRASGYPISILDREDWAVAESILANADVVIVSVPINLTLETIERLKPYLTENMLLADLTSVKREPLAKMLEVHTGAVLGLHPMFGADIASMAKQVVVRCDGRFPERYEWLLEQIQIWGAKIYQTNATEHDHNMTYIQALRHFSTFANGLHLSKQPINLANLLALSSPIYRLELAMIGRLFAQDAELYADIIMDKSENLAVIETLKQTYDEALTFFENNDRQGFIDAFHKVRDWFGDYSEQFLKESRQLLQQANDLKQG"
      }
    }
  ],
  "modelSeeds": [1],
  "dialect": "alphafold3",
  "version": 1
}

You can then run AlphaFold 3 using the following command:

docker run -it \
    --volume $HOME/af_input:/root/af_input \
    --volume $HOME/af_output:/root/af_output \
    --volume <MODEL_PARAMETERS_DIR>:/root/models \
    --volume <DATABASES_DIR>:/root/public_databases \
    --gpus all \
    alphafold3 \
    python run_alphafold.py \
    --json_path=/root/af_input/fold_input.json \
    --model_dir=/root/models \
    --output_dir=/root/af_output

There are various flags that you can pass to the run_alphafold.py command, to list them all run python run_alphafold.py --help. Two fundamental flags that control which parts AlphaFold 3 will run are:

  • --run_data_pipeline (defaults to true): whether to run the data pipeline, i.e. genetic and template search. This part is CPU-only, time consuming and could be run on a machine without a GPU.
  • --run_inference (defaults to true): whether to run the inference. This part requires a GPU.

AlphaFold 3 Input

See the input documentation.

AlphaFold 3 Output

See the output documentation.

Performance

See the performance documentation.

Known Issues

Known issues are documented in the known issues documentation.

Please create an issue if it is not already listed in Known Issues or in the issues tracker.

Citing This Work

Any publication that discloses findings arising from using this source code, the model parameters or outputs produced by those should cite:

@article{Abramson2024,
  author  = {Abramson, Josh and Adler, Jonas and Dunger, Jack and Evans, Richard and Green, Tim and Pritzel, Alexander and Ronneberger, Olaf and Willmore, Lindsay and Ballard, Andrew J. and Bambrick, Joshua and Bodenstein, Sebastian W. and Evans, David A. and Hung, Chia-Chun and O’Neill, Michael and Reiman, David and Tunyasuvunakool, Kathryn and Wu, Zachary and Žemgulytė, Akvilė and Arvaniti, Eirini and Beattie, Charles and Bertolli, Ottavia and Bridgland, Alex and Cherepanov, Alexey and Congreve, Miles and Cowen-Rivers, Alexander I. and Cowie, Andrew and Figurnov, Michael and Fuchs, Fabian B. and Gladman, Hannah and Jain, Rishub and Khan, Yousuf A. and Low, Caroline M. R. and Perlin, Kuba and Potapenko, Anna and Savy, Pascal and Singh, Sukhdeep and Stecula, Adrian and Thillaisundaram, Ashok and Tong, Catherine and Yakneen, Sergei and Zhong, Ellen D. and Zielinski, Michal and Žídek, Augustin and Bapst, Victor and Kohli, Pushmeet and Jaderberg, Max and Hassabis, Demis and Jumper, John M.},
  journal = {Nature},
  title   = {Accurate structure prediction of biomolecular interactions with AlphaFold 3},
  year    = {2024},
  volume  = {630},
  number  = {8016},
  pages   = {493–-500},
  doi     = {10.1038/s41586-024-07487-w}
}

Acknowledgements

AlphaFold 3's release was made possible by the invaluable contributions of the following people:

Andrew Cowie, Bella Hansen, Charlie Beattie, Chris Jones, Grace Margand, Jacob Kelly, James Spencer, Josh Abramson, Kathryn Tunyasuvunakool, Kuba Perlin, Lindsay Willmore, Max Bileschi, Molly Beck, Oleg Kovalevskiy, Sebastian Bodenstein, Sukhdeep Singh, Tim Green, Toby Sargeant, Uchechi Okereke, Yotam Doron, and Augustin Žídek (engineering lead).

We also extend our gratitude to our collaborators at Google and Isomorphic Labs.

AlphaFold 3 uses the following separate libraries and packages:

We thank all their contributors and maintainers!

Get in Touch

If you have any questions not covered in this overview, please contact the AlphaFold team at alphafold@google.com.

We would love to hear your feedback and understand how AlphaFold 3 has been useful in your research. Share your stories with us at alphafold@google.com.

For questions surrounding SynthID Bio-structure, please contact synthidbio@google.com.

Licence and Disclaimer

This is not an officially supported Google product.

Copyright 2024 DeepMind Technologies Limited.

AlphaFold 3 Source Code and Model Parameters

AlphaFold 3 source code is licensed under the Apache License, Version 2.0 (the "License"); you may not use its source code except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

The AlphaFold 3 model parameters are made available under the AlphaFold 3 Model Parameters Terms of Use (the "Terms"); you may not use these except in compliance with the Terms. You may obtain a copy of the Terms at https://github.com/google-deepmind/alphafold3/blob/main/WEIGHTS_TERMS_OF_USE.md.

Unless required by applicable law, AlphaFold 3 and its output are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. You are solely responsible for determining the appropriateness of using AlphaFold 3, or using or distributing its source code or output, and assume any and all risks associated with such use or distribution and your exercise of rights and obligations under the relevant terms. Output are predictions with varying levels of confidence and should be interpreted carefully. Use discretion before relying on, publishing, downloading or otherwise using the AlphaFold 3 Assets.

AlphaFold 3 and its output are for theoretical modeling only. They are not intended, validated, or approved for clinical use. You should not use the AlphaFold 3 or its output for clinical purposes or rely on them for medical or other professional advice. Any content regarding those topics is provided for informational purposes only and is not a substitute for advice from a qualified professional. See the relevant terms for the specific language governing permissions and limitations under the terms.

Third-party Software

Use of the third-party software, libraries or code referred to in the Acknowledgements section above may be governed by separate terms and conditions or license provisions. Your use of the third-party software, libraries or code is subject to any such terms and you should check that you can comply with any applicable restrictions or terms and conditions before use.

Mirrored and Reference Databases

The following databases have been: (1) mirrored by Google DeepMind; and (2) in part, included with the inference code package for testing purposes, and are available with reference to the following:

Metadata

Release files for alphafold3-open 3.0.5.post4

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

Built distribution (wheel)

Table of built distributions (wheels) for alphafold3-open 3.0.5.post4
File Interpreter ABI Platform Actions
alphafold3_open-3.0.5.post4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for alphafold3_open-3.0.5.post4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Release files / alphafold3_open-3.0.5.post4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL alphafold3_open-3.0.5.post4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 18.0 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
fb2256bb05cb5421ce0566e28ac9f508a5401f89830260e9d0b3b5d68a1b93c5
BLAKE2b-256 checksum
How to use checksums
45be0b451911070f8262e9b7760750dba459814db9e8b2581e0707600d14ceee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Security for alphafold3-open 3.0.5.post4

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.

Full provenance

1 file in this release has been uploaded with provenance metadata.

Attestation for alphafold3_open-3.0.5.post4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

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