Discover and explore top open-source AI tools and projects—updated daily.
ChrisHaydukMinimal PyTorch AlphaFold2 reimplementation for learning and research
Top 55.4% on SourcePulse
A minimal, pedagogical PyTorch reimplementation of AlphaFold2, designed for understanding and modification. It targets AI researchers and engineers seeking to demystify AlphaFold2's architecture and training, thereby accelerating progress in AI x biology by making the system accessible.
How It Works
The project offers a direct, 1-to-1 reimplementation of AlphaFold2's model and training pipeline using only core PyTorch primitives. Each module maps precisely to a numbered algorithm in the official supplement, prioritizing readability over production optimizations. This approach enables end-to-end training on a single GPU through gradient accumulation and checkpointing, making the complex system comprehensible within an afternoon.
Quick Start & Requirements
pip install -e '.[dev]'pip install -e '.[modal]'.Highlighted Details
nn.Linear, nn.LayerNorm, torch.einsum, and standard activations.Maintenance & Community
No specific details on active maintenance, community channels (like Discord/Slack), or a public roadmap are provided in the README.
Licensing & Compatibility
The project is licensed under MIT. Data derived from the AlphaFold2 source code is under Apache 2.0. The MIT license is permissive for commercial use and closed-source linking.
Limitations & Caveats
This is a pedagogical reimplementation, not an inference harness or speed benchmark. It supports monomers only and excludes multimer/AF3 architectures. Features like self-distillation dataset generation, custom MSA generation, and specific MMseqs2 clustering are out of scope. The structure relaxation procedure has caveats for highly violating inputs, recommending training with the violation loss active for cleaner outputs. The trainer lacks distributed data parallelism and relies on per-micro-batch gradient clipping for larger micro-batches.
1 day ago
Inactive
PiotrNawrot
meta-pytorch
sweetice
ritchieng
karpathy
karpathy