← all repositories
lucidrains/alphafold3-pytorch

AlphaFold 3 in PyTorch, Debugged by the Internet

An open-source PyTorch reimplementation of DeepMind’s AlphaFold 3, maintained by a swarm of contributors hunting mismatches against the Nature paper.

alphafold3-pytorch
Not currently ranked — collecting fresh signals.
star history

What it does

This is a from-scratch PyTorch port of Google DeepMind’s AlphaFold 3, the transformer-and-diffusion model that predicts 3D structures of proteins, nucleic acids, and small molecules. The repository exposes both atom-level and higher-level Alphafold3Input APIs for training and sampling, and it ships with scripts to curate and filter the massive PDB dataset required for training.

The interesting bit

The project reads like a public peer-review session: dozens of contributors have patched specific mismatches against the paper, from distogram atom indices to diffusion module inconsistencies. That makes it less a single-author rewrite and more a distributed bug bash against the supplementary materials.

Key highlights

  • Full model architecture with pairformer stacks, MSA modules, template embedders, and an elucidated atom diffusion decoder
  • Helper classes like Alphafold3Input that abstract away raw tensor construction for standard molecular inputs
  • PDB dataset preparation and clustering scripts for assembling training data from raw mmCIF files
  • Confidence head, clash penalty ranking, and sample ranking logic for evaluating predictions
  • A Gradio frontend interface for interactive use

Caveats

  • MSA and template parsing are only at initial support level
  • Data preparation demands hundreds of gigabytes of PDB archives and multiple preprocessing stages
  • The README notes a long trail of paper-to-code mismatches that required community fixes, so edge-case correctness is still being actively validated

Verdict

Grab this if you need a hackable, PyTorch-native AlphaFold 3 for research or custom training pipelines. Skip it if you want a polished, batteries-included inference service with pre-packaged weights.

Frequently asked

What is lucidrains/alphafold3-pytorch?
An open-source PyTorch reimplementation of DeepMind’s AlphaFold 3, maintained by a swarm of contributors hunting mismatches against the Nature paper.
Is alphafold3-pytorch open source?
Yes — lucidrains/alphafold3-pytorch is open source, released under the MIT license.
What language is alphafold3-pytorch written in?
lucidrains/alphafold3-pytorch is primarily written in Python.
How popular is alphafold3-pytorch?
lucidrains/alphafold3-pytorch has 1.7k stars on GitHub.
Where can I find alphafold3-pytorch?
lucidrains/alphafold3-pytorch is on GitHub at https://github.com/lucidrains/alphafold3-pytorch.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.