Skip to content

ShareGPT tool datasets handling #1768

Closed Answered by NanoCode012
hasan9090 asked this question in Q&A
Discussion options

You must be logged in to vote

Terribly sorry we missed this post. I just found this while going through discussions. I'm leaving this answer below for any future readers.

A few months ago, we have added improved support for other roles and chat_template support.

For current axolotl, the way to load this dataset

datasets:
    - path: lilacai/glaive-function-calling-v2-sharegpt
      type: chat_template
      chat_template: chatml
      message_field_role: from
      message_field_content: value
      field_messages: conversations

Note; This dataset adds <|endoftext|> in its text, so you may want to use it for EOS (which would conflict with normal chatml). An alternative would be to use your own custom chat_template_jin…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by NanoCode012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants