UER-py icon indicating copy to clipboard operation
UER-py copied to clipboard

OSError: Can't load config for 'uer/roberta-base-finetuned-jd-binary-chinese'

Open chinjen opened this issue 3 years ago • 1 comments
trafficstars

HI,

First of all, thanks to share this fine-tuned model on public. I followed huggingface usage and tried to use below model on python https://huggingface.co/uer/roberta-base-finetuned-jd-binary-chinese

from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("uer/roberta-base-finetuned-jd-binary-chinese")

model = AutoModelForSequenceClassification.from_pretrained("uer/roberta-base-finetuned-jd-binary-chinese")

There is always error as below : OSError: Can't load config for 'uer/roberta-base-finetuned-jd-binary-chinese'. Make sure that:

  • 'uer/roberta-base-finetuned-jd-binary-chinese' is a correct model identifier listed on 'https://huggingface.co/models'

  • or 'uer/roberta-base-finetuned-jd-binary-chinese' is the correct path to a directory containing a config.json file

Did this model not exist on huggingface ?

chinjen avatar Feb 18 '22 08:02 chinjen

Hello, this model can be donwloaded normally by following your command image

hhou435 avatar Feb 27 '22 13:02 hhou435