Transformers How to use KB/electra-small-swedish-cased-discriminator with Transformers:
# Load model directly
from transformers import AutoTokenizer, AutoModelForPreTraining
tokenizer = AutoTokenizer.from_pretrained("KB/electra-small-swedish-cased-discriminator")
model = AutoModelForPreTraining.from_pretrained("KB/electra-small-swedish-cased-discriminator")