A lateInteraction term trains the token head over items whose sides name them queries or documents, and a choices term trains the byte decoder on each item’s legal bytes and their target probabilities:
The choices take the shape textChoose takes, and their targets the shape of the Probabilities it answers, so one model’s probabilities can train another as they land.
Every batch, contents and choices alike, also takes a packed { data, offsets } tape, which the Node addon lends to the library without a copy when its offsets are a BigUint64Array; an array of entries is first gathered into one tape, the one copy that path makes.
The target probability of each choice, an entry per item as long as its choices and summing to one, as textChoose answers its Probabilities; required with choices.