arxiv-community/arxiv_dataset
Updated • 1.39k • 135
How to use Wi/arxiv-distilbert-base-cased with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Wi/arxiv-distilbert-base-cased") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Wi/arxiv-distilbert-base-cased")
model = AutoModelForSequenceClassification.from_pretrained("Wi/arxiv-distilbert-base-cased")DistilBERT model fine-tuned on a small subset of the ArXiv dataset to predict the category of a given paper.