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

Efficiently get the length of the tokenized docs #1063

Merged
merged 2 commits into from
Jan 8, 2024

Conversation

RicardoDominguez
Copy link
Contributor

In the current implementation, the entire dataset has to be read in order to calculate the length of the documents -which can be reasonably time consuming for large datasets- even though a "length" column is created during the preprocessing of the dataset. Instead, if the length column exists in the dataset, simply load it, which can be much faster.

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.

great PR. thanks!

@winglian winglian merged commit 81d3845 into axolotl-ai-cloud:main Jan 8, 2024
6 checks passed
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