update model card README.md 4b85df5
paul commited on
How to use jayanta/twitter-roberta-base-sentiment-sentiment-memes with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="jayanta/twitter-roberta-base-sentiment-sentiment-memes") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("jayanta/twitter-roberta-base-sentiment-sentiment-memes")
model = AutoModelForSequenceClassification.from_pretrained("jayanta/twitter-roberta-base-sentiment-sentiment-memes", device_map="auto")