from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("birgermoell/roberta-swedish-scandi") model = AutoModel.from_pretrained("birgermoell/roberta-swedish-scandi")