nip.utils.types.HuggingFaceDpoDatasetItem#
- class nip.utils.types.HuggingFaceDpoDatasetItem[source]#
A single item in a DPO dataset using the Hugging Face format.
This is similar to
DpoDatasetItem, but uses the Hugging Face format for the input chat history.Attributes
promptThe input chat history for the DPO dataset item.
chosenThe preferred part of the preference pair.
rejectedThe non-preferred part of the preference pair.
Methods