upload model d66bd7f unverified
David Chu commited on
How to use typeform/roberta-large-mnli with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("zero-shot-classification", model="typeform/roberta-large-mnli") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("typeform/roberta-large-mnli")
model = AutoModelForSequenceClassification.from_pretrained("typeform/roberta-large-mnli", device_map="auto")