Update README.md b4a048e verified
crown commited on
How to use xiaoxibing/paper_classify_fine_tuning_bert with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="xiaoxibing/paper_classify_fine_tuning_bert") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("xiaoxibing/paper_classify_fine_tuning_bert")
model = AutoModelForSequenceClassification.from_pretrained("xiaoxibing/paper_classify_fine_tuning_bert", device_map="auto")