Tokenize got an unexpected keyword argument 'pad_to_max_length', 'return_attention_mask'
This works fine when I run on my GPU but gives the above error when I try to run on my CPU. They bought have the same environment setup.

Error:
  File "C:\ProgramData\Anaconda3\lib\site-packages\transformers\tokenization_utils.py", line 786, in encode_plus
    first_ids = get_input_ids(text)
  File "C:\ProgramData\Anaconda3\lib\site-packages\transformers\tokenization_utils.py", line 778, in get_input_ids
    return self.convert_tokens_to_ids(self.tokenize(text, **kwargs))
  File "C:\ProgramData\Anaconda3\lib\site-packages\transformers\tokenization_utils.py", line 649, in tokenize
    tokenized_text = split_on_tokens(added_tokens, text)
  File "C:\ProgramData\Anaconda3\lib\site-packages\transformers\tokenization_utils.py", line 646, in split_on_tokens
    else [token] for token in tokenized_text), [])
  File "C:\ProgramData\Anaconda3\lib\site-packages\transformers\tokenization_utils.py", line 646, in <genexpr>
    else [token] for token in tokenized_text), [])
TypeError: _tokenize() got an unexpected keyword argument 'pad_to_max_length'

environment:
Python 3.7
transformers 3.0.2
torch 1.5.1

You GPU and CPU env might have different version of transformers. Could you try updating to master ?<|||||>This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
