xnn.hybnn.fast.bamboo#

Fast path of the BAMBOO graph-equivariant-transformer messages (Triton kernels).

A GET layer scores every edge with sum_(f in h) q_i k_j per head and sums onto the center v_j o d_ij o a_ij (the scalar message) and v_j o e_ij (the vector message, three components). The scores are the fused attention logits of ET (xnn.trfnn.fast.et), and both messages together are SchNet’s continuous-filter convolution over four feature blocks (the values repeated, the filter [d o a | e]; xnn.gnn.fast.schnet): one program per atom, no edge-sized value tensor. Both kernels are twice differentiable, so force training takes them as well.

Module Attributes

AUTO_POLICY

Edge counts above which use_fast="auto" takes the kernels in evaluation mode (energy and forces).

AUTO_POLICY_TRAINING

The same for training mode (a step with a force loss, second derivatives included).

Functions

supported(device, dtype)

Triton kernels on a CUDA device in float32 or float64.