@@ -157,6 +157,7 @@ def map(
157
157
num_nodes : Optional [int ] = None ,
158
158
machine : Optional [str ] = None ,
159
159
num_downloaders : Optional [int ] = None ,
160
+ num_uploaders : Optional [int ] = None ,
160
161
reorder_files : bool = True ,
161
162
error_when_not_empty : bool = False ,
162
163
reader : Optional [BaseReader ] = None ,
@@ -173,6 +174,7 @@ def map(
173
174
num_nodes: When doing remote execution, the number of nodes to use. Only supported on https://lightning.ai/.
174
175
machine: When doing remote execution, the machine to use. Only supported on https://lightning.ai/.
175
176
num_downloaders: The number of downloaders per worker.
177
+ num_uploaders: The number of uploaders per workers.
176
178
reorder_files: By default, reorders the files by file size to distribute work equally among all workers.
177
179
Set this to ``False`` if the order in which samples are processed should be preserved.
178
180
error_when_not_empty: Whether we should error if the output folder isn't empty.
@@ -215,6 +217,7 @@ def map(
215
217
num_workers = num_workers or os .cpu_count (),
216
218
fast_dev_run = fast_dev_run ,
217
219
num_downloaders = num_downloaders ,
220
+ num_uploaders = num_uploaders ,
218
221
reorder_files = reorder_files ,
219
222
weights = weights ,
220
223
reader = reader ,
@@ -240,6 +243,7 @@ def optimize(
240
243
num_nodes : Optional [int ] = None ,
241
244
machine : Optional [str ] = None ,
242
245
num_downloaders : Optional [int ] = None ,
246
+ num_uploaders : Optional [int ] = None ,
243
247
reorder_files : bool = True ,
244
248
reader : Optional [BaseReader ] = None ,
245
249
) -> None :
@@ -258,6 +262,7 @@ def optimize(
258
262
num_nodes: When doing remote execution, the number of nodes to use. Only supported on https://lightning.ai/.
259
263
machine: When doing remote execution, the machine to use. Only supported on https://lightning.ai/.
260
264
num_downloaders: The number of downloaders per worker.
265
+ num_uploaders: The numbers of uploaders per worker.
261
266
reorder_files: By default, reorders the files by file size to distribute work equally among all workers.
262
267
Set this to ``False`` if the order in which samples are processed should be preserved.
263
268
@@ -302,6 +307,7 @@ def optimize(
302
307
num_workers = num_workers or os .cpu_count (),
303
308
fast_dev_run = fast_dev_run ,
304
309
num_downloaders = num_downloaders ,
310
+ num_uploaders = num_uploaders ,
305
311
reorder_files = reorder_files ,
306
312
reader = reader ,
307
313
)
0 commit comments