Commit Graph
7 Commits
Author SHA1 Message Date
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
s41r4j d69bcd144e Put the three-step GPU smoke run directly in the Colab notebook 2026-10-03 11:05:38 +05:30
s41r4j 07b98bb402 Select FP16 on GPUs with emulated-only BF16 support 2026-10-03 10:25:49 +05:30
s41r4j 7f087b3f90 Preserve encoder attention backend across artifact reloads 2026-10-02 23:56:50 +05:30
s41r4j 1e9a2d8bb3 Fix Colab setup when ensurepip is unavailable 2026-10-02 23:46:31 +05:30
s41r4j 3308f31862 Add DAMA System One model and one-cell Colab setup 2026-10-02 22:34:24 +05:30