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

data loading timing and disk use #4

Open
poedator opened this issue Mar 17, 2024 · 0 comments
Open

data loading timing and disk use #4

poedator opened this issue Mar 17, 2024 · 0 comments

Comments

@poedator
Copy link

The dataset loading code is taking too long. It downloads whole huge datasets (70G wiki, etc) to use just a handful of examples. setting split="train[0:2000]") is not helping since slicing happens only after full download
Suggestions:

  • download just the first files of the datasets.
  • replace c4 with allenai/c4: load_dataset("allenai/c4", "allenai--c4", data_files={"train": "en/c4-train.00000-of-01024.json.gz"}, split="train")
  • replace wiki with wikitext2. load_dataset("wikitext", "wikitext-2-raw-v1", split="train")
@poedator poedator mentioned this issue Apr 4, 2024
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