xnn.trfnn#

Transformer family (trfnn): graph-transformer potentials and their shared attention primitive.

  • EquivariantTransformer ("et"), the equivariant transformer of TorchMD-Net (Thoelke & De Fabritiis, ICLR 2022, with the cutoff fix of TorchMD-Net 2.0);

  • Equiformer ("equiformer"), the equivariant graph attention transformer (Liao & Smidt, ICLR 2023);

  • EquiformerV2 ("equiformer_v2"), its eSCN-based successor for higher degrees (Liao et al., ICLR 2024);

  • EdgeMultiheadAttention, the multi-head QKV attention on graph edges that BAMBOO builds on.

The exponential-normal radial basis these models share with BAMBOO and TensorNet lives in xnn.common.featurizers.

Modules

attention

Multi-head QKV attention on graph edges.

fast

Fast paths of the transformer models (fused GPU kernels; see each module).

models

Transformer models: the TorchMD-Net equivariant transformer (ET), Equiformer and EquiformerV2.