Instructions to use distilbert/distilbert-base-uncased with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use distilbert/distilbert-base-uncased with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="distilbert/distilbert-base-uncased")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("distilbert/distilbert-base-uncased") model = AutoModelForMaskedLM.from_pretrained("distilbert/distilbert-base-uncased") - Inference
- Notebooks
- Google Colab
- Kaggle
Broken link in model card
The link for the code describing the distillation process at the beginning of the model card (at the end of the sentence "The code for the distillation process can be found here") returns a 404 on GitHub. Is the correct link https://github.com/huggingface/transformers/tree/main/examples/research_projects/distillation ?
Hmm, the above link works correctly for me... @VictorSanh that should be correct no?
Updating the link sounds good to me!
yes, the link you pointed to @Marissa is the right one, feel free to open a PR and merge!
Opened a PR here: https://huggingface.co/distilbert-base-uncased/discussions/3
I don't think I am able to merge it but if someone else could, that would be great!