Accelerating open-source biomolecular models with Claude
Open-source deep-learning models for biomolecular structure prediction, protein design, genomics, and protein language modeling are widely used. Running them at scale is expensive, and modeling the largest molecular machines requires more GPU memory than a single node provides. We asked Claude to optimize inference for these models. Supervised by two scientists experienced in biomolecular modeling but not in inference optimization or kernel engineering, Claude produced optimized packages for 36 model implementations, covering more than 30 open-source models, in just under four weeks. Each package offers up to three modes: Exact, which is designed to reproduce the unmodified model's outputs bit for bit; Fast, which trades a small amount of numerical precision for speed; and Big, which reduces memory use so that larger inputs fit in GPU memory. Exact mode ran the forward pass of 14 structure prediction models on average 1.6x faster than the unmodified models on NVIDIA H100 GPUs, and Fast mode ran the forward pass of the 13 models that have one on average 4.1x faster. The share of acceptably predicted interfaces, pooled over 13 model configurations (1,925 model-target pairs), changed by less than one percentage point in every mode, and no pooled change was distinguishable from zero. Claude also developed FlashPairformer v1, a set of GPU kernels whose triangle attention is on average 2.7x faster than the field-standard kernels at the pair width used by most of these models. Big mode enabled accurate predictions of complexes larger than 10,000 tokens (amino acids, nucleotides, and atoms from small molecules and ions) on a single 8-GPU node, and it ran inference on protein assemblies of up to 70,320 residues on a node of eight B300 GPUs, although these predictions were not accurate. Finally, Claude designed protein binders with in silico scores comparable to those of earlier campaigns that could use about 100 times as many GPU hours. It worked from a simplified prompt, with the optimized models on a single H200 GPU for 24 hours. We release the optimized code for all models.
Discussion
Suivre cette discussion
Un e-mail quand quelqu'un laisse un commentaire. Aucun compte nécessaire.
La lettre d'information
Abonnez-vous à notre lettre d'information gratuite pour rester informé de toute l'actualité de la biotech.