baseten.loops.helpers itself exports nothing; import each helper from its submodule:
Return a copy of
data with each Datum carrying a new ref_logprobs field in loss_fn_inputs, scored by reference.data(list[Datum]): the preference batch, with each datum holding the full prompt + response sequence inmodel_input. For DPO batches, these are interleaved chosen/rejected pairs.reference(SamplingClient): a version-pinned snapshot of the reference policy, typically returned byTrainingClient.save_weights_and_get_sampling_clientbefore any optimizer steps.
compute_logprobs call. Scoring is sequential.