# AMD releases geometric-nn-ops for optimized protein-folding on ROCm

> **Key takeaway:** A new standalone PyTorch library provides Triton-based kernels that drastically reduce memory usage and compute costs for AlphaFold3-style triangle operations on AMD Instinct GPUs.

**Published:** 2026-12-04T22:03:32.641445+00:00 
**Source:** AMD ROCm Official Blog 
**Category:** ai-local-edge 
**Canonical URL:** https://fosswire.org/news/amd-releases-geometric-nn-ops-for-optimized-protein-folding 

## Summary
AMD has launched geometric-nn-ops 1.0, a model-agnostic PyTorch library designed to accelerate geometric neural network operations essential for protein-folding models. The library specifically targets the computationally expensive triangle attention and triangle multiplicative update operations found in architectures like OpenFold3, Boltz, and Protenix. These operations scale at O(N³) complexity, making them the primary bottleneck for large biological complexes.

By implementing these operations via Triton kernels, the library provides significant performance gains over standard PyTorch einsum implementations. The release includes a compatibility shim, hipequivariance-ops-torch, which allows existing code written for cuequivariance_torch to run on ROCm without modification. The library is optimized for AMD CDNA 3 and CDNA 4 architectures, including Instinct MI300X and MI355X GPUs.

## Technical breakdown of geometric-nn-ops 1.0
- **Memory Optimization:** The triangle attention kernel utilizes a flash-attention-style approach with online softmax and recomputation, reducing peak forward-pass memory usage by approximately 69x compared to direct PyTorch einsum implementations at N=768.
- **Complexity Mitigation:** The kernels address the O(N³) scaling of triangle operations by avoiding the materialization of large [B, N, H, N, N] logit tensors, instead using a shared bias pointer that broadcasts across rows without additional memory copies.
- **Kernel Dispatch and Precision:** The library features an automated dispatch system that selects between Triton or PyTorch paths based on autograd state, maintaining an fp32 precision contract across CDNA 3 (gfx942) and CDNA 4 (gfx950) hardware.
- **API and Compatibility:** The release provides two packages: geometric-nn-ops-torch for direct API access and hipequivariance-ops-torch as a compatibility layer for seamless migration from NVIDIA-centric cuequivariance_torch codebases.

## Why it matters
This release significantly lowers the barrier for researchers using AMD hardware to run state-of-the-art structural biology models like OpenFold3. By providing a drop-in replacement for CUDA-centric libraries, AMD is strengthening the viability of ROCm for specialized scientific computing and high-performance AI workloads.