Files
higgsfield/tutorials
2023-11-12 23:38:16 +00:00
..
2023-11-12 23:37:54 +00:00
2023-11-12 23:37:17 +00:00
2023-11-12 23:24:31 +00:00

Dataset formats

We support the following dataset formats:

  • Prompt Completion format
  • The ChatGPT format
  • The Plain Text format

Before uploading your dataset to Hugging Face, please make sure that it is in one of the above formats.

We provide a tutorial on how to convert your dataset to each format.

Format: Prompt Completion

prompt_completion = {
        "prompt": [
            "prompt1",
            "prompt2",
        ],
        "completion": [
            "completion1",
            "completion2",
        ]
    }

Format: ChatGPT

chatgpt_format = {
    "chatgpt": [
        [
            {"role": "system", "content": "You are a human."},
            {"role": "user", "content": "No I am not."},
            {"role": "assistant", "content": "I am a robot."},
        ],
    ]
}

Format: Text

text_format = {
    "text": ["text"]
}