Error in config.json
KeyError: 'mistral'
Traceback:
File "C:\Users\Hp\anaconda3\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 534, in run_script
exec(code, module.dict)
File "C:\Users\Hp\Downloads\Data\app.py", line 49, in
pred()
File "C:\Users\Hp\Downloads\Data\app.py", line 13, in pred
model = pipeline('text-generation', model='my_finetuned_model', tokenizer='my_finetuned_tokenizer')
File "C:\Users\Hp\anaconda3\lib\site-packages\transformers\pipelines_init.py", line 648, in pipeline
config = AutoConfig.from_pretrained(model, _from_pipeline=task, **hub_kwargs, **model_kwargs)
File "C:\Users\Hp\anaconda3\lib\site-packages\transformers\models\auto\configuration_auto.py", line 796, in from_pretrained
config_class = CONFIG_MAPPING[config_dict["model_type"]]
File "C:\Users\Hp\anaconda3\lib\site-packages\transformers\models\auto\configuration_auto.py", line 503, in getitem
raise KeyError(key)
Yes I had installed transformers.
hi
@sohamghoshml
Can you try to run the command I shared? I suspect you have an old version of transformers