Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Dataloader2 training loop example with torch text (#670)
Summary: Pull Request resolved: #670 * Add the uscase and example of DataLoader2 with open source datasets/datapipes. TorchText provides several standard NLP datasets; here we use its SST2 OSS dataset in the DataLoader2 train loop. * We will have more examples to showcase the advantages: (1) The usage of the DLv2 with popular open source dataset. (2) Integrate datasets/datapipes with different reading service. (3) Datapipe manipulation for example batch, collate, map. (4) Dist usage and examples with features such as sharding_filter for the sharding feature. (5) Eventually add those examples to the pytorch tutorials. Reviewed By: ejguan Differential Revision: D37938017 fbshipit-source-id: f58076b6d5de73577c4d9cdd423e2c5be88ef041
- Loading branch information