stanfordnlp/sst2
Viewer • Updated • 70k • 44.1k • 167
How to use lysandre/dum with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="lysandre/dum") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("lysandre/dum")
model = AutoModelForSequenceClassification.from_pretrained("lysandre/dum", device_map="auto")