Lessons in Evaluation of Spanish Encoder-only Models
Collection
State-of-the-art encoder-only models for Spanish. From the paper "Lessons learned from the evaluation of Spanish Language Models" • 2 items • Updated
How to use HiTZ/xlm-roberta-large-xnli-es with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="HiTZ/xlm-roberta-large-xnli-es") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("HiTZ/xlm-roberta-large-xnli-es")
model = AutoModelForSequenceClassification.from_pretrained("HiTZ/xlm-roberta-large-xnli-es")