Why does autotrain lie about this dataset being csv?

#3
by austincap - opened

It's quite counterproductive to lie about something like that in the documentation of your own software lol: https://huggingface.co/docs/autotrain/llm_finetuning

LLM finetuning accepts data in CSV format.
For SFT/Generic training, your dataset must have a text column

For SFT / Generic Trainer, the data should be in the following format:
text
human: hello \n bot: hi nice to meet you
human: how are you \n bot: I am fine

@Akshayjain97 what if we need to add System Prompt and context in dataset how you will do ?

It's quite counterproductive to lie about something like that in the documentation of your own software lol: https://huggingface.co/docs/autotrain/llm_finetuning

You can easily upload this dataset as a CSV to AutoTrain; it is already in the right structure, with one column named 'text'.
For example, this code snippet uploads it to a local directory

from datasets import load_dataset

dataset = load_dataset("timdettmers/openassistant-guanaco")
dataset['train'].to_csv("./data/train.csv")
dataset['test'].to_csv("./data/test.csv")

Sign up or log in to comment