xnn.dnn.fast.qrnn#
Fast path of QRNN: the fused AEV of ANI and the grouped element networks.
QRNN evaluates its per-element networks three times (two charge cycles and the
energy), one small matrix product per element and layer. The fast path stacks
the weights of all elements and evaluates every layer as one batched product
over the atoms of each element, padded to the largest element
(groupable()), and computes the AEV
with the kernels of xnn.dnn.fast.aev. Both are plain differentiable
operations, so forces and force training take them as well.
Module Attributes
When |
|
0.43-0.59 of the reference's time for small molecules on every GPU measured in float32, a tie near 500k edges on an H200, 300k on an A100 or L40S, 200k on a V100 and 100k on an A30 or T4; in float64 earlier on GPUs with little float64 throughput (an L40S near 20k edges, a T4 near 5k). |