Closed hongdd closed 1 year ago
simbert和BERTModel这块的是有区别的,所以功能没有通过from_pretrained来展示;可以直接使用Taskflow来使用相关功能 https://github.com/PaddlePaddle/PaddleNLP/blob/develop/docs/model_zoo/taskflow.md#%E6%96%87%E6%9C%AC%E7%9B%B8%E4%BC%BC%E5%BA%A6
This issue is stale because it has been open for 60 days with no activity. 当前issue 60天内无活动,被标记为stale。
This issue was closed because it has been inactive for 14 days since being marked as stale. 当前issue 被标记为stale已有14天,即将关闭。
Traceback (most recent call last): File "predict.py", line 89, in
'simbert-base-chinese', pool_act='linear')
File "/data/miniconda3/envs/paddle2.1/lib/python3.6/site-packages/paddlenlp/transformers/model_utils.py", line 204, in from_pretrained
), pretrained_model_name_or_path))
ValueError: Calling BertModel.from_pretrained() with a model identifier or the path to a directory instead. The supported model identifiers are as follows: dict_keys(['bert-base-uncased', 'bert-large-uncased', 'bert-base-multilingual-uncased', 'bert-base-cased', 'bert-base-chinese', 'bert-base-multilingual-cased', 'bert-large-cased', 'bert-wwm-chinese', 'bert-wwm-ext-chinese']), but got: simbert-base-chinese