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

Preprocess dataset size fix #1131

Merged
merged 3 commits into from
Jan 17, 2024
Merged

Preprocess dataset size fix #1131

merged 3 commits into from
Jan 17, 2024

Conversation

winglian
Copy link
Collaborator

Description

This PR fixes the obscene disk usage when preprocessing datasets. this is mostly during the tokenization map step. By keeping this step completely in memory, it solves ALL the additional disk requirements (which is as much as 10x). Additionally, when running the -m axolotl.cli.preprocess sometimes it would rely on the cache, but since pre-processing is an explicit step, the expectation is that it should ignore the cache in most cases.

@winglian
Copy link
Collaborator Author

also, when running training, make sure dataset_prepared_path is set

Copy link
Collaborator

@NanoCode012 NanoCode012 left a comment

Choose a reason for hiding this comment

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

Does this mean, that cli.preprocess now loads from cache?

@NanoCode012
Copy link
Collaborator

also, when running training, make sure dataset_prepared_path is set

Do you mean when loading from cache or we need it all the time now?

@winglian
Copy link
Collaborator Author

Does this mean, that cli.preprocess now loads from cache?

the opposite, pre-process always skips the cache and overwrites it

@winglian
Copy link
Collaborator Author

also, when running training, make sure dataset_prepared_path is set

Do you mean when loading from cache or we need it all the time now?

it's more of a reminder to make sure you use that when you've pre-processed the data.

@winglian winglian merged commit 7570446 into main Jan 17, 2024
7 checks passed
@winglian winglian deleted the preprocess-dataset-size-fix branch January 17, 2024 16:02
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