Skip to main content
QUICK REVIEW

[Paper Review] BioNeMo Framework: a modular, high-performance library for AI model development in drug discovery

Peter C. St. John, Dejun Lin|arXiv (Cornell University)|Nov 15, 2024
Computational Drug Discovery MethodsComputer Science11 citations
TL;DR

BioNeMo Framework is an open-source, modular library built on NVIDIA NeMo Megatron to train and scale biomolecular AI models across hundreds of GPUs, with validated gains in throughput and memory efficiency.

ABSTRACT

Artificial Intelligence models encoding biology and chemistry are opening new routes to high-throughput and high-quality in-silico drug development. However, their training increasingly relies on computational scale, with recent protein language models (pLM) training on hundreds of graphical processing units (GPUs). We introduce the BioNeMo Framework to facilitate the training of computational biology and chemistry AI models across hundreds of GPUs. Its modular design allows the integration of individual components, such as data loaders, into existing workflows and is open to community contributions. We detail technical features of the BioNeMo Framework through use cases such as pLM pre-training and fine-tuning. On 256 NVIDIA A100s, BioNeMo Framework trains a three billion parameter BERT-based pLM on over one trillion tokens in 4.2 days. The BioNeMo Framework is open-source and free for everyone to use.

Motivation & Objective

  • Enable efficient training and fine-tuning of biomolecular AI models at scale.
  • Provide modular components (data loaders, models, and utilities) that integrate with existing workflows.
  • Demonstrate throughput and scalability gains over baseline PyTorch implementations.
  • Support specialized data loading (protein sequences, single-cell data) and memory-aware batching.
  • Encourage community contributions and cloud-scale deployment for drug discovery use cases.

Proposed method

  • Build atop PyTorch and Lightning with core interfaces in bionemo-core.
  • Leverage NVIDIA NeMo Megatron to construct large biomolecular BERT-style models (ESM-2, Geneformer).
  • Provide modular sub-packages (e.g., bionemo-esm2, bionemo-geneformer) for off-the-shelf training, fine-tuning, and inference.
  • Implement high-performance data loaders for protein sequences and single-cell data (BioNeMo-SCDL).
  • Incorporate size-aware batching (size-aware batcher and bucket batch sampler) to optimize memory usage for graphs and variable-sized inputs.
  • Offer WebDataModule to integrate WebDataset with LightningDatamodule for streamlined data handling.

Experimental results

Research questions

  • RQ1How does BioNeMo achieve higher training throughput compared to standard PyTorch/Transformers implementations?
  • RQ2What is the scalability of BioNeMo when training large biomolecular models across many GPUs?
  • RQ3Can BioNeMo efficiently handle diverse data types (protein sequences, single-cell data) and memory-aware batching in practice?
  • RQ4What are the practical gains in memory utilization and data loading performance with BioNeMo's specialized loaders and batching strategies?

Key findings

  • On 256 NVIDIA A100s, a 3B parameter ESM-2-like pLM trained on over one trillion tokens in 4.2 days.
  • BioNeMo achieves up to 1.47x single-device throughput improvement over Hugging Face Transformers for a 650M parameter model on a single A100, with 59.2% MFU vs 40.1% MFU for the baseline.
  • Across distributed training, BioNeMo's 3B parameter model reaches 96.9% of extrapolated single-node throughput at 256 GPUs (40% MFU on 16 A100s, 60% MFU on 256 GPUs).
  • BioNeMo SCDL provides 1.1–2.75x faster data loading than comparable AnnData loaders, without requiring data to be loaded into memory.
  • Bucket size-aware batching yields near-uniform data-size distribution and very little padding compared to MiDi/baseline methods (reducing memory padding).
  • Demonstrated community-driven contributions and cloud-scale deployment (AWS) enabling faster inference and larger exploratory workflows.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.