PaddlePaddle / PaddleNLP

👑 Easy-to-use and powerful NLP and LLM library with 🤗 Awesome model zoo, supporting wide-range of NLP tasks from research to industrial applications, including 🗂Text Classification, 🔍 Neural Search, ❓ Question Answering, ℹ️ Information Extraction, 📄 Document Intelligence, 💌 Sentiment Analysis etc.
https://paddlenlp.readthedocs.io
Apache License 2.0
12.11k stars 2.94k forks source link

文本匹配当中的simbert 模型找不到,不支持 #1594

Closed hongdd closed 1 year ago

hongdd commented 2 years ago

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

wawltor commented 2 years 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

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 60 days with no activity. 当前issue 60天内无活动,被标记为stale。

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale. 当前issue 被标记为stale已有14天,即将关闭。