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
69c9b89f
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "f9582c205afaa4bb117bb67a4bf5184b053417b3"
Unverified
Commit
69c9b89f
authored
Nov 16, 2023
by
Phuc Van Phan
Committed by
GitHub
Nov 16, 2023
Browse files
docs: add docs for map, and add num procs to load_dataset (#27520)
parent
85fde09c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
examples/flax/speech-recognition/run_flax_speech_recognition_seq2seq.py
...speech-recognition/run_flax_speech_recognition_seq2seq.py
+3
-1
No files found.
examples/flax/speech-recognition/run_flax_speech_recognition_seq2seq.py
View file @
69c9b89f
...
...
@@ -439,6 +439,7 @@ def main():
data_args
.
dataset_config_name
,
split
=
data_args
.
train_split_name
,
cache_dir
=
data_args
.
dataset_cache_dir
,
num_proc
=
data_args
.
preprocessing_num_workers
,
token
=
True
if
model_args
.
use_auth_token
else
None
,
)
...
...
@@ -448,6 +449,7 @@ def main():
data_args
.
dataset_config_name
,
split
=
data_args
.
eval_split_name
,
cache_dir
=
data_args
.
dataset_cache_dir
,
num_proc
=
data_args
.
preprocessing_num_workers
,
token
=
True
if
model_args
.
use_auth_token
else
None
,
)
...
...
@@ -551,7 +553,7 @@ def main():
prepare_dataset
,
remove_columns
=
next
(
iter
(
raw_datasets
.
values
())).
column_names
,
num_proc
=
num_workers
,
desc
=
"preprocess train dataset"
,
desc
=
"preprocess train
and eval
dataset"
,
)
# filter training data with inputs longer than max_input_length
...
...
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