Performance in Boltz-2 NIM
NIM Accuracy
The Boltz-2 NIM is based on the state-of-the-art Boltz-2 architecture for biomolecular structure prediction. The NIM’s accuracy should match that of the reference implementation when using equivalent parameters and inputs.
Running on hardware that is not listed as supported in the prerequisites section may produce results that deviate from the expected accuracy.
The accuracy of the NIM is measured by structural quality metrics such as lddt. These scores help assess the reliability of the predicted structures.
Factors Affecting NIM Performance
The performance of the Boltz-2 NIM is determined by several key factors:
Hardware Factors
- Number and type of GPUs: More GPUs generally improve throughput for concurrent requests
- GPU memory: Larger proteins and complexes require more GPU memory
- Storage speed: Fast NVMe SSD storage improves model loading and caching performance
Input Complexity
- Sequence length: Runtime scales approximately quadratically with total sequence length
- Number of chains: Multi-chain complexes require more computation than single chains
- Ligands and constraints: Additional molecular components increase computational cost
Model Parameters
- Sampling steps: Higher values improve quality but significantly increase runtime
- Recycling steps: More iterations improve accuracy with modest runtime increase
- Diffusion samples: Multiple samples provide diversity but multiply computational cost
Performance Characteristics
Performance in v1.4.0 remains the same as v1.3.0.
Typical Runtimes
For reference, approximate runtimes on high-end hardware (8x NVIDIA H100 80GB):
Structure Prediction (Boltz2 v1.3.0 on H100):
- ~200 residues: 2.6-4.6 seconds (TensorRT) / 5.7-7.6 seconds (PyTorch)
- ~500 residues: 9.0-9.3 seconds (TensorRT) / 13.1-13.5 seconds (PyTorch)
- ~1000 residues: 29.2-35.2 seconds (TensorRT) / 35.5-50.4 seconds (PyTorch)
- ~1500 residues: 32.1-41.3 seconds (TensorRT) / 51.3-68.5 seconds (PyTorch)
- ~2000 residues: 85.8 seconds (TensorRT) / 123.1 seconds (PyTorch)
- Confidence score: Typically > 0.7 for well-folded proteins
- Memory usage: ~4-8 GB GPU memory per prediction
Binding Affinity Prediction (Boltz2 v1.3.0 on H100):
- ~200 residues: 7.6-11.6 seconds (TensorRT) / 16.8-22.0 seconds (PyTorch)
- ~500 residues: 13.6-16.6 seconds (TensorRT) / 25.2-26.4 seconds (PyTorch)
- ~1000 residues: 35.2-50.8 seconds (TensorRT) / 50.4-79.3 seconds (PyTorch)
- ~1500 residues: 35.7-50.8 seconds (TensorRT) / 61.6-80.9 seconds (PyTorch)
- ~2000 residues: 89.2 seconds (TensorRT) / 130.7 seconds (PyTorch)
Boltz2 v1.3.0 Performance Results on H100
Structure Prediction Performance
The following table shows runtime performance for Boltz2 v1.3.0 on NVIDIA H100 GPUs for structure prediction across different sequence lengths:
Binding Affinity Prediction Performance
The following table shows runtime performance for binding affinity prediction on NVIDIA H100 GPUs:
Performance Analysis
Key Observations:
- TensorRT Optimization: TensorRT consistently provides 1.2x to 2.3x speedup over PyTorch across all sequence lengths
- Structure Prediction: Average speedup of ~1.5x with TensorRT, with higher speedups for shorter sequences
- Affinity Prediction: Generally higher speedups (1.4x to 2.3x) compared to structure prediction, with peak performance at medium sequence lengths (300-400 residues)
- Scaling Behavior: Performance scales approximately quadratically with sequence length for both PyTorch and TensorRT implementations
- Memory Efficiency: TensorRT optimization also provides better memory utilization, enabling processing of larger proteins
Recommended Configuration:
- For development/testing: Use TensorRT with reduced sampling steps (25-50) for faster iteration
- For production: Use TensorRT with default settings for optimal balance of speed and accuracy
- For large proteins (>1500 residues): Consider domain-based approaches or increased GPU memory allocation
Performance Testing
You can test basic performance and functionality with protein structure and binding affinity prediction:
Performance Optimization Tips
-
For development/testing: Use faster settings
-
For production quality: Use higher quality settings
-
For batch processing: Submit multiple concurrent requests with default settings
-
For very large proteins (>1000 residues): Consider domain-based approaches or consult the literature for handling strategies
Troubleshooting Performance Issues
Common Issues and Solutions
General Performance Issues
- Out of memory errors: Reduce sequence length, decrease sampling steps, or use fewer concurrent requests
- Slow performance: Ensure fast storage (NVMe SSD), sufficient CPU cores (12+ per GPU), and adequate system RAM (48+ GB per GPU)
- Poor quality predictions: Increase sampling steps, recycling steps, or check input sequence quality
Binding Affinity Specific Issues
- Affinity prediction timeouts: Reduce
sampling_steps_affinityanddiffusion_samples_affinityfor faster results - Unrealistic affinity values: Enable
affinity_mw_correctionfor metal-containing ligands and verify SMILES format - Memory errors with affinity: Binding affinity requires 2-3x more memory than structure prediction alone
- Inconsistent affinity results: Increase
diffusion_samples_affinityto 5-7 for more reliable estimates - Cannot predict affinity for multiple ligands: Only one ligand per request can have
predict_affinity=True
For detailed performance tuning guidance specific to your deployment, refer to the Optimization section.