huggingface/accelerate

Barebones dataloader to allow for any type of iterable dataloader-like object to be used. Should just handle device placement

Open

#2,975 opened on Jul 29, 2024

View on GitHub
 (5 comments) (0 reactions) (0 assignees)Python (5,805 stars) (626 forks)batch import
good first issue

Description

Make a simplistic version of the DispatchDataLoader which allows for users to easily pass in any Iterable type of object and call it's __iter__. Likely situation to make sure Accelerator knows what's up during prepare is to add an option to the DataLoaderConfiguration for custom_classes which accepts types for us to do isinstance() on

Contributor guide

Barebones dataloader to allow for any type of iterable dataloader-like object to be used. Should just handle device placement · huggingface/accelerate#2975 | Good First Issue