Closed chujiezheng closed 6 months ago
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.
@lewtun Hi, could you please check what's wrong with my commits/pr?
May I ask why this PR isn't reflected on the main branch?
We do not directly create
text_chosen
fromchosen_messages
(same for rejected), aschosen_messages
contains only an assistant message and it may raise jinja error (raise_exception('Conversation roles must alternate user/assistant/user/assistant/...')
) in many chat models' chat_template (example. Instead, we remove the prompt part from the wholechosen_messages
's input text.