from transformers import AutoTokenizer, BertForNextSentencePrediction
tokenizer = AutoTokenizer.from_pretrained("Capreolus/birch-bert-large-mb")
model = BertForNextSentencePrediction.from_pretrained("Capreolus/birch-bert-large-mb")
How to clone the model repo
git lfs install
git clone https://huggingface.co/Capreolus/birch-bert-large-mb
# if you want to clone without large files – just their pointers
# prepend your git clone with the following env var:
GIT_LFS_SKIP_SMUDGE=1