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

Add improved data downloading class / pipeline #39

Merged
merged 6 commits into from
Jan 5, 2021
Merged

Conversation

sdtblck
Copy link
Contributor

@sdtblck sdtblck commented Jan 5, 2021

  • run prepare_dataset.py with your model args to download the required dataset (if you run with deepspeed it downloads once for every rank)
  • to add a new dataset, create a class that inherits from DataDownloader and add it to the DATA_DOWNLOADERS registry

@sdtblck sdtblck requested a review from a team as a code owner January 5, 2021 12:12
@sdtblck
Copy link
Contributor Author

sdtblck commented Jan 5, 2021

Have now added the dataset downloading to the main train scripts so you don't have to run a separate python file.
iirc torch.distributed.barrier() has a timeout of 30 mins, so we need to figure out how to increase that in the case that the data takes longer to download

@sdtblck
Copy link
Contributor Author

sdtblck commented Jan 5, 2021

Also removed adam optimizer if using deepspeed - passing in an optimizer override's deepspeed's ZeRO optimizer, which we want to use

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants