BioIR Support Matrix
What BioNeMo Inference Runtime (BioIR) runs, on which GPUs, and which fused
kernels it uses. How to construct a model or call build_processor is in
Python API.
Model keys are the strings in
bionemo_ir.hubs.FoldingSupportMatrix. Pass them as
EngineProcessorConfig.model_source or as model_name= on the constructor.
Wheel Compatibility
- OS: Linux with glibc 2.34 or newer.
- CPU: x86_64 (amd64) or aarch64 (arm64). Each architecture has its own wheel, compatible with CPython 3.12, 3.13, and 3.14.
- GPU and driver: An NVIDIA GPU listed below and driver 580 or newer.
See Installation for build tools, dependencies, and setup.
Models and Data Pipeline
Every model below runs on the optimized PyTorch backend.
Distributed execution in build_processor is replica mode only: each
engine worker holds a full model copy on a single GPU and folds independent
inputs (ParallelismMode.REPLICA;
api.md Ray replicas). Splitting one
forward pass across GPUs (model / context parallelism, as in
Fold-CP) is planned, not
available yet.
boltz-2-affinity has an nn.Module but no tokenizer, feature factory, or
postprocessor. Do not pass it to build_processor.
protenix-v2 builds the same model inputs as the Protenix v2.0.0 release
data pipeline. Its postprocessor requires return_full_data=True;
build_processor rejects False. The pipeline defaults to
consume_input_features=True, which frees model inputs during the forward
except the postprocessor’s (keep_input_features). The default
compact_confidence=True sets ProtenixConfig.compact_output.
Like the Protenix v2.0.0 release, the trunk keeps a random subset of MSA rows
on every recycle (msa_module_config.sample_rows, seeded by the request seed).
The release also applies Monte Carlo dropout to the recycled pair state for a
random 40% of requests; BioIR does not.
Ligand structure prediction on Boltz-1/2, OpenFold3, and Protenix is supported; affinity prediction is not.
Input coverage for the bundled data pipeline (InputRequest → parser →
writer). “Supported” means the pipeline accepts the input and produces a
structure. ”—” means the mode does not apply to that family.
Notes:
- Nucleic acids and ligands are Boltz-1/2, OpenFold3, and Protenix only. OpenFold2 / AlphaFold2 fold protein chains exclusively.
- Templates are allowed only on
polymer_type="protein". BioIR does not run HHsearch / HMMsearch; pass CIF (or PDB) hits you already have. Protenix accepts mmCIF only, attaches every supplied template that aligns, and fills the slots in the supplied order. - Nucleic-acid and ligand chains carry no MSA. Protenix reads supplied RNA
MSAs only with
ProtenixConfig.use_rna_msa=True; the release default is off. - AF2 monomer takes a single unpaired a3m per chain. AF2 multimer accepts paired a3m (some sample builders require it on every chain). Boltz-1/2 and OpenFold3 treat paired MSAs as optional. Protenix pairs protein rows by species identifiers and includes them in the unpaired pool by default.
Polymer.polymer_type is "protein", "rna", "dna", "ccd_ligand" (a
CCD code or _-joined list), or "smiles_ligand" (a SMILES string in
sequence). Schema details: api.md input requests.
GPUs
This table is backend compatibility, not release qualification. It says which fused kernels apply on each architecture; every row runs. The devices this release is qualified on are H200, H100, A100, L40S, GB200, and GB300, with measured results for each in Benchmarks. The rest of the table works and is not part of that set.
Optimized CuTeDSL kernels cover Ampere through Hopper, plus SM100 / SM103 for
outer-product mean, the attention epilogue and both dual GEMMs, plus SM100 /
SM103 / SM107 / SM120 / SM121 for pair-weighted averaging and AdaLN; the kernel
table below lists the exact SMs per kernel. On SM90, pair-weighted averaging
runs Hopper TMA + WGMMA kernels at D=32 and D=8 and fuses at every size in
bf16 and fp16. On a 96 GB H100 the fused layer beats eager at every size
measured, through 12288 tokens, where eager runs out of memory at D=32 and on
Protenix. On SM100, both shapes run tcgen05 kernels and fuse at every size in
bf16 and fp16, as on SM90. The Boltz shape (D=32, c_m=64) gives a CTA 1, 2
or 4 MSA rows. D=8 uses CTA pairs and thread-block clusters that multicast w
and v. The layer writes v transposed for it, so the kernel loads each head’s
values in 128-byte rows. On B200 the fused layer beats eager at 128-16384 tokens
with 1-4096 MSA rows, for both shapes and both dtypes, wherever eager fits in
memory. SM103 runs the SM100 kernels and tables, also at every size; they were
tuned on B200 and are not measured on B300. SM107 (Vera Rubin) compiles the same
tcgen05 kernels for sm_107a and has its own tile tables, tuned on a Rubin GPU,
which has 212 SMs against 148 on B200; they were measured on one device. The
shipped CUBIN pack has no SM107 image until the protected refresh publishes it,
so a source-free launch there uses PyTorch. SM120 and SM121 fuse D=32 bf16
through 2048 tokens, where the tables record a win. The committed CUBIN packs
still have the previous SM90, SM100 and SM103 tiles and no SM120 or SM121 image,
so a source-free launch with a missing or stale image uses PyTorch. Every SM120
and SM121 shape stays on the Ampere kernel. Outer-product mean runs CuTeDSL only
where it has a native kernel and Triton on every other SM80+ SKU. On SM100
and SM103, triangle attention falls back to cuEquivariance; on SM120 and
SM121, triangle attention and both dual GEMMs do. The PyTorch backend still
runs on any of these SKUs; rows below describe which fused kernels apply.
Check the device:
(8, 0) is A100 / Ampere, (8, 9) is L40 / Ada, (9, 0) is H100 / Hopper,
(10, 0) is B200 / SM100, (10, 3) is B300 / SM103, (12, 0) is SM120,
(12, 1) is DGX Spark / SM121, (10, 7) is Vera Rubin / SM107.
By default, for inputs up to 1024 tokens, Boltz-2, OpenFold3, and Protenix
(protenix-v2) capture one trunk recycle, one diffusion step, and the
confidence Pairformer as CUDA graphs; Boltz-1 captures the diffusion step;
OpenFold2 / AlphaFold2 capture one trunk recycle. The diffusion step captures up
to 2048 tokens on a device with at least 64 GiB. Replays skip per-kernel launch
overhead (largest win on short sequences). Limits and opt-out: api.md CUDA
graphs.
Fused Kernels
get_pretrained_config selects the Heuristic triangle-attention backend and
CuTeDSL pairwise attention on SM80 / SM86 / SM89 / SM90 / SM100 / SM103 for
fp16 / bf16.
Heuristic sends SM90 BF16 D=32 triangle attention of at least 23M attention
scores (batch * i_dim * tokens^2 * heads, for example 184 tokens with four
heads) to the source-visible ClaudeKit CUDA kernel and every other shape to
the CuTeDSL CUBIN. On SM100 and SM103, triangle attention uses
cuEquivariance; on SM120 and SM121, triangle attention and both dual GEMMs
do (no CuTeDSL CUBIN). Other SKUs or fp32 fall back to cuEquivariance (triangle
attention if installed) or PyTorch SDPA.
Call through the dispatchers below (bionemo_ir._torch.attention_backend
and bionemo_ir._torch.custom_ops). Layers wrap the same ops:
TriangleAttention / AttentionPairBias, TriangleMultiplicationNode,
PairWeightedAveraging, OuterProductMean, AdaLN, LNProjMoveaxisPad,
Transition, ConditionedTransitionBlock, PairTransition, MSATransition.
On 100 and 103 the attention epilogue runs two kernels of its own, at any head split. A 2-SM kernel serves (H·D, C) of 128/128 or 256/256 with a residual and an optional output-projection bias, as the triangle and MSA attentions use it; at 128/128 it also takes the atom transformers’ output gate. Another serves the token transformers’: 768/768 with a residual, an output gate and an optional output-projection bias, as in the diffusion token transformer and RFProteína’s trunk. Both kernels cost several microseconds per call however few rows it has, so small calls take the Ampere kernel instead, tuned on B200: up to 19,200 pair rows at 128/128 (N = 138 for a triangle attention), 9,792 at 256/256 (N = 98) and 752 at 768/768 (150 tokens of 5 samples). Other layers on these SMs take PyTorch.
The diffusion atom encoders and decoders of Boltz-1, Boltz-2, OpenFold3, and Protenix run windowed atom attention on the pair biases they prepare once per sampling rollout, which carry the key mask. The kernel serves bf16 and fp16 atom transformers (the shipped presets run them in bf16) with 32-dim heads in 32-query windows over 128 keys; other calls, dtypes, and GPUs, including SM120 / SM121, take SDPA.
A normalizing Transition first tries the fused LayerNorm route described
below. Its SwiGLU MLP otherwise takes the first path that ships for its shape:
the transition MLP; then, in ConditionedTransitionBlock only, the x_x dual
GEMM’s silu gate for the gated projection; then the Triton fused SwiGLU. On
SM100 / SM103 the transition MLP serves the SwiGLU Transition at (width,
hidden) of (64, 128), (64, 256), (128, 256), (128, 512), (256, 512) and
(256, 1024), masked or not, and small width-256 calls keep the unfused path,
which is faster there. At (128, 256) it also serves the MLP of the
atom-transformer ConditionedTransitionBlock: 2-way SwiGLU in OpenFold3 and
Protenix, 3-way in Boltz-1. Other 2-way ConditionedTransitionBlock calls
project through the Blackwell x_x kernels, and other 3-way ones run the
Triton fused SwiGLU.
On SM100 the OpenFold3 and Protenix atom transformers fuse their whole
ConditionedTransitionBlock while they sample. Each rollout projects the
block’s conditioning once into a per-atom table of AdaLN scale, shift and
output-gate values, which every diffusion step reuses. The block then runs its
AdaLN, SwiGLU MLP, gate and residual as one bf16 kernel for a rollout of one
batch item, with any number of samples. The kernel ships as source, not as a
CUBIN, so released wheels run the AdaLN, transition MLP and gate separately, as
do batches of several items and SM103 GPUs.
PairTransition, MSATransition, and a Transition that normalizes its input
run the LayerNorm and both linears as one transition_mlp_w_norm kernel in bf16
wherever the op ships the layer’s width, hidden width, and activation. The
kernel reads each row of the pair or MSA map once, with or without the mask and
the residual. Each layer folds its LayerNorm into the first linear’s weights
when it is built, and again after load_weights or load_state_dict.
SM100 and SM103 ship every shape and activation that SM90 ships, plus ReLU at 256 → 512; SM103 runs SM100’s configs until they are tuned on a B300. A call too small to fill the GPU splits each row tile’s hidden width across two to eight CTA pairs, which sum their partial outputs in a fixed order, so every call size runs the kernel. Only ReLU at 384 → 768 below about 2,560 rows (N ≤ 50) runs slower than the unfused path would. Other shapes, other GPUs, and inputs the op declines, such as strided ones, take the LayerNorm followed by the transition MLP where it ships for the call, else by the layer’s own linears. On SM90 the transition MLP ships only for ReLU at 256 → 512 and for SwiGLU at 128 → 256 without the residual.
An x_x tuning bundle may declare min_rows, below which the dual GEMM’s fixed
cost outweighs a separate projection and SwiGLU pass. On SM100 / SM103 the
768-wide diffusion-token ConditionedTransitionBlock therefore takes the Triton
fused SwiGLU path below 2305 rows (samples × tokens).
TriangleMultiplicationNode runs the TriMul KF chain when its model pads tokens
(enable_token_pad, on by default) and the node is bf16 with a
(dim, hidden_dim) of 32/32, 64/64, 128/128, 256/256, or 384/256, without
trimul_high_precision or trimul_mean_normalization. K1 applies the input
LayerNorm and gated projections, K2 the triangle contraction, and K3 the output
LayerNorm, projection, gate, and masked residual. The Boltz, Protenix, and
OpenFold3 trunks run it in their MSA, template, and pairformer stacks; OpenFold2
in its Evoformer and extra-MSA stacks; RFProteina in its velocity-network pair
updates. Confidence heads, OpenFold2 templates, and calls whose token counts are
not multiples of 8 take the dual-GEMM path.
Override backends on a config if you need a reference path, for example
config.trunk.set_triangle_attention_backend("SDPA").
CuTeDSL source is not open-sourced, and there is no plan to publish it.
The public tree and wheels ship the Python callables plus precompiled CUBIN
payloads for every CuTeDSL kernel in the table above. They do not ship the
CuTeDSL kernel implementations used to generate those CUBINs.
The Apache-2.0/BSD-3-Clause ClaudeKit D=32 SM90 source is the exception: it
ships in cpp/kernels/claude_kit_triangle_attention_sm90_D32/ and is compiled
with the wheel’s native extension.
Loading a CUBIN skips CuTeDSL JIT (cute.compile), so those kernels run at
full speed on the first iterations — no kernel-JIT warmup is required to hide
compile latency. If a CUBIN is missing for the current SM / dtype, those ops
fall back to PyTorch (SDPA or a vanilla reference) rather than JIT-compiling
CuTeDSL. Triton fused ops in bionemo_ir.dsl_kernels.triton remain
ordinary Python source and still JIT on first use.