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

In the preparetion of train dataset, why "input_ids" is equal with "labels"? #37

Open
JonL01 opened this issue Jun 21, 2024 · 0 comments

Comments

@JonL01
Copy link

JonL01 commented Jun 21, 2024

in the personal_copilot/training/train.py class ConstantLengthDataset(IterableDataset) where 249th and 250th line.
yield { "input_ids": torch.LongTensor(example), "labels": torch.LongTensor(example), }

If input is " I LIKE APPLE", why we need to teach the model to repeat "I LIKE APPLE" instead of saying "I LIKE APPLE, BECAUSE IT IS SWEET"?

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