error

#5
by mustafagulzar - opened

Traceback (most recent call last):
File "QA_Generation/QuestgenMachineLearning.py", line 137, in
tokenizer = AutoTokenizer.from_pretrained("atharvamundada99/bert-large-question-answering-finetuned-legal")
File "/Users/mustafagulzar/Desktop/Desktop/educational-chatbot-cliffsnotes/venv/lib/python3.8/site-packages/transformers/tokenization_auto.py", line 206, in from_pretrained
config = AutoConfig.from_pretrained(pretrained_model_name_or_path, **kwargs)
File "/Users/mustafagulzar/Desktop/Desktop/educational-chatbot-cliffsnotes/venv/lib/python3.8/site-packages/transformers/configuration_auto.py", line 203, in from_pretrained
config_dict, _ = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
File "/Users/mustafagulzar/Desktop/Desktop/educational-chatbot-cliffsnotes/venv/lib/python3.8/site-packages/transformers/configuration_utils.py", line 251, in get_config_dict
raise EnvironmentError(msg)
OSError: Can't load config for 'atharvamundada99/bert-large-question-answering-finetuned-legal'. Make sure that:

  • 'atharvamundada99/bert-large-question-answering-finetuned-legal' is a correct model identifier listed on 'https://huggingface.co./models'

  • or 'atharvamundada99/bert-large-question-answering-finetuned-legal' is the correct path to a directory containing a config.json file

Sign up or log in to comment