File "---/anaconda3/envs/attn/lib/python3.6/site-packages/transformers-4.2.2-py3.8.egg/transformers/configuration_utils.py", line 432, in get_config_dict OSError: Can't load config for 'bert-base-uncased'. Make sure that: - 'bert-base-uncased' is a correct model identifier listed on ...
# 需要导入模块: from modeling import BertConfig [as 别名]# 或者: from modeling.BertConfig importfrom_json_file[as 别名]defconvert():# Initialise PyTorch modelconfig = BertConfig.from_json_file(args.bert_config_file) model = BertModel(config)# Load weights from TF modelpath = args.tf_check...