AutoModelForQuestionAnswering : TypeError: __init__() got an unexpected keyword argument 'return_dict'
When I run this ,model = AutoModelForQuestionAnswering(“bert-large-uncased-whole-word-masking-finetuned-squad”,return_dict = True)I get the follwoing errorTypeError                                 Traceback (most recent call last)in ()1 tokenizer = AutoTokenizer.from_pretrained(“bert-large-uncased-whole-word-masking-finetuned-squad”)----> 2 model = AutoModelForQuestionAnswering(“bert-large-uncased-whole-word-masking-finetuned-squad”,return_dict = True)TypeError:init() got an unexpected keyword argument ‘return_dict’
2020-11-09T14:52:04Z
This means your version of transformers is too old, you should do an upgrade!
2020-11-13T05:15:24Z
Thanks. Let me check how to upgrade Transformers version and try.