stanfordnlp/sst2
Viewer • Updated • 70k • 40.2k • 162
How to use nickprock/distilbert-base-uncased-sst2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="nickprock/distilbert-base-uncased-sst2") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("nickprock/distilbert-base-uncased-sst2")
model = AutoModelForSequenceClassification.from_pretrained("nickprock/distilbert-base-uncased-sst2", device_map="auto")This model is a fine-tuned version of distilbert-base-uncased on the sst2 dataset.
This model has been fine-tuned for an exercise in the face hugging class course.
It achieves the following results on the evaluation set:
Base model
distilbert/distilbert-base-uncased