huggingface/accelerate

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

已關閉

#2,975 建立於 2024年7月29日

 (5 則留言) (0 個反應) (0 位負責人)Python (626 個分叉)batch import
good first issue

倉庫指標

星標
 (5,805 顆星)
PR 合併指標
 (平均合併 16天 17小時) (30 天內合併 23 個 PR)

描述

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

貢獻者指南