You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use "BertForQuestionAnswering.from_pretrained" to import my pytorch_model.bin, there having a error "tarfile.ReadError: not a gzip file".So, what should I do to use my pytorch_model.bin? Thanks.
The text was updated successfully, but these errors were encountered:
When I use "BertForQuestionAnswering.from_pretrained" to import my pytorch_model.bin, there having a error "tarfile.ReadError: not a gzip file".So, what should I do to use my pytorch_model.bin? Thanks.
Just like these:
Model_path = "../chinese_roberta_wwm_large_ext_pytorch/pytorch_model.bin"
bert_config = BertConfig.from_pretrained(args.config_path, output_hidden_states=False)
tokenizer = BertTokenizer.from_pretrained(args.vocab_path, config=bert_config)
model = BertForQuestionAnswering.from_pretrained(Model_path , config=bert_config)
When I use "BertForQuestionAnswering.from_pretrained" to import my pytorch_model.bin, there having a error "tarfile.ReadError: not a gzip file".So, what should I do to use my pytorch_model.bin? Thanks.
The text was updated successfully, but these errors were encountered: