stanfordnlp/imdb
Viewer • Updated • 100k • 183k • 465
How to use muhtasham/medium-mlm-tweet-target-imdb with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="muhtasham/medium-mlm-tweet-target-imdb") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("muhtasham/medium-mlm-tweet-target-imdb")
model = AutoModelForSequenceClassification.from_pretrained("muhtasham/medium-mlm-tweet-target-imdb", device_map="auto")