TextClassifier object has no attribute 'push_to_hub'

Once I used BertForSequenceClassification instead of BertModel + Linear, I was able to push the model to hub.