from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("af-ai-center/bert-large-swedish-uncased")
model = AutoModelForMaskedLM.from_pretrained("af-ai-center/bert-large-swedish-uncased")
How to clone the model repo
git lfs install
git clone https://huggingface.co/af-ai-center/bert-large-swedish-uncased
# 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