Hi, I want to train a model for text classification using bert-base-uncased
with pure Pytorch (without Trainer). I wanted to push the fine tuned model to hugging face hub and I used this code:
model.push_to_hub("repository_name")
But when I’m trying to see the prediction of the model in the model repository on the example sentence I got this error:
Can't load tokenizer using from_pretrained, please update its configuration: Can't load tokenizer for 'Zahra99/pure-python2'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'Zahra99/pure-python2' is the correct path to a directory containing all relevant files for a BertTokenizerFast tokenizer.
This is shown in the following image:
I searched about it but actually I couldn’t find solution for my problem which how I can push the model which is trained using pure Pytorch in hugging face hub and load it later.
I apperciate any help