8000
Requesting a built-in Contrastive Representation Distillation (CRD) strategy (Tian et al., 2019) for tunix.distillation.DistillationTrainer.
tunix.distillation.DistillationTrainer
Distills at the representation level using an InfoNCE/contrastive loss:
Minimal form:
logits = (z_s @ z_t.T) / tau
labels = arange(B)
loss = CE(logits, labels)
logits.T
Tian et al., Contrastive Representation Distillation, arXiv:1910.10699 (2019): https://arxiv.org/pdf/1910.10699
I can contribute a PR + tests if you’re open to it.
Activity