You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I closely check the data processing in the KTO trainer and DPO trainer. I find that the chatting template is not considered when combining the prompt and its completion.
For DPOTrainer: full_tokenized = self.tokenizer(prompt + answer, add_special_tokens=False)
And for KTOTrainer: prompt_and_completion = [prompt + completion for prompt, completion in zip(batch["prompt"], batch["completion"])]
Do we need to consider the chat template when combining them, something like: [INST] + prompt + [\INST] + completion.
The text was updated successfully, but these errors were encountered:
Hi! I closely check the data processing in the KTO trainer and DPO trainer. I find that the chatting template is not considered when combining the prompt and its completion.
For DPOTrainer:
full_tokenized = self.tokenizer(prompt + answer, add_special_tokens=False)
And for KTOTrainer:
prompt_and_completion = [prompt + completion for prompt, completion in zip(batch["prompt"], batch["completion"])]
Do we need to consider the chat template when combining them, something like:
[INST] + prompt + [\INST] + completion
.The text was updated successfully, but these errors were encountered: