FastFold: Reducing AlphaFold Training Time from 11 Days to 67 Hours

Shenggan Cheng, Xuanlei Zhao, Guangyang Lu, Jiarui Fang, Zhongming Yu +5 more
3/2/2022
cs.LGcs.AIcs.DC

Official code: hpcaitech/FastFold (617 stars, Python, Apache-2.0, PyTorch, last commit 2024-07-16).

Abstract

Protein structure prediction helps to understand gene translation and protein function, which is of growing interest and importance in structural biology. The AlphaFold model, which used transformer architecture to achieve atomic-level accuracy in protein structure prediction, was a significant breakthrough.

Show full abstract

However, training and inference of the AlphaFold model are challenging due to its high computation and memory cost. In this work, we present FastFold, an efficient implementation of AlphaFold for both training and inference. We propose Dynamic Axial Parallelism and Duality Async Operations to improve the scaling efficiency of model parallelism. Besides, AutoChunk is proposed to reduce memory cost by over 80% during inference by automatically determining the chunk strategy. Experimental results show that FastFold reduces overall training time from 11 days to 67 hours and achieves 7.5X - 9.5X speedup for long-sequence inference. Furthermore, we scale FastFold to 512 GPUs and achieve an aggregate throughput of 6.02 PetaFLOP/s with 90.1% parallel efficiency.

View on arXivView PDF

Code Implementations(1)

hpcaitech/FastFoldOfficial100%
PyTorchApache-2.0

Optimizing AlphaFold Training and Inference on GPU Clusters

61790Python, CudaFeb 27, 20222 years agoApache-2.0
alphafold2cudaevoformergpuhabana-gaudi+4 more

Similar Papers

Cite this paper

@article{cheng2022fastfold,
  title  = {FastFold: Reducing AlphaFold Training Time from 11 Days to 67 Hours},
  author = {Shenggan Cheng and Xuanlei Zhao and Guangyang Lu and Jiarui Fang and Zhongming Yu and Tian Zheng and Ruidong Wu and Xiwen Zhang and Jian Peng and Yang You},
  year   = {2022},
  eprint = {2203.00854},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.00854}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.00854.svg)](https://codeofpaper.com/paper/2203.00854)

Discussion