I have a folder with the ruBERT model, which was fine-tuned with the application of the Deeppavlov library. The folder contains the following model files:
How do I convert it to Huggingface format so that I can load it this way?
from transformers import TFAutoModelForSequenceClassification
model_name = "folder_with_ruBERT"
auto_model_rubert = TFAutoModelForSequenceClassification.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name, do_lower_case = False)