Performance Benchmarks for AlphaFold2
The AlphaFold2 NIM has been tuned to improve performance. However, the Multiple Sequence Alignment (MSA) and structure prediction processes are still computationally expensive. Performance varies significantly depending on:
- Which NVIDIA GPUs are attached and available to the NIM
- How many CPU cores are available to the NIM
- The speed of the Solid State Drive (SSD) available to the NIM
- The parameters used to configure the NIM at runtime.
The following performance expectations are not meant to be indicative of guaranteed performance, and performance on your system will vary from these values. Supported hardware is in Prerequisites.
Benchmark Results
The following results help you understand the throughput and runtime you can expect for common deployment scenarios. Actual performance may vary based on hardware configuration, input sequence, and other factors.
Recommended System Requirements
We recommend the following system configuration:
- At least 1x NVIDIA A100 GPU
- At least 1.3 Terabytes (1,300 Gigabytes) of available SSD storage (preferably NVMe gen4 or later with a speed of more than 3,500 MB/s)
- At least 24 CPU cores (physical cores)
- An internet connection with a download speed of at least 200 Mbps to download the AlphaFold2 model and databases.
Performance by Configuration
In general, expect the following performance by configuration.
Expected Runtime
MSA runtime for short sequences can vary dramatically, but generally runtime scales linearly with sequence length. For sequences with many hits in the database (that is, sequences with motifs observed in many other proteins), the MSA runtime can grow significantly regardless of sequence length. In general, expect MSA to take between one minute and six hours per query.
The time required for structure prediction grows exponentially with sequence length. As a rule of thumb, a sequence that is twice as long takes at least four times as long during the structure prediction phase. In general, expect the structure prediction component to take between four minutes and 24 hours.
These are not exact numbers, and performance varies significantly between machines and input sequences.
Performance Best Practices
The following best practices help you tune AlphaFold2 NIM performance.
Sequence to MSA
Apply the following practices to speed up MSA generation:
- MSA performance is largely dependent on disk speed and CPU cores. Make sure your NIM cache is on a fast SSD, and that you have allocated at least 24 cores to the NIM. Refer to Configuring the NIM at Runtime for details.
- Use the
mmseqs2algorithm for Multiple Sequence Alignment. This algorithm produces similar results but is significantly faster (particularly with longer sequence lengths). Send"algorithm": "mmseqs2"in the JSON request body. - Increase the threads used per MSA process. This can be done using the
NIM_PARALLEL_THREADS_PER_MSAenvironment variable. Refer to Configuring the NIM at Runtime for details. - Increase the number of concurrent MSA processes. This can be done using the
NIM_PARALLEL_MSA_RUNNERSenvironment variable. Refer to Configuring the NIM at Runtime for details.
Start with the default of three runners. Do not use more than four.
MSA to Structure and Sequence to Structure
Apply the following practice to speed up structure prediction:
- Structure prediction performance is mostly dependent on GPU capability. If you find structure prediction to be a bottleneck, consider a GPU with more compute and memory (for example, an A100 instead of an A30).
Related Topics
Explore the following related topics: