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
2d7c1bb1
Unverified
Commit
2d7c1bb1
authored
Jun 17, 2022
by
greg2451
Committed by
GitHub
Jun 17, 2022
Browse files
feat: add num_workers arg to DataLoader (#17751)
parent
ca169dbd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/transformers/trainer.py
src/transformers/trainer.py
+1
-0
No files found.
src/transformers/trainer.py
View file @
2d7c1bb1
...
@@ -939,6 +939,7 @@ class Trainer:
...
@@ -939,6 +939,7 @@ class Trainer:
batch_size
=
self
.
args
.
eval_batch_size
,
batch_size
=
self
.
args
.
eval_batch_size
,
collate_fn
=
data_collator
,
collate_fn
=
data_collator
,
drop_last
=
self
.
args
.
dataloader_drop_last
,
drop_last
=
self
.
args
.
dataloader_drop_last
,
num_workers
=
self
.
args
.
dataloader_num_workers
,
pin_memory
=
self
.
args
.
dataloader_pin_memory
,
pin_memory
=
self
.
args
.
dataloader_pin_memory
,
)
)
...
...
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