Once this is done, we can use it with a pretrained model. For instance sgugger/finetuned-bert-mrpc has been
fine-tuned on the MRPC dataset, which classifies pairs of sentences as paraphrases or not.

from transformers import pipeline
classifier = pipeline("pair-classification", model="sgugger/finetuned-bert-mrpc")

Then we can share it on the Hub by using the save_pretrained method in a Repository: