From fcf83011dffce3f2e8aad906f07c1ec14668f877 Mon Sep 17 00:00:00 2001 From: Maxwell Forbes Date: Wed, 21 Jul 2021 23:14:14 -0700 Subject: [PATCH] Fix type of max_seq_length arg in run_swag.py (#12832) --- examples/pytorch/multiple-choice/run_swag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pytorch/multiple-choice/run_swag.py b/examples/pytorch/multiple-choice/run_swag.py index b754b2e34b..6980ee6a3e 100755 --- a/examples/pytorch/multiple-choice/run_swag.py +++ b/examples/pytorch/multiple-choice/run_swag.py @@ -106,7 +106,7 @@ class DataTrainingArguments: default=None, metadata={"help": "The number of processes to use for the preprocessing."}, ) - max_seq_length: int = field( + max_seq_length: Optional[int] = field( default=None, metadata={ "help": "The maximum total input sequence length after tokenization. If passed, sequences longer "