Thanks, I got it running now without GPU complaints!
Although the code is not producing output yet:

from transformers import pipeline
classifier = pipeline(“zero-shot-classification”, model=‘joeddav/xlm-roberta-large-xnli’)
sequence = “За кого вы голосуете в 2020 году?”
candidate_labels = [“Europe”, “public health”, “politics”]
classifier(sequence, candidate_labels)

output:

Some weights of the model checkpoint at joeddav/xlm-roberta-large-xnli were not used when initializing XLMRobertaForSequenceClassification: [‘roberta.pooler.dense.weight’, ‘roberta.pooler.dense.bias’]

This IS expected if you are initializing XLMRobertaForSequenceClassification from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPreTraining model).
This IS NOT expected if you are initializing XLMRobertaForSequenceClassification from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model).


Perhaps I am doing somthing wrong here, I will dig some more later.