xnn.trfnn.fast.equiformer#
Fast path of Equiformer: each transformer block compiled into fused kernels.
The reference blocks run as many small operations per irreps block (the
depth-wise tensor products, the irreps linear maps, the gates, the equivariant
layer norms and the heads), and their backward passes add zero fills and
accumulations for every slice: thousands of kernels per evaluation, most of the
time elementwise. Here every block is compiled (xnn.common.models.compiled;
its tensor products are plain fx code, so the whole block is one graph), with
compiled first and second derivatives in training mode.
Module Attributes
Edge counts below which |
|
The same for training mode (a step with a force loss, second derivatives included), where the compiled derivatives also keep less memory. |