huggingface / datatrove

Freeing data processing from scripting madness by providing a set of platform-agnostic customizable pipeline processing blocks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

In-file parallelism

jordane95 opened this issue · comments

Current parallel strategy assign different files in a directory to different workers.

There are many situations where this may incur load unbalancing, for example, when the input files are irregular in size or the input is one single giant file.

Is it possible to implement the functionality of in-file parallelism? For each file, assign different lines to different workers