OSError: Error no file named ['pytorch_model.bin', 'tf_model.h5'] When I try to use my model
an error occurred while importing my model from a folder. I cloned my repository and wanted to use the model, I got an error
https://huggingface.co/Fidlobabovic/beta-kvantorium-simple-small
Do I need to change files in my repository? What should I fix in code or model files?
#7370 
#9667 
````
from transformers import pipeline

nlp = pipeline("question-answering",  model='/content/beta-kvantorium-simple-small', tokenizer='/content/beta-kvantorium-simple-small')

context = r"""
   Цель текущего контроля и аттестаций - выявление уровня обученности, развития способностей обучающихся, приобретенных компетенций и их соответствие прогнозируемым результатам дополнительной общеобразовательной программы.
"""

print(nlp(question="Какая Цель текущего контроля аттестаций?", context=context))

-> 1046                 state_dict = torch.load(resolved_archive_file, map_location="cpu")
   1047             except Exception:

9 frames
UnpicklingError: invalid load key, 'v'.

During handling of the above exception, another exception occurred:

OSError                                   Traceback (most recent call last)
OSError: Unable to load weights from pytorch checkpoint file for '/content/beta-kvantorium-simple-small' at '/content/beta-kvantorium-simple-small/pytorch_model.bin'If you tried to load a PyTorch model from a TF 2.0 checkpoint, please set from_tf=True. 

During handling of the above exception, another exception occurred:

OSError                                   Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/transformers/modeling_tf_utils.py in from_pretrained(cls, pretrained_model_name_or_path, *model_args, **kwargs)
   1183                     raise EnvironmentError(
   1184                         "Error no file named {} found in directory {} or `from_pt` set to False".format(
-> 1185                             [WEIGHTS_NAME, TF2_WEIGHTS_NAME], pretrained_model_name_or_path
   1186                         )
   1187                     )

OSError: Error no file named ['pytorch_model.bin', 'tf_model.h5'] found in directory /content/beta-kvantorium-simple-small or `from_pt` set to False


Please check if the `pytorch_model.bin` file is available in your cloned repo. I can see that file on the hub, so there might have been some mistake when cloning the repo.<|||||>@patil-suraj  when cloning the repository, this file is located in the folder
<|||||>This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/master/CONTRIBUTING.md) are likely to be ignored.<|||||>> Please check if the `pytorch_model.bin` file is available in your cloned repo. I can see that file on the hub, so there might have been some mistake when cloning the repo.

Thanks!🥰 It solves my problem, some files' name were changed after downloaded🤕