Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
dac77981
Unverified
Commit
dac77981
authored
Oct 06, 2021
by
Akul Agrawal
Committed by
GitHub
Oct 05, 2021
Browse files
Update run_qa.py (#13857)
parent
013bdc6d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/pytorch/question-answering/run_qa.py
examples/pytorch/question-answering/run_qa.py
+1
-1
No files found.
examples/pytorch/question-answering/run_qa.py
View file @
dac77981
...
...
@@ -420,7 +420,7 @@ def main():
raise
ValueError
(
"--do_train requires a train dataset"
)
train_dataset
=
raw_datasets
[
"train"
]
if
data_args
.
max_train_samples
is
not
None
:
# We will select sample from whole data if agument is specified
# We will select sample from whole data if a
r
gument is specified
train_dataset
=
train_dataset
.
select
(
range
(
data_args
.
max_train_samples
))
# Create train feature from dataset
with
training_args
.
main_process_first
(
desc
=
"train dataset map pre-processing"
):
...
...
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