self.pretrain_model = pretrained_model(self.pretrained_config) # 推理时候只需要加载超参数, 不需要预训练模型的权重
预训练模型是bert-tiny,加载用的AutotModel,不是BertModel
在tcGraph.py的这行报错,报错如下
OSError: AutoModel is designed to be instantiated using the AutoModel.from_pretrained(pretrained_model_name_or_path) or AutoModel.from_config(config) methods.