Files
s41r4j-dama/code/dama
s41r4j 7c8abba380 Fix NaN loss on batches with no labels for a head under FP16
The empty-head fallback was logits.sum() * 0; summing -1e4 masked logits
overflows to -inf in FP16 and -inf * 0 is NaN. Return a float32 zero.
2026-10-06 20:11:43 +05:30
..