topk=0): advantage = teacher_logprob - student_logprob. SDFT’s primary, paper-validated mode (top-K soft-label
cross_entropy, default topk=20) needs a (N, K)-shaped soft-target datum
built from Whitney’s topk_prompt_logprobs sample field — a real extension,
not shown here.
Whitney mapping: The teacher is a frozen second Whitney run,
synced once and never trained — SDFT’s own default
(teacher_sync_every=None, “works comparably to EMA in our experiments”).
The teacher prompt is a fixed demonstration template (question + a golden
answer as an in-context demonstration), tokenized on the caller side —
Whitney’s HTTP contract speaks only token IDs:
rl_datum and forward_backward_payload are the shared datum helpers.