if you want test one data on end of jupyter I show how can use it
sentences = tokneizer({
"sentence1":"...",
"sentence2":"..."
})
sentences['input_ids'] = torch.tensor(sentences['input_ids'])
sentences['token_type_ids'] = torch.tensor(sentences['token_type_ids'])
sentences['attention_mask'] = torch.tensor(sentences['attention_mask'])
sentences = {key: value.to('cuda:0') for key, value in sentences.items()}
with torch.no_grad():
out = model(sentences['input_ids'].unsqueeze(0), sentences['attention_mask'].unsqueeze(0),
sentences['token_type_ids'].unsqueeze(0))
print(f"the label of predict is : {torch.argmax(out.logits)}")