Upload RobertaForSequenceClassification 1cc1709 verified
Arihant Sheth commited on
How to use ShethArihant/mathberta-tuned-20 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="ShethArihant/mathberta-tuned-20") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("ShethArihant/mathberta-tuned-20")
model = AutoModelForSequenceClassification.from_pretrained("ShethArihant/mathberta-tuned-20")