Is there any way to train a encoder only model like bert for regression or sequence classification task?