Scale Biology Transformer Models with PyTorch and NVIDIA BioNeMo Recipes

AI-generated summary of reporting by NVIDIA Developer Blog. Read the original for the full story.

Why it matters

Bio researchers can now speed up training of protein language models like ESM-2 using FP8 and sequence packing without rewriting their PyTorch code or learning a new framework.

Read this as

NVIDIA published BioNeMo Recipes, step-by-step guides for training large biology AI models faster. They show how to take the ESM-2 protein language model and speed it up using Transformer Engine, which swaps in optimized building blocks and uses FP8, a lower-precision number format that cuts memory and boosts speed. Another trick, 'sequence packing,' removes wasted padding so GPUs process only real data. Researchers training protein or genome models benefit most.

NVIDIA's BioNeMo Recipes lower the engineering cost of training billion-parameter biology models by adapting existing PyTorch and Hugging Face code rather than forcing a new framework. The payoff is concrete: EvolutionaryScale credits Transformer Engine with making the 98B-parameter ESM3 trainable at high GPU utilization. Teams racing in drug discovery AI gain throughput; those sticking with plain PyTorch leave performance on the table.

The guides integrate NVIDIA Transformer Engine into the ESM-2 protein LM, replacing nn.Linear/nn.LayerNorm with TE counterparts and enabling FP8 autocasting (DelayedScaling, HYBRID format). Sequence packing converts padded BSHD tensors to flattened THD format via cumulative sequence lengths, cutting the ~60% padding waste at 1,024-token context. TE layers remain compatible with Hugging Face AutoModel.from_pretrained; token throughput uplift is shown in a benchmark figure without exact numbers.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

NVIDIA BioNeMo Recipes Transformer Engine ESM-2 ESM3 EvolutionaryScale Hugging Face

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading