Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
c98a6ac2
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "f68796bd603ef60173e093f50a1ecbb74bc2ba6b"
Unverified
Commit
c98a6ac2
authored
Jan 28, 2022
by
Sylvain Gugger
Committed by
GitHub
Jan 28, 2022
Browse files
Use argument for preprocessing workers in run_summairzation (#15394)
parent
db079567
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
examples/pytorch/summarization/run_summarization_no_trainer.py
...les/pytorch/summarization/run_summarization_no_trainer.py
+1
-0
No files found.
examples/pytorch/summarization/run_summarization_no_trainer.py
View file @
c98a6ac2
...
@@ -443,6 +443,7 @@ def main():
...
@@ -443,6 +443,7 @@ def main():
processed_datasets
=
raw_datasets
.
map
(
processed_datasets
=
raw_datasets
.
map
(
preprocess_function
,
preprocess_function
,
batched
=
True
,
batched
=
True
,
num_proc
=
args
.
preprocessing_num_workers
,
remove_columns
=
column_names
,
remove_columns
=
column_names
,
load_from_cache_file
=
not
args
.
overwrite_cache
,
load_from_cache_file
=
not
args
.
overwrite_cache
,
desc
=
"Running tokenizer on dataset"
,
desc
=
"Running tokenizer on dataset"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment