Skip to main content

BioNeMo Inference Runtime

Easy, fast, and memory-efficient structure prediction inference

GPU-accelerated inference for protein, nucleic-acid, and ligand structure prediction models — from FASTA/MSA to PDB/mmCIF.

Documentation License CUDA PyTorch PyPI

Speedup against input size on H100

About

BioNeMo Inference Runtime (BioIR) is NVIDIA's library for structure-prediction inference. A five-stage GPU pipeline turns AlphaFold-lineage and all-atom models into PDB/mmCIF with confidence scores. Models stay ordinary nn.Modules — no TensorRT engine build.

Disclaimer

BioIR is in a Beta state, may not be fully functional, may contain errors or design flaws, and may be changed at any time without notice. We appreciate your feedback to improve and iterate on our products.

Getting Started

The notice and disclaimer applies to separately downloaded dependencies, model checkpoints, and metadata.

Prerequisites

  • Linux, x86_64 or aarch64, with an NVIDIA GPU. The wheels are manylinux_2_34, so the host needs glibc 2.34 or newer — Ubuntu 22.04, RHEL 9 or later.
  • Driver 580 or newer. The dev image carries a CUDA 13.2 build of PyTorch. An older driver runs it only through the forward-compatibility shim, which we have measured hanging and crashing part-way through a run rather than merely running slowly — results taken on one are discarded, not corrected.
  • Python 3.12. The released wheels are tagged cp312, so pip finds no matching build on a newer interpreter.
  • Docker and the NVIDIA Container Toolkit, to build from source in the dev container. Installing the wheel needs neither.

PyTorch and the CUDA math libraries arrive as wheel dependencies, or in nvcr.io/nvidia/pytorch:26.05-py3 when you use the container. Building the extension from source outside a container needs a C++17 compiler and CUDA headers as well — docs/dev.md.

Supported GPUs

BioIR runs on the Ampere, Ada Lovelace, Hopper, and Blackwell GPUs listed in the support matrix. The doc also shows which fused kernels apply to each architecture. Benchmarks page shows detailed speedup, memory, and accuracy for these GPUs: H200, H100, A100, L40S, GB200, and GB300.

Install

BioIR is published on PyPI, one wheel per CPU architecture:

pip install bionemo-ir

The wheel ships the kernels precompiled, so nothing in the install builds CUDA and running it needs only the driver's libcuda.so.1. That is the whole install if you are calling BioIR from your own code — the container below is for working on BioIR itself. docs/install.md covers the environment setup and the requirements in full.

Build from source

Configure SSH authentication with GitHub, then clone the repository and fetch its submodules and LFS objects.

git lfs install &&
  GIT_LFS_SKIP_SMUDGE=0 \
    git clone --recurse-submodules \
    git@github.com:NVIDIA-BioNeMo/BioNeMo-Inference-Runtime.git &&
  cd BioNeMo-Inference-Runtime

On a host with the required compiler and CUDA headers, uv provisions the pinned Python and exact dependency set, builds the editable extension, and runs tools inside that environment:

uv sync --locked
uv run --locked scripts/fetch_weights.sh --model boltz-2
uv run --locked python examples/folding/run_demo.py --output-dir output

The supported container workflow remains available when the host is not configured:

docker/dev.sh

Then run inside its shell:

uv lock --check
uv pip install --no-deps -e .
scripts/fetch_weights.sh --model boltz-2
python examples/folding/run_demo.py --output-dir output

Checkpoints come from their upstream publishers and need no NVIDIA credentials; anything that cannot be fetched is skipped, and the tests needing it skip too. Running uv run --locked scripts/run_tests.sh on the host, or scripts/run_tests.sh in the container, stages weights and runs the suite the way CI does.

See docs/dev.md for the host prerequisites, environment details and wheel build. docs/ref/docker-images.md covers the images and what docker/dev.sh mounts.

Documentation

BioIR documentation lives under docs/ and is published with Fern:

Benchmarks

Methodology

Folding benchmarks over a bench set the shipped rebuild_dataset.py builds from RCSB and NVIDIA's MSA Search NIM — there is no dataset release to download. Template-bearing samples included: both sides load every bundled MSA and attach every listed template.

  • One GPU, serial, one structure per forward call.
  • Time only GPU-synchronized model.forward(). Featurization, transfers, postprocessing, writing, and scoring stay outside the window.
  • Discard one warmup forward, then report one measured forward per sample.
  • BioIR runs its default optimized config, which captures CUDA graphs of each model's trunk recycle, diffusion step, and confidence Pairformer (OpenFold2: trunk recycle only) for inputs up to 1024 tokens, or 2048 for the diffusion step on GPUs with at least 64 GiB; larger inputs run those regions eagerly. The results below were measured 2026-10-14.
  • OSS runs its own inference script: eager always, plus torch.compile when it passes a dynamic-shape probe.
  • Runtime knobs match on both sides — 200 sampling steps, 3 or 5 diffusion samples, and per-model recycling.
  • Score written structures with OpenStructure lDDT and DockQ. Speedup is OSS forward / BioIR forward; above 1 favors BioIR.
  • Future work will add additional Blackwell-optimized kernels.

Results

Model H100 H200
Boltz-2 3.81x / 6.35x 4.33x / 6.19x
OpenFold3 6.27x / 8.20x 5.63x / 7.93x
OpenFold2 / AlphaFold2 monomer 6.08x / 5.70x 5.98x / 6.02x
OpenFold2 / AlphaFold2 multimer 5.27x / 6.03x 5.25x / 6.09x
Protenix — / 5.37x — / 5.03x

Geomean speedup, vs OSS torch.compile / vs OSS PyTorch eager; above 1 favours BioIR. Protenix has no torch.compile path. Twelve GPUs, per-model accuracy and peak memory, and how to reproduce any of it: docs/ref/benchmark.md.

The bench-perf-oss agent skill has the full gates, environment isolation, result schema, and charting protocol.

Contributing

We welcome contributions. See contributing.md for policy and docs/dev.md for the development workflow.

Citation

If you use BioIR in your research, please cite it via CITATION.cff.

Contact / Support

License

NVIDIA-authored BioIR code is licensed under the Apache License 2.0. Distribution compliance material is available here:

Notice and Disclaimer

The following notice applies to separately downloaded components, including runtime dependencies, model checkpoints, and chemical metadata.

NOTICE AND DISCLAIMER: This software automatically retrieves, accesses or interacts with external materials. Those retrieved materials are not distributed with this software and are governed solely by separate terms, conditions and licenses. You are solely responsible for finding, reviewing and complying with all applicable terms, conditions, and licenses, and for verifying the security, integrity and suitability of any retrieved materials for your specific use case. This software is provided "AS IS", without warranty of any kind. The author makes no representations or warranties regarding any retrieved materials, and assumes no liability for any losses, damages, liabilities or legal consequences from your use or inability to use this software or any retrieved materials. Use this software and the retrieved materials at your own risk.

Metadata

Release files for bionemo-ir 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for bionemo-ir 0.2.0
File Interpreter ABI Platform
bionemo_ir-0.2.0-cp312-cp312-manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ x86-64 Details
bionemo_ir-0.2.0-cp312-cp312-manylinux_2_34_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ ARM64 Details

Total release size: 74.6 MB

Release files / bionemo_ir-0.2.0-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL bionemo_ir-0.2.0-cp312-cp312-manylinux_2_34_x86_64.whl
Size 37.3 MB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
afc64f92a3b4ac96d23840136201fe0e21317ef2918437690718e6c4cc0d74f0
BLAKE2b-256 checksum
How to use checksums
5fd3b2e9b3f1aa5b24bf499a0bd3816739a26d7b2b2aee477a36a940ca5e9302
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / bionemo_ir-0.2.0-cp312-cp312-manylinux_2_34_aarch64.whl

Download URL bionemo_ir-0.2.0-cp312-cp312-manylinux_2_34_aarch64.whl
Size 37.3 MB
Tags CPython 3.12 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
cf77fbe08f21f409e1001c994360e2cbdfde67ca70f54141de4d974a49a9d54b
BLAKE2b-256 checksum
How to use checksums
b270931abdb8f22f661c6b844b0805714fecbef8110f4d3eb797af2cb4aabdc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for bionemo-ir 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page