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

Update data.py for signature generation #851

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

MilesQLi
Copy link
Contributor

Change of conversation formatting type should also trigger updating the preprocessed dataset, so it should be part of the signature.

Change of conversation formatting type should also trigger updating the preprocessed dataset, so it should be part of the signature.
Copy link
Collaborator

@winglian winglian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, this is definitely needed. conversation is an optional parameter, so we need to account for when this isn't provided (I think it would be vicuna)

@MilesQLi
Copy link
Contributor Author

@winglian I tested it with a mixture of alpaca and sharegpt datasets. Even for a alpaca dataset without conversation argument, it will go through: d.conversation will be empty rather than raising an error.

src/axolotl/utils/data.py Outdated Show resolved Hide resolved
@winglian winglian merged commit 48630f5 into axolotl-ai-cloud:main Nov 15, 2023
4 checks passed
mkeoliya pushed a commit to mkeoliya/axolotl that referenced this pull request Dec 15, 2023
* Update data.py

Change of conversation formatting type should also trigger updating the preprocessed dataset, so it should be part of the signature.

* chore: lint

---------

Co-authored-by: Wing Lian <wing.lian@gmail.com>
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

Successfully merging this pull request may close these issues.

None yet

2 participants