RoBERTa | PyTorch
https://pytorch.org/hub/pytorch_fairseq_robertaUse RoBERTa for sentence-pair classification tasks. # Download RoBERTa already finetuned for MNLI roberta = torch.hub.load('pytorch/fairseq', 'roberta.large.mnli') roberta.eval() # disable dropout for evaluation with torch.no_grad(): # Encode a pair of sentences and make a prediction tokens = roberta.encode('Roberta is a heavily optimized ...