chizhikchi/CARES
Viewer โข Updated โข 3.22k โข 36 โข 4
How to use chizhikchi/cares-roberta-bne with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="chizhikchi/cares-roberta-bne") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("chizhikchi/cares-roberta-bne")
model = AutoModelForSequenceClassification.from_pretrained("chizhikchi/cares-roberta-bne", device_map="auto")