Closed lichuanxiang closed 1 year ago
主要改动:
from transformers import BertTokenizerFast, BertModel, AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("nghuyong/ernie-health-zh")
encoder = AutoModel.from_pretrained("nghuyong/ernie-health-zh")
看之前有开过一个帖子(https://github.com/xhw205/GPLinker_torch/issues/7),但没下文了,辛苦帮看下,是因为转换为其他 base model 需要做特殊处理吗?