geometric-nn-ops: Triton Kernels for Protein-Folding Triangle Operations on ROCm AMD contributed Triton kernels for the triangle attention and triangle multiplicative update operations in OpenFold3 (aqlaboratory/openfold-3#166) in 2026, and the work is now packaged as geometric-nn-ops 1.0, a standalone, model-agnostic PyTorch library on ROCm. On an AMD Instinct MI355X GPU at N = 768 (bf16, H = 4, D = 32), the triangle attention kernel's forward pass peaked 0.15 GiB above its inputs versus 10.41 GiB for a direct einsum-and-softmax PyTorch implementation, a roughly 69x memory reduction, with about 9.5x for forward and backward together. The library adds a public API matching pair-representation projections, dispatch between Triton and PyTorch paths based on autograd state, one fp32 precision contract across CDNA 3 and CDNA 4 GPUs, and a compatibility package so calls written against cuequivariance_torch run unchanged on ROCm. geometric-nn-ops: Triton Kernels for Protein-Folding Triangle Operations on ROCm geometric-nn-ops-triton-kernels-for-protein-folding-triangle-operations-on-rocm AlphaFold3-style co-folding models such as OpenFold3, Boltz, and Protenix update an N×N pair representation, one feature vector per pair of the complex’s N tokens, with two triangle operations in every trunk block: triangle attention and the triangle multiplicative update. Both update each pair i, j by summing over a third token k, so their cost grows as N³ while the rest of the trunk grows as N². Doubling the size of a complex multiplies the work of the triangle operations by up to eight and that of everything else by up to four, so on large complexes these two operations dominate the trunk. In 2026, AMD contributed Triton kernels for these operations directly into OpenFold3 aqlaboratory/openfold-3 166 https://github.com/aqlaboratory/openfold-3/pull/166 \ 2\ references , the inference work behind OpenFold3 Meets AMD Instinct GPUs https://www.amd.com/en/blogs/2026/openfold3-meets-amd-instinct-gpus-unlocking-scalable.html \ 3\ references . geometric-nn-ops https://github.com/ROCm/geometric-nn-ops 1.0 \ 1\ references turns that work into a standalone, model-agnostic PyTorch library. Beyond the kernels themselves, it adds the layer a model integrates against: - A public API whose layout matches the pair-representation projections. - Dispatch that picks the Triton or PyTorch path from the autograd state of each call. - One fp32 precision contract across AMD CDNA™ 3 and CDNA 4 GPUs. - A compatibility package, so triangle-operation calls written against cuequivariance torch run unchanged on ROCm™. - A test suite that checks every op against fp64. The triangle attention kernel underneath, including its training backward pass, is derived from the one OpenFold3 ships in its tree, with an explicit matmul precision on every dot product and base-2 softmax as a call argument. In our testing on an AMD Instinct™ MI355X GPU at N = 768 bf16, H = 4, D = 32 , its forward pass peaked 0.15 GiB above its inputs against 10.41 GiB for a direct einsum-and-softmax PyTorch implementation, a reduction by a factor of about 69. For forward and backward together, the reduction factor is about 9.5 \ 1\ memory . This post assumes you know the triangle operations AlphaFold2 supplementary Algorithms 11–14 https://doi.org/10.1038/s41586-021-03819-2 \ 4\ references , AlphaFold3 https://doi.org/10.1038/s41586-024-07487-w \ 5\ references and flash attention FlashAttention-2 https://arxiv.org/abs/2307.08691 \ 6\ references , and covers what is specific to geometric-nn-ops: how the triangle attention kernel handles the shared pair bias in its forward and backward passes, which parts of the multiplicative update run in Triton and when, how fp32 matmul precision resolves on AMD Instinct MI300X and MI355X GPUs, and how the compatibility shim works. What geometric-nn-ops 1.0 Provides what-geometric-nn-ops-1-0-provides Version 1.0 provides the triangle submodule of geometric nn ops torch : | Operation | Forward | Backward | |---|---|---| | triangle attention | Triton | Triton | | triangle multiplicative update | Triton; PyTorch when autograd records the call | PyTorch | | attention pair bias | PyTorch | PyTorch | attention pair bias is implemented in PyTorch. Its pair-bias LayerNorm and projection deliberately carry no bias terms. Each would only add a per-head constant to every logit, which softmax cancels, so the parameter has a true gradient of zero and can drift under optimizer rounding noise, depending on weight decay, costing accuracy in a low-precision implementation that carries it. The library ships as two packages. geometric-nn-ops-torch holds the kernels and their direct API, and is the recommended dependency. hipequivariance-ops-torch is an optional shim that provides the cuequivariance ops torch module, so cuequivariance torch triangle-operation calls reach the same kernels without source changes. Figure 1 shows both paths into the kernels. Figure 1. Two ways into the same kernels: the direct API, or unmodified cuequivariance torch code through the shim. The supported ROCm, PyTorch, and GPU combinations are listed in the repository README https://github.com/ROCm/geometric-nn-ops/blob/v1.0.0/README.md ; this post covers AMD Instinct MI300X and MI325X gfx942, CDNA 3 architecture , along with MI350X and MI355X gfx950, CDNA 4 architecture . Inside the Triangle Attention Kernel inside-the-triangle-attention-kernel Triangle attention around the starting node computes, for every row i , o ij = softmax k q ij · k ik / √D + b jk v ik . Viewed as attention, that is a batch of N independent problems, one per row, except for the bias: b jk does not depend on i , so all N rows share one H, N, N bias. A direct PyTorch implementation materializes B, N, H, N, N logits, O N³·H memory per call. The geometric-nn-ops kernel is a flash-attention-style kernel online softmax in the forward, recomputation in the backward built around that shared bias, and never forms that tensor. Peak GPU memory of one call in our testing, above the resident inputs, against the same computation written in PyTorch bf16, B=1, H=4, D=32, with a pair bias and key mask \ 1\ memory : | N | Pass | geometric-nn-ops | PyTorch | |---|---|---|---| | 384 | Forward | 0.04 GiB | 1.34 GiB | | 384 | Forward and backward | 0.46 GiB | 2.36 GiB | | 768 | Forward | 0.15 GiB | 10.41 GiB | | 768 | Forward and backward | 1.86 GiB | 17.58 GiB | Layout layout The op takes q , k , and v as ..., N seq, N res, H, D and the bias as B, H, N res, N res or B, 1, H, N res, N res . This is the layout a linear projection of the pair representation produces: linear z .view B, N, N, H, D gives it directly, with no transpose in model code. Inside, the kernel works on B, N seq, H, N res, D . The ending-node form is the same call on the transposed pair representation. Masking Without NaNs masking-without-nans The mask is boolean, True to keep a key, broadcastable to B, N seq, 1, 1, N res : one key mask per row, shared by every query and head in that row. The wrapper turns it into an additive bias of -mask val rather than -inf before launch. mask val is 1e9 for fp32 and bf16, and half the fp16 maximum for fp16, because 1e9 overflows fp16 to inf . If -inf were used instead, a row whose first key tile is fully masked would set the running max to -inf , and the online softmax would compute -inf - -inf , producing NaNs even when the row has valid keys in later tiles. Softmax over a row with every key masked is undefined, and the finite sentinel makes such rows return a well-defined but meaningless value. Mask out padded rows after the op, and before the loss in training: a fully masked row with a nonzero upstream gradient still adds to the shared bias gradient. Backward: Reducing the Bias Gradient in Registers backward-reducing-the-bias-gradient-in-registers Because one bias is shared by all N seq rows, its gradient is a sum over rows: d bias b, h, i, j = Σ s dS b, s, h, i, j . The backward runs as three kernels, and the third launches one program per tile of the bias, so each d bias tile has exactly one owner and is summed without atomics: | Kernel | One program per | Work | Writes | |---|---|---|---| | Preprocess | 16 query rows of b, s, h | D = rowsum dO ⊙ O | D , and dO reordered to the internal layout in the same pass | | dK , dV | 128 key rows of b, s, h | Loop over query tiles; recompute P ; accumulate dV and dK | Plain stores, directly in the user layout | | d bias and dQ | b, h, i-tile, j-tile of the bias | Loop over every row s ; recompute P , dP , dS ; accumulate d bias | One store per d bias tile; dQ by atomic add | The d bias owner walks every row s , keeps the running sum in fp32 registers, and stores the tile once: d bias / dQ kernel abridged . One program owns one i, j tile of d bias. dbias block = tl.zeros BLOCK SIZE Q, BLOCK SIZE KV , dtype=tl.float32 for index msa in tl.range 0, N SEQ, num stages=PIPE STAGES : software-pipelined over rows ... load K, V, Q, dO, M, D of row index msa; recompute QK block ... P block = tl.math.exp tl.minimum QK block - M block, 0.0 dP block = tl.dot dO block, V T block, input precision=MATMUL PRECISION dS block = P block dP block - Di :, None dbias block += dS block reduction over rows stays in registers dQ block = softmax scale tl.dot dS block.to K T block.dtype , tl.trans K T block , input precision=MATMUL PRECISION tl.atomic add dQ + msa off + qd, dQ block, mask=q valid, sem="relaxed" tl.store dbias ptrs, dbias block, mask=qk valid single store, no atomics The cost: P and dP are rebuilt in both the dK / dV kernel and the d bias / dQ kernel, and because every key tile contributes to dQ , dQ is accumulated with atomic adds. The d bias result is deterministic; dQ is not, so gradients with respect to q can differ in the last bits from run to run. When no bias is passed, a compile-time flag removes all of the d bias work. Figure 2 shows the three backward kernels and how each one writes its results. Figure 2. The three backward kernels. Kernel 3 owns each bias-gradient tile and sums it over rows in registers. Launch Configuration and Variable Sequence Lengths launch-configuration-and-variable-sequence-lengths Tile sizes come from fixed rules rather than autotuning, and on ROCm the launches add AMD-specific options occupancy and allow flush denorm in the forward, occupancy and matrix fused multiply-add MFMA shape in the two main backward kernels that are identical on gfx942 and gfx950. By default the forward kernel treats the sequence dimensions as compile-time constants, so every new N seq, N res compiles a new kernel. That suits training on a fixed crop size and hurts inference, where almost every input has a different length. triangle attention ..., dynamic=True selects a forward variant that takes N seq and N res as runtime arguments, so the number of compiles stays bounded as new lengths arrive: Triton still specializes integers by whether they equal 1 or are divisible by 16, so lengths fall into a handful of classes. In our testing, over 40 random lengths between 64 and 512, with a pair bias and mask, the default path compiled 40 forward kernels and dynamic=True compiled four \ 1\ memory . The head count, head dimension, and dtype stay specialized, the output is bitwise identical to the specialized path, and the backward is unaffected by the flag. Use it when input lengths vary from call to call; with a fixed crop size the default kernel is the better fit, because the dynamic variant always takes the boundary-masked loads. Triangle Multiplicative Update: Fused Epilogues Around a Batched GEMM triangle-multiplicative-update-fused-epilogues-around-a-batched-gemm The multiplicative update AlphaFold2 Algorithms 11 and 12 \ 4\ references is a LayerNorm, gated input projections, a contraction over k , and a gated output projection. geometric-nn-ops permutes the projected a and b so that channels become the batch dimension and both directions, outgoing and incoming, become one batched general matrix multiply GEMM , which PyTorch dispatches to the platform Basic Linear Algebra Subprograms BLAS library. The LayerNorm and projection steps around the contraction run in two Triton kernels. A row-wise LayerNorm kernel handles both normalizations. A linear kernel computes x Wᵀ with fp32 accumulation and applies its epilogue under compile-time flags, HAS BIAS , APPLY SIGMOID , APPLY MUL , and HAS MASK , so the gating, masking, and bias of each projection happen in the GEMM’s registers instead of as separate elementwise passes. Figure 3 shows the resulting forward pipeline, with the Triton kernels around the PyTorch batched GEMM. Figure 3. The multiplicative update forward on the Triton path: six Triton launches around a PyTorch batched GEMM. The Triton path does not fuse every step. The gate, the projection, the GEMM output, and the output gate are each materialized at N, N, C scale, and the contraction, the layout copies around it, and the final gate multiply run as PyTorch ops. The Triton path is forward-only, so dispatch takes the PyTorch path whenever autograd records the call, meaning grad mode is on and an input requires grad: php def needs torch path x: torch.Tensor, weights - bool: if not TRITON AVAILABLE or not x.is cuda or x.dtype not in TRITON DTYPES: return True return torch.is grad enabled and x.requires grad or any w is not None and w.requires grad for w in weights | Situation | Path | |---|---| | torch.inference mode or torch.no grad | Triton | | Grad enabled, but neither x nor any weight requires grad | Triton | | Grad enabled and x or a weight requires grad | PyTorch differentiable | | CPU tensor, fp64, or Triton unavailable | PyTorch | Checking torch.is grad enabled matters: a tensor keeps requires grad=True inside no grad and inference mode , so an evaluation pass inside a training loop would otherwise take the PyTorch path. Two numerical details differ from the PyTorch path: the Triton LayerNorm computes the variance in a single pass and uses 1/sqrt max var, eps where PyTorch uses 1/sqrt var + eps , and the sigmoid input is clamped to ±20. The paths agree to within tolerance on typical activations but not bitwise, and rows whose variance is close to eps , or small relative to their squared mean, can differ substantially: at a variance equal to eps the normalized values differ by a factor of √2, so expect a visible change there when a model moves between training and inference. One fp32 Precision Contract for CDNA 3 and CDNA 4 GPUs one-fp32-precision-contract-for-cdna-3-and-cdna-4-gpus None of the ops take a precision argument. For fp32 inputs they follow PyTorch’s global setting, torch.backends.cuda.matmul.fp32 precision . The PyTorch parts, such as the multiplicative update’s batched GEMM and its training path, apply it through PyTorch’s own GEMM libraries; the Triton kernels resolve it against the dot precisions the Triton backend reports for the current GPU. "tf32" takes the first supported mode among tf32 , bf16x3 , and ieee . "ieee" always stays ieee , so the result is never less accurate than requested: | fp32 precision | gfx942 MI300X, MI325X | gfx950 MI350X, MI355X | |---|---|---| | unset default | ieee | ieee | | "tf32" | tf32 XF32 MFMA | bf16x3 | | "ieee" | ieee | ieee | The CDNA 3 architecture has an XF32 matrix instruction, so "tf32" maps to it directly. The CDNA 4 architecture has no XF32 , and its Triton backend offers ieee , bf16x3 , and bf16x6 , so "tf32" resolves to bf16x3 , which emulates a reduced-precision fp32 product with three bf16 products. bf16 and fp16 inputs always compile with ieee , because Triton ignores the setting for them and a second, identical kernel would only cost compile time. A test parses every Triton kernel in the package and checks that each tl.dot passes an explicit input precision , because Triton otherwise picks a default per target and the contract silently breaks. Known Limitations in 1.0 known-limitations-in-1-0 Version 1.0 has these limitations: - Multiplicative update backward: the Triton path is forward-only; any call that autograd records runs the differentiable PyTorch path. - Attention with pair bias: attention pair bias , the attention over the single representation, is implemented only in PyTorch, with no Triton kernel. This does not affect triangle attention , whose shared pair bias runs in Triton in both passes. Getting Started getting-started Build the packages from source in the ROCm PyTorch container below. Install the Library install-the-library The packages are pure Python; build them from source inside the recommended ROCm PyTorch container: Clone on the host and start the ROCm PyTorch container with the clone mounted. git clone --branch v1.0.0 https://github.com/ROCm/geometric-nn-ops.git cd geometric-nn-ops/ docker run -it --rm \ --network=host --device=/dev/kfd --device=/dev/dri --group-add video \ --security-opt seccomp=unconfined --ipc=host \ -v "$PWD":/geometric-nn-ops -w /geometric-nn-ops \ --name=geometric nn ops \ rocm/pytorch:rocm10.1.0 ubuntu24.04 py3.12 pytorch release 2.13.0 Inside the container, build and install the wheel. Always pass --no-deps : when pip judges a torch or triton requirement unmet, by version or because the ROCm build is installed under another name such as pytorch-triton-rocm , it replaces the ROCm build with a non-ROCm one. --no-deps keeps pip from replacing the ROCm builds of torch and triton. pip wheel . --no-deps -w ~/dist/ pip install --no-deps ~/dist/geometric nn ops torch- .whl Check Triangle Attention Against fp64 check-triangle-attention-against-fp64 This snippet runs triangle attention forward and backward with a shared bias and a key mask, and checks the output, the bias gradient, and the query gradient against an fp64 reference. It then runs the ending-node form, which is the same op on the transposed pair representation. The bound, cosine similarity of at least 1 - 1e-4 and relative error of at most 5e-2 , is the library test suite’s bf16 tolerance for this op. N = 200 is not a multiple of the tile sizes, so the boundary paths run too. Triangle attention around the starting node, forward and backward, against fp64 import torch import torch.nn.functional as F from geometric nn ops torch.triangle import triangle attention torch.manual seed 0 B, N, H, D = 1, 200, 4, 32 N seq = N res = N q, k, v = torch.randn B, N, N, H, D, device="cuda", dtype=torch.bfloat16 for in range 3 bias = torch.randn B, H, N, N, device="cuda", dtype=torch.bfloat16 one bias for all N rows mask = torch.ones B, N, 1, 1, N, device="cuda", dtype=torch.bool mask ..., -8: = False mask the last 8 keys of every row grad out = torch.randn B, N, N, H, D, device="cuda", dtype=torch.bfloat16 def reference q, k, v, bias : """softmax k q ij . k ik / sqrt D + b jk v ik with the key mask, in fp64.""" s = torch.einsum "bijhd,bikhd- bhijk", q, k / D 0.5 + bias :, :, None s = s.masked fill ~mask.view B, 1, N, 1, N , float "-inf" return torch.einsum "bhijk,bikhd- bijhd", s.softmax -1 , v def check name, got, ref, rel max=5e-2 : """Cosine similarity and relative Frobenius error against a reference.""" got, ref = got.double .flatten , ref.flatten cos = F.cosine similarity got, ref, dim=0 .item rel = got - ref .norm / ref.norm .item print f"{name}: cos={cos:.6f} rel err={rel:.2e}" assert cos = 1 - 1e-4 and rel <= rel max, f"{name} is outside the tolerance" Kernel path in bf16, reference path in fp64 from the same values. leaves = t.clone .requires grad True for t in q, k, v, bias ref leaves = t.double .requires grad True for t in q, k, v, bias out = triangle attention leaves, mask ref = reference ref leaves out.backward grad out ref.backward grad out.double check "output", out, ref check "d bias", leaves 3 .grad, ref leaves 3 .grad check "dq", leaves 0 .grad, ref leaves 0 .grad Ending node: the same op with the i and j axes of the pair representation swapped. def swap t : return t.transpose 1, 2 with torch.inference mode : bias end = bias.transpose -1, -2 .contiguous the bias is projected from the swapped pairs too The key mask here is the same for every row, so it is reused as-is; a pair mask would be transposed. end = swap triangle attention swap t .contiguous for t in q, k, v , bias end, mask check "ending node", end, swap reference swap t .double for t in q, k, v , bias end.double print "triangle attention check passed" Compare the Two Multiplicative Update Paths compare-the-two-multiplicative-update-paths Run this snippet in the same Python session as the previous one; it reuses B , N , and check . It runs the multiplicative update twice on the same inputs: under torch.inference mode , which takes the Triton path, and with trainable weights, which takes the differentiable PyTorch path. p in weight and g in weight hold the a and b projections concatenated, as 2 · C hidden, C z . The relative-error bound is the suite’s bf16 tolerance for this op, 1.5e-2 . The snippet then repeats both calls with one position replaced by values whose variance is close to the LayerNorm eps , where the two LayerNorm implementations differ, and prints the error at that position for both inputs. Multiplicative update: Triton path inference against the PyTorch path training from geometric nn ops torch.triangle import triangle multiplicative update C = 128 C z = C hidden x = torch.randn B, N, N, C, device="cuda", dtype=torch.bfloat16 def weight shape : return torch.randn shape / shape -1 0.5 .to "cuda", torch.bfloat16 weights = dict norm in weight=weight C + 1, norm in bias=weight C , p in weight=weight 2 C, C , g in weight=weight 2 C, C , norm out weight=weight C + 1, norm out bias=weight C , p out weight=weight C, C , g out weight=weight C, C , with torch.inference mode : triton out = triangle multiplicative update x, direction="outgoing", weights trainable = {name: w.clone .requires grad True for name, w in weights.items } torch out = triangle multiplicative update x, direction="outgoing", trainable check "trimul Triton vs PyTorch path", triton out, torch out.detach .double , rel max=1.5e-2 print "multiplicative update check passed" def err at origin a, b : """Relative error between the two paths at position 0, 0 .""" a, b = a :, 0, 0 .double , b :, 0, 0 .detach .double return a - b .norm / b.norm .item Give position 0, 0 a channel variance ~9e-6 close to the LayerNorm eps 1e-5 x low = x.clone x low :, 0, 0 = 3e-3 torch.randn C, device="cuda", dtype=torch.bfloat16 with torch.inference mode : triton low = triangle multiplicative update x low, direction="outgoing", weights torch low = triangle multiplicative update x low, direction="outgoing", trainable print f"position 0, 0 , original input: rel err={err at origin triton out, torch out :.2e}" print f"position 0, 0 , low-variance input: rel err={err at origin triton low, torch low :.2e}" On AMD Instinct MI300X and MI355X GPUs both snippets print their checks inside the tolerance and print triangle attention check passed and multiplicative update check passed . At position 0, 0 the original input then gives a relative error of about 5e-3 and the low-variance input about 8e-2 . Running cuequivariance torch Code Through the Shim running-cuequivariance-torch-code-through-the-shim Several open-source co-folding codebases, OpenFold3 among them, can call the triangle operations through cuequivariance torch , whose frontend imports its kernels from a module named cuequivariance ops torch . The hipequivariance-ops-torch package provides a module under that name, backed by geometric-nn-ops. Install the Shim install-the-shim Install the shim next to the frontend, and never alongside a cuequivariance-ops-torch- kernel wheel: The shim wheel provides the cuequivariance ops torch module. pip wheel ./hipequivariance ops torch --no-deps -w ~/dist/ pip install --no-deps ~/dist/hipequivariance ops torch- .whl The frontend packages the shim targets; neither declares a torch or triton requirement. pip install "cuequivariance==0.9.1" "cuequivariance-torch==0.9.1" What the Shim Translates what-the-shim-translates The shim does the API translation at the boundary: | Difference | What the shim does | |---|---| | Module name | Provides the cuequivariance ops torch module; raises at import if a cuequivariance-ops-torch-cu12 or cuequivariance-ops-torch-cu13 kernel wheel is also installed, and warns if cuequivariance-torch is not version 0.9.1 | | Attention layout B, N seq, H, N res, D | Transposes the head and sequence axes on the way in and out | | Mask dtype | Casts the mask to bool | | Attention-with-pair-bias argument names | Renames them, and drops the bias terms that softmax cancels, with a warning | | Per-call precision argument of the multiplicative update | Checks it against the PyTorch global: raises if more precision is requested than the global provides, warns if less | Run Unmodified cuequivariance torch Code run-unmodified-cuequivariance-torch-code The frontend call below is unmodified cuequivariance torch code, and its result is bitwise equal to the direct call, which confirms it ran the geometric-nn-ops kernel: Unmodified cuequivariance torch code, routed to geometric-nn-ops by the shim import torch import cuequivariance torch as cuet from geometric nn ops torch.triangle import triangle attention cuequivariance layout: q, k, v are B, N seq, H, N res, D B, S, H, N, D = 1, 2, 4, 96, 32 q, k, v = torch.randn B, S, H, N, D, device="cuda", dtype=torch.bfloat16 for in range 3 bias = torch.randn B, 1, H, N, N, device="cuda", dtype=torch.bfloat16 mask = torch.ones B, S, 1, 1, N, device="cuda", dtype=torch.bool with torch.inference mode : o cueq = cuet.triangle attention q, k, v, bias, mask=mask, scale=D -0.5 The same call through the direct API, which takes B, N seq, N res, H, D . o direct = triangle attention q.transpose 2, 3 , k.transpose 2, 3 , v.transpose 2, 3 , bias, mask, scale=D -0.5 .transpose 2, 3 print "shim matches the direct call:", torch.equal o cueq, o direct The shim also provides the module paths and constants for the triangle operations that cuequivariance torch 0.9.1 and OpenFold3’s cuEquivariance integration import from the ops layer. The shim brings existing triangle-operation code to ROCm without source changes; for new code, depend on geometric-nn-ops-torch directly. Summary summary In this blog you learned what geometric-nn-ops 1.0 adds for the triangle operations of AlphaFold3-style models on AMD Instinct GPUs. Triangle attention reads the row-shared pair bias without a per-row copy and reduces the bias gradient over rows in registers with no atomics; in our testing at N = 768 on an MI355X GPU, its forward pass peaked 0.15 GiB above its inputs, where a direct PyTorch implementation peaked 10.41 GiB above them. The multiplicative update runs Triton LayerNorm and fused-epilogue linear kernels around a batched GEMM for GPU calls that autograd does not record. One fp32 precision contract follows PyTorch’s global setting, and in the Triton kernels maps "tf32" to XF32 on CDNA 3 GPUs and to bf16x3 on CDNA 4 GPUs. And the hipequivariance-ops-torch shim runs unmodified cuequivariance torch triangle-operation calls on ROCm. Try the library from the geometric-nn-ops repository https://github.com/ROCm/geometric-nn-ops on your pair-representation workloads. Acknowledgements acknowledgements The authors wish to acknowledge the AMD teams that supported this work, whose contributions were instrumental in enabling geometric-nn-ops: Gagan Singh, Geoffrey Martin-Noble, Anuya Welling, James Smith, Aditya Bhattacharji, Pankaj Gupta, Anisha Sankar, Amit Kumar, Ram Seenivasan, Ehud Sharlin, Saad Rahim, Wenbo Shao, Marco Grond, Sriranjani Ramasubramanian, Kristof Denolf, Susanna Pirttikangas, Sandra Polifroni. References references 1. geometric-nn-ops repository: ROCm/geometric-nn-ops https://github.com/ROCm/geometric-nn-ops 2. Enable native AMD ROCm inference via Triton kernels, aqlaboratory/openfold-3 166 : aqlaboratory/openfold-3 166 https://github.com/aqlaboratory/openfold-3/pull/166 3. OpenFold3 Meets AMD Instinct GPUs: https://www.amd.com/en/blogs/2026/openfold3-meets-amd-instinct-gpus-unlocking-scalable.html https://www.amd.com/en/blogs/2026/openfold3-meets-amd-instinct-gpus-unlocking-scalable.html 4. Jumper et al., Highly accurate protein structure prediction with AlphaFold, Nature 596, 583–589 2021 , Supplementary Information: https://doi.org/10.1038/s41586-021-03819-2 https://doi.org/10.1038/s41586-021-03819-2 5. Abramson et al., Accurate structure prediction of biomolecular interactions with AlphaFold 3, Nature 630, 493–500 2024 : https://doi.org/10.1038/s41586-024-07487-w https://doi.org/10.1038/s41586-024-07487-w 6. Dao, FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning 2023 : https://arxiv.org/abs/2307.08691 https://arxiv.org/abs/2307.08691 Disclaimers disclaimers Third-party content is licensed to you directly by the third party that owns the content and is not licensed to you by AMD. ALL LINKED THIRD-PARTY CONTENT IS PROVIDED “AS IS” WITHOUT A WARRANTY OF ANY KIND. USE OF SUCH THIRD-PARTY CONTENT IS DONE AT YOUR SOLE DISCRETION AND UNDER NO CIRCUMSTANCES WILL AMD BE LIABLE TO YOU FOR ANY THIRD-PARTY CONTENT. YOU ASSUME ALL RISK AND ARE SOLELY RESPONSIBLE FOR ANY DAMAGES THAT MAY ARISE FROM YOUR USE OF THIRD-PARTY CONTENT. The information presented in this document is for informational purposes only and may contain technical inaccuracies, omissions, and typographical errors. The information contained herein is subject to change and may be rendered inaccurate for many reasons, including but not limited to product and roadmap changes, component and motherboard version changes, new model and/or product releases, product differences between differing manufacturers, software changes, BIOS flashes, firmware upgrades, or the like. Any computer system has risks of security vulnerabilities that cannot be completely prevented or mitigated. AMD assumes no obligation to update or otherwise correct or revise this information. However, AMD reserves the right to revise this information and to make changes from time to time to the content hereof without obligation of AMD to notify any person of such revisions or changes. THIS INFORMATION IS PROVIDED “AS IS.” AMD MAKES NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE CONTENTS HEREOF AND ASSUMES NO RESPONSIBILITY FOR ANY INACCURACIES, ERRORS, OR OMISSIONS THAT MAY APPEAR IN THIS INFORMATION. AMD SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR ANY PARTICULAR PURPOSE. IN NO EVENT WILL AMD BE LIABLE TO ANY PERSON FOR ANY RELIANCE, DIRECT, INDIRECT, SPECIAL, OR OTHER CONSEQUENTIAL DAMAGES ARISING FROM THE USE OF ANY INFORMATION CONTAINED HEREIN, EVEN IF AMD IS EXPRESSLY ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. AMD, the AMD Arrow logo, Instinct, ROCm, CDNA, and combinations thereof are trademarks of Advanced Micro Devices, Inc. Other product names used in this publication are for identification purposes only and may be trademarks of their respective companies. © 2026 Advanced Micro Devices, Inc. All rights reserved