Closed csrajmohan closed 4 days ago
Added to LoadHF
right now, but can also be added to few other Unitxt loaders like LoadFromIBMCloud, LoadFromSklearn, LoadFromKaggle
that invoke hf_load_dataset
, if needed.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 91.04%. Comparing base (
4d3ea8e
) to head (cf3aaa3
). Report is 1 commits behind head on main.:exclamation: Current head cf3aaa3 differs from pull request most recent head 8a4c149
Please upload reports for the commit 8a4c149 to get more accurate results.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This adds support to pass an optional
num_proc
parameter in Unitxt loader so that it can be passed ontohf_load_dataset
method of Huggingface Datasets library for parallel dataset loading.p.s.: The num_proc parameter is used to specify the number of processes to use for multiprocessing in the Hugging Face datasets library. This can speed up operations while loading large datasets. (Tested with wikitq dataset)