diffmask
diffmask copied to clipboard
checkpoint error
Thanks for releasing the code!
I am trying to run QuestionAnsweringSquadDiffMaskAnalysis.ipynb
. but I get this error when load_from_checkpoint()
RuntimeError: Error(s) in loading state_dict for BertQuestionAnsweringSquadDiffMask: Missing key(s) in state_dict: "net.bert.embeddings.position_ids". Unexpected key(s) in state_dict: "net.bert.pooler.dense.weight", "net.bert.pooler.dense.bias"
I have check the model path and models/squad-diffmask-input.ckpt
is there. How can i fix it?
@nicola-decao
OK. I fixed it. This is because i use transformers==4 whose bert is different from transformers==2.9