How to use distilbert/distilbert-base-cased with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="distilbert/distilbert-base-cased")
# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("distilbert/distilbert-base-cased") model = AutoModelForMaskedLM.from_pretrained("distilbert/distilbert-base-cased")
Porting over the information from the distilbert-base-uncased model card that is also relevant to this model, so a user can find that information without having to go to the distilbert-base-uncased model card. @Ezi @Meg
LGTM!
· Sign up or log in to comment