End of training 29f33e1 verified
Berat Karagöl commited on
How to use bert-ka/distilbert-rotten-tomatoes with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="bert-ka/distilbert-rotten-tomatoes") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("bert-ka/distilbert-rotten-tomatoes")
model = AutoModelForSequenceClassification.from_pretrained("bert-ka/distilbert-rotten-tomatoes", device_map="auto")