mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Use argument for preprocessing workers in run_summairzation (#15394)
This commit is contained in:
parent
db07956740
commit
c98a6ac211
@ -443,6 +443,7 @@ def main():
|
||||
processed_datasets = raw_datasets.map(
|
||||
preprocess_function,
|
||||
batched=True,
|
||||
num_proc=args.preprocessing_num_workers,
|
||||
remove_columns=column_names,
|
||||
load_from_cache_file=not args.overwrite_cache,
|
||||
desc="Running tokenizer on dataset",
|
||||
|
Loading…
Reference in New Issue
Block a user