trl
trl copied to clipboard
Fix error text in BCO and KTO tokenizer function.
The error text is saying:
"Prompt input ids and answer input ids should have the same length."
This is very misleading. The code does not compare prompt and answer in this case.
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.
I don't think the CI problems have anything to do with the changes in this PR...
Thanks @PhilipMay! Do you mind updating your branch? I don't have the writing rights on your branch.