3 Commits
Author SHA1 Message Date
s41r4j 96c5e99801 Prepare source repository for research publication 2026-11-06 16:22:48 +05:30
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
s41r4j c93185b44a Rewrite DAMA as a model-only package under code/
Drop the CLI, packaging, bootstrap scripts, fixtures and tests. The Colab
notebook now calls dama.data, dama.training, dama.evaluate and
dama.inference directly. The model gets learned metadata embeddings, a
separate recent-context item, a raw cosine pair feature, a span head
conditioned on the event vector, and learned ARCHIVE. Training adds
warmup/decay and best-dev-epoch export; the data generator holds out
templates and values per split.
2026-10-06 20:04:41 +05:30