somosnlp-hackathon-2022/nli-es
Viewer • Updated • 346k • 50 • 2
How to use Sleoruiz/longformer-base-4096-bne-es-nli with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("zero-shot-classification", model="Sleoruiz/longformer-base-4096-bne-es-nli") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Sleoruiz/longformer-base-4096-bne-es-nli")
model = AutoModelForSequenceClassification.from_pretrained("Sleoruiz/longformer-base-4096-bne-es-nli")