Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you use oasst1 dataset in qlora.py - why only the 'text' field is used? #282

Open
Huxwell opened this issue Dec 19, 2023 · 0 comments

Comments

@Huxwell
Copy link

Huxwell commented Dec 19, 2023

https://huggingface.co/datasets/OpenAssistant/oasst1 has a lot of columns (most important: "parent_id" and "role" - assistant or prompter).
However you only seem to use "text" column, input stays empty (L624, https://github.com/artidoro/qlora/blob/main/qlora.py#L624 )

        elif dataset_format == 'oasst1' or (dataset_format is None and args.dataset == 'oasst1'):
            dataset = dataset.map(lambda x: {
                'input': '',
                'output': x['text'],
            })

The model is supposed to work well in conversations, how is it possible if training doesn't recognize order of prompting-answering or even the order of messages in conversation?
I am clearly missing something in my understanding, please help me out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant