huggingface/accelerate

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

Geschlossen

#2.975 geöffnet am 29.07.2024

 (5 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (626 Forks)batch import
good first issue

Repository-Metriken

Stars
 (5.805 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 16T 17h) (23 gemergte PRs in 30 T)

Beschreibung

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