xnn.gnn.fast.AUTO_POLICY#

xnn.gnn.fast.AUTO_POLICY = AutoPolicy(min_edges={'A100': 15000, 'B200': 40000, 'H200': 60000, 'H100': 60000, 'L40S': 30000, 'T4': 6000, 'V100': 30000, 'A30': 20000}, min_edges_float64={'A100': 10000, 'B200': 30000, 'H200': 30000, 'H100': 30000, 'L40S': 0, 'T4': 2000, 'V100': 12000, 'A30': 8000}, default_min_edges=50000, default_min_edges_float64=25000, max_edges={}, max_edges_float64={}, default_max_edges=None, default_max_edges_float64=None, cpu_min_edges=None, cpu_min_edges_float64=None)#

Edge counts above which use_fast="auto" uses the kernels. The kernels carry a fixed per-step cost and the reference a cost per edge, so the crossover moves with the model’s width: early for foundation-size models, late for light ones. The thresholds sit near the wide models’ crossover, since the reference’s loss past it grows with the system while the kernels’ loss below a light model’s crossover stays a fixed fraction of a step. In float64 the reference is slower and the kernels win earlier; on an L40S (weak float64) always.